question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot locate Dart SDK

See original GitHub issue

This looks exiting! I tried to install on a Mac, but I get the error that it cannot locate the Dart SDK (Dart-Code: Could not find a Dart SDK to use. Please add it to your PATH or set it in the extensions settings and reload).

I tried to configure it like this, but I still get the error:

$ cat "$HOME/Library/Application Support/Code/User/settings.json"
// Place your settings in this file to overwrite the default settings
{
    "dart.sdkPath": "/usr/local/Cellar/dart/1.18.1/"
}
$

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
mit-mitcommented, Aug 5, 2016

I got it to work! The directory layout homebrew gives you is a bit odd – the correct path is:

/usr/local/Cellar/dart/1.18.1/libexec/

not

/usr/local/Cellar/dart/1.18.1/

3reactions
mit-mitcommented, Aug 5, 2016

Yup:

$ which dart
/usr/local/bin/dart
$ ll /usr/local/bin/dart
lrwxr-xr-x  1 mit  admin  30 Aug  5 12:38 /usr/local/bin/dart -> ../Cellar/dart/1.18.1/bin/dart
$ ll /usr/local/Cellar/dart/1.18.1/bin/dart
lrwxr-xr-x  1 mit  admin  19 Aug  5 12:38 /usr/local/Cellar/dart/1.18.1/bin/dart -> ../libexec/bin/dart
$
Read more comments on GitHub >

github_iconTop Results From Across the Web

Dart SDK is not configured - Stack Overflow
Open preferences by pressing ctrl+alt+s or cmd+, on mac. Under Language & Frameworks choose Dart find Dart SDK path . Put that path...
Read more >
[2022] 7 Steps to Fix Dart SDK is not Configured in Flutter
To fix the Dart SDK is not Configured error, first of all, you must obtain the Flutter installation path and then figure out...
Read more >
How to Solve Dart SDK is not Configured in Flutter??
In “Dart SDK path” click in “…” and navigate to the Flutter SDK directory. Under that directory, you'll find “bin/cache/dart-sdk”. This is the ......
Read more >
Error - Dart SDK is not configured in Android Studio.
First of all whenever you see this error then see your flutter framework SDK path is set or not. In my system it...
Read more >
Get Started with Dart SDK - Contentstack
Create a New Flutter Project in VS Code · Open VS Code and select Extensions from the left navigation panel. · Then, in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found