-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Analysis Server] Dart type suggestion not work correctly since 1.22 !! (Benchmark proof 1.17, 1.20, 1.22) #43657
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
Comments
I hope provided enough data about the problem. Here my flutter doctor -v without flutter version (because changed for every test)
|
Can you provide information about where you're requesting code completion, what you expected to see, and what you mean by "not work correctly"? |
For "print" example : You can see that the suggestion which have the same length are not at first position… Why a larger word got the first position Instead of the one which match exactly ? For the "crossAxisAlignement" : Instead of display first all matching type suggestion (CrossAxisAlignment.center, CrossAxisAlignment.end, CrossAxisAlignment.start...), we got some boolean value, some context and for 1.20 a spam from cupertino... How can that be possible ? They're is no precise location, because it's a general problem: it appear for every suggestion case… |
Same here :/ |
Same problem here, after upgrading to 1.22.1 autocomplete doesn't work anymore on VS Code even with "Auto Import Completions" turned off... it's really frustrating...
|
I have the same problem but is only in Intellij in vscode works fine |
For me IntelliJ and VSCode fails. |
Here's an example where a constructor that matched the type of a named parameter used to be suggested first but no longer is (moved from #38739 (comment)) without auto-imports (suggestion sets) or LSP: Flutter 1.20.0: Flutter 1.22.0: I captured the |
Dart's autocomplete is a real pain for ages. I have this another issue, currently is the Top#11 issue for Dart's SDK issues ranking: Please guys, give some love to the auto-complete! I've seem some discussions about the next big deal for the language (after NNDB) being the pattern matching, but I really think Dart Team should put some efforts on fixing all those completion problems once and for all. |
There have been some changes to completion since the above (for ex. LSP now uses The top three items get a sort of 9999449 (which I think means a ranking of 550/551). The fourth result ( Edit: * Actually, since named constructors are already listed specifically (see #38739 (comment)), there's probably less reason for the type names to feature so highly. |
Hi,
Flutter Dart type suggestion work bad 1.22 on intelij IDEA, suggestions are not relevant. We pass to many times to write all word instead of using suggestions system :/
I make two tests around with function call and type suggestions. I tested under theses versions of Flutter :
Result : 1.17 have better suggestions...
Try to got print() function suggestion :

One letter :
Full word:

Try to got CrossAxisAlignment suggestions :

Empty :
3 letters :

Try to got print() function suggestion :

One letter :
Full word:

Try to got CrossAxisAlignment suggestions :

Empty :
3 letters :

Try to got print() function suggestion :

One letter :
Full word:

Try to got CrossAxisAlignment suggestions :

Empty :
3 letters :

As you can see on these images, suggestions weren't based on type... I lose too much time...
The text was updated successfully, but these errors were encountered: