Can't Click Into Dart Class

Howdy,

I've been working through all of the provided Dart Tutorials on dartlang.org - I used Dart Editor to Start.

When finished, i started working on writing some of my own libraries inside the project.

Project structure based off: https://github.com/dart-lang/deploy-codelab

I switched over to WebStorm, as the Dart Editor has a problem with importing antyhing not inside package: or dart. However, once i did manually write import '../lib/my_library.dart' show SomeClass; Dart Editor would allow me to click on 'SomeClass' when referencing   SomeClass foo = new SomeClass();

Problem:
WebStorm properly lists relative file paths, however, when i hover/click on SomeClass WebStorm does not recognize it as an available class.

Using Command-O - 'Enter Class Name' - Does Work.

Any Ideas?



Attachment(s):
Screen Shot 2014-01-28 at 11.29.20 AM.png
Screen Shot 2014-01-28 at 11.29.14 AM.png
4 comments
Comment actions Permalink

Hello!

Hover/click are not supposed to work this way; ctrl+click or Ctrl+B (Navigate/Declaration) work fine for me. See the attached screenshot



Attachment(s):
dartImp.png
0
Comment actions Permalink

Odd - im not getting anything

Attached Screenshot:



Attachment(s):
Screen Shot 2014-01-28 at 12.02.32 PM.png
0
Comment actions Permalink

Odd - so i tried to mimic your code by using a single import, that does the trick.

I have to delete:

import 'dart:io' show File, HttpServer, Platform;
import 'dart:async' show runZoned;
import 'package:http_server/http_server.dart' show VirtualDirectory;
import 'package:path/path.dart' show join, dirname;

This compiles and runs fine. However, not having other imports is not a solution.

0
Comment actions Permalink

I see, thanks for details. Please vote for http://youtrack.jetbrains.com/issue/WEB-10626 to be notified on any progress


0

Please sign in to leave a comment.