Search code examples
intellij-ideadartwebstorm

IntelliJ IDEA not jumping to packaged Dart Classes


I'm trying to build a demo application using Angular 2 Dart.

I'm using the Dart Plugin For WebStorm & IntelliJ Ultimate

I've tried a couple of the demo projects floating around the web, and none of the examples running above alpha 30 seem to have class support.

Example:

Problem: I cannot step into even basic methods like bootstrap().

Problem: When running the Dart Debugger - breakpoints don't hit

Question: How do i enable jump to support for Angular 2 Dart in WebStorm or IDEA Ultimate?

Note: This is unrelated to TypeScript / JavaScript - Dart Specific


Solution

  • In the current WebStorm/IntelliJ EAP version you need to run pub get pub upgrade from the command line. WebStorm currently passes the experimental --no-package-symlinks option which breaks a few things. This was already changed and will be fixed with the next update. See also https://youtrack.jetbrains.com/issue/WEB-18020