Skip to content

dart code suggestions aren't working after v2.1.1 update #38729

Open
@waleedf112

Description

@waleedf112

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 to Flutter\bin\cache\dart-sdk\bin

Second file: dart-sdk\bin\snapshots\analysis_server.dart.snapshot and copy it to Flutter\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:


Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-completionIssues with the analysis server's code completion featuretype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions