Search code examples
intellij-ideadartintellij-14

Opening Dart projects in IntelliJ


I can't seem to import dart projects, I have the dart plugin installed, have it enabled, selecting both the dart project's pubspec.yaml or build.dart seem to give me the error "Cannot import anything from _.dart / _.yaml".

If I select the root directory of the dart project and select create modules from existing sources (since it's not a maven/gradle/eclipse project), it gets picked up as a python project and there is no way to select a dart SDK.

Right clicking and clicking add framework support only gives me python related frameworks such as Django and App Engine (Python). Trying to add a project facet, there are tons of options, everything from Vaadin, to GWT, to Scala, etc, but no Dart.

The official Dart page for dart-support gives me an error 404: https://www.jetbrains.com/idea/help/Preparing_for_Dart_Development.html

(related to Netbeans + Eclipse + Dart -> IntelliJ)

(PS, this project was created in Dart Editor)


Solution

  • File > Open > selecting the folder does it for me (WebStorm). I don't know what create modules should do.

    When I open a file it asks me if I want to make it a Dart project, and I'm done.