webstorm "Error: path to the Dart SDK is not specified"

Trying to start a dart project and this is the error i get.  What do I need to do to get dart running.

7 comments

Did you configure a path to Dart SDK in Settings | Languages & Frameworks | Dart?

0

I have not and I do not see a "Dart" option in settings | Languages & Frameworks.  This is a fresh install of websorm btw.

0

Is Dart plugin enabled in Settings | Plugins?Also, please make sure to open Serttings (Preferences on Mac OSX), not Default Settings

0

I figured it out.

This is the error I was seeing.

 

I installed the dart SDK before but I didn't see it in the tree I guess.  I manually typed /usr/lib/dart in the "Dart SDK path" and the SDK was recognized. I'm on Ubuntu 16.04 btw.  So I used the whereis dart command to find where the installation was.

 

The dart plugin was enabled but there was no option for it in the "languages and frameworks" section.

0

>The dart plugin was enabled but there was no option for it in the "languages and frameworks" section

 

did you have the project opened?

0

I was creating a new project so I did not have the project open because it had not been created yet.

0

Dart SDK settings are available either in project preferences (if project is already created and opened) or in New project dialog (New | Project... | Dart); so everything seems to work as expected

0

Please sign in to leave a comment.