-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart code suggestions aren't working after v2.1.1 update #38729
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
Dart Code suggestions have been working for a while again. I suspect this can be closed. |
it's still not working even with the latest flutter update. |
Ah, interesting, apologies. |
I expect that this has been fixed by now as a result of having a tighter integration between the Dart SDK and Flutter SDK. If I'm wrong I'll be happy to re-open this issue. |
not really, the only workaround is this: and it only works on vscode with Flutter 1.20.4 |
Does code completion work correctly in Flutter 1.22.5? |
Thanks for testing it. |
for anyone who stumbles upon this issue, check this out: |
i didn't write any flutter/dart code for a long time, when i came back i had a really annoying problem and it is slowing me down.
the code completion/suggestions (when hitting ctrl+space) is working fine, except when i want to see suggestions for a property of a widget.
after trying for 6 hours and trying almost every version of dart and flutter, i figured out a the cause of the problem.
you have to download the latest version of Flutter SDK. and the dart SDK version 2.1.1 from (https://dart.dev/tools/sdk/archive)
and only take two files:
First file:
dart-sdk\bin\dart.exe
and copy it toFlutter\bin\cache\dart-sdk\bin
Second file:
dart-sdk\bin\snapshots\analysis_server.dart.snapshot
and copy it toFlutter\bin\cache\dart-sdk\bin\snapshots
it's not a great solution but at least it works for writing code, you will lose all the features that were introduced after the 2.1.1 update, and you can't build the app or run it or even make updates to the packages.
i've tried different PCs (4 of them, plus a VM machine) Windows and Mac, and different IDEs (Android Studio, Vscode, intellij), they all have the same problem.
screenshot of it working fine when pressing ctrl+space on:
Container( alignment: // <<< Pressing Ctrl+Space here )
another screenshot after the v2.1.1 update:
The text was updated successfully, but these errors were encountered: