Skip to content

IntelliJ auto complete suggestions for non imported classes not working as expected "as you type" #34829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thefuzzyorange opened this issue Oct 17, 2018 · 3 comments
Labels
area-intellij Tracking issues for the Dart IntelliJ plugin.

Comments

@thefuzzyorange
Copy link

IntelliJ with Dart plugin does not show suggested imports for packages "as you type" when you declare a class that has not yet been imported in the file.

image

If however you fully type the class, cancel the auto suggest, then ALT+ENTER you get suggested import
image

The auto complete suggestion works if you declare a new instance of the class though
image

This behavior applies to any packages be they from dart sdk, external packages referenced in pubspec.yaml, even classes in different files in the same project.

Coming from using IntelliJ for Java dev, I am so used to just typing the first few letters and having access to all glorious possible suggestions that the way this works in Dart makes coding feel cumbersome as now you have to know the exact entire name of the class you want to import and when you don't you have to go look at the name of the class inside the package you want and then paste it in at which point you might as well copy the package path and declare an import for that.

image

It would be a huge improvement to the coding experience if it could work like Java... possible?


Dart VM version: 2.1.0-dev.6.0.flutter-2aac05fe10 (Fri Sep 28 16:29:23 2018 +0000) on "linux_x64"

@zoechi
Copy link
Contributor

zoechi commented Oct 17, 2018

Is this a dup of #25820?

@thefuzzyorange
Copy link
Author

thefuzzyorange commented Oct 17, 2018

Yes looks like the same thing, Perhaps we should repost the contents in #25820 as maybe the visuals paint a better picture of how the behaviour works for Java vs Dart?

Also for me the title of that ticket is something I would never have found in reference to this. I tried searching for this issue as being logged, but my search terms were all around intellij and auto complete / suggestions / imports...

@a-siva a-siva added the area-intellij Tracking issues for the Dart IntelliJ plugin. label Oct 18, 2018
@alexander-doroshko
Copy link

Server-side of this feature is tracked as #25820.
IntelliJ's part is tracked as https://youtrack.jetbrains.com/issue/WEB-23646.
Both are fixed now. @a-siva could you close this issue? (I don't have permissions)

@a-siva a-siva closed this as completed Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-intellij Tracking issues for the Dart IntelliJ plugin.
Projects
None yet
Development

No branches or pull requests

4 participants