-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Completion is not working well #49054
Comments
Not only code completion, the alt+enter shortcut using Android Studio is broken too i have to hit the ESC button a few times or even move the cursor focus around the code to switch the alt+enter suggestions when fixing code |
@scheglov @bwilkerson @jwren This may be related to the new protocol. Or related to out-of-scope identifiers. So far it looks to be isolated to IntelliJ... It looks like suggestions are coming back, but they are missing some obvious suggestions that the user expects, and also received pre-Flutter 3.0 / Dart 2.17.0. |
@0htls without more data it is hard to say if this is a bug in the server, or the way you use it. |
@scheglov |
after the latest update i still dont get suggestion for setstate, inistate, dispose etc. |
@0htls Thank you, I can reproduce it. |
The issue is that while we suggest all possible imports, including But the fuzzy matching score should not be the same, this happens because we decide that the prefix to match against is the empty string. This is a bug that should be fixed. And probably this will fix the issue. |
Wow. That's so cool. Perhaps a configuration somewhere is present? |
@scheglov if I downgrade back to 2.x versions then I get the autocomplete back. Is there something we could do until the patches are released as a temporary solution? |
…FILENAME Bug: #49054 Change-Id: I127944d9eca20f0d8a57e26b3050fcfcb381d2b1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245623 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
going through the same problem. any temporary solution? |
@scheglov It doesn't seem to be cut here. When I was trying to import |
I'm not sure if this is the same problem. But I experienced several times that the Dart Analyzer just stopped working either completely or started behaving really weirdly (not showing suggestions at all or colouring of keywords in the code completely disappeared) especially after switching between branches that had different dependencies. Running |
Flutter 3.0.2 is available now and it should fix the issues with code completion. Please create a new issue here if you see more problems. |
Auto-completion still not working with everything, such as setState, initState, Colors auto complete |
@stevemessick I can also confirm that it is still not working on 3.0.2. import 'mat' leads to auto completion of only dart:math |
I'm adding the fix to https://dart-review.googlesource.com/c/sdk/+/248080, to cherry pick as #49239 |
This is a patch release that fixes: - Improve code completion for Flutter (issue [#49054][]). - Fix crash on ARM (issue [#106510][]). - Fix compiler crash with Finalizable parameters (issue [#49402][]). [#49054]: #49054 [#106510]: flutter/flutter#106510 [#49402]: #49402 Change-Id: I9a814603d9793b75b764fd0f384e89017e773c50 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251109 Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: William Hesse <whesse@google.com>
Cherry picks for: b253c4a 3428b44 1b9554d 4b08b7d Or https://dart-review.googlesource.com/c/sdk/+/229324 https://dart-review.googlesource.com/c/sdk/+/242281 https://dart-review.googlesource.com/c/sdk/+/247933 https://dart-review.googlesource.com/c/sdk/+/245623 Bug: #49054 (comment) Bug: #49233 Change-Id: Ia91e46926e86dff63f718d71a2881dcd07125ce8
This is a patch release that fixes: - Improve code completion for Flutter (issue [#49054][]). - Fix crash on ARM (issue [#106510][]). - Fix compiler crash with Finalizable parameters (issue [#49402][]). [#49054]: #49054 [#106510]: flutter/flutter#106510 [#49402]: #49402 Change-Id: I9a814603d9793b75b764fd0f384e89017e773c50 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251109 Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: William Hesse <whesse@google.com>
Also having suggestions but very slow in vs code isndiers |
3.0.5 helped, but some suggestions, especially from other modules, aren't given. |
Can you submit new issues with some more specific statements? That helps to investigate the root cause. |
okay
…On Thu, Jul 14, 2022 at 5:28 PM Alex Li ***@***.***> wrote:
3.0.5 helped, but some suggestions, especially from other modules, aren't
given. Also code complete performance is degrading after few hours of
coding.
Can you submit new issues with some more specific statements? That helps
to investigate the root cause.
—
Reply to this email directly, view it on GitHub
<#49054 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIRXJSBTARVXZX2V2R6WNPTVUABXBANCNFSM5WJIYNFQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I still have the problem. The auto completion only shows me methods and classes from already imported classes, but does not suggest me any from the rest of the project, not even my own classes (that are not explicitly imported). I need to add the import manually...
I already removed and cleared every possible cache directory (Gradle, Pub, AndroidStudio, IntelliJ, ...). No PowerSave mode. Restarted Dart Analysis. |
Hi i really want to known how to get code hints using VSC :
In build method i type Eleva....... i can get ElevatedButton hint , so this good. and then "onPreesed" is hightLight , so i delete it and type "(" but not show any "(){} or () =>" function to hint , what should i do ? |
@webMing please file questions similar to this at a user forum with more users who can look and answer. |
If I add My Flutter configs
|
The Flutter plugin is getting multiple reports that completion is not working or not working well. Unfortunately, I cannot transfer them, so I'll add links here.
flutter/flutter-intellij#6177
flutter/flutter-intellij#6176
The text was updated successfully, but these errors were encountered: