Skip to content

After running 'flutter pub get', dart analyzer crashes in code #3295

Description

@acoutts

Describe the bug
When you run flutter pub get, the dart analyzer crashes (problem count tab goes to 0), then it (sometimes) will restart itself, but other times I have to manually restart the extension host which involves shutting down my current debug session, restarting extension host, and doing another full build to run it again.

To Reproduce
Steps to reproduce the behavior:

  1. Run flutter pub get
  2. Observe the problems window disappear

Expected behavior
Analyzer shouldn't crash.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • VS Code version:
Version: 1.56.0-insider
Commit: 7ce1499d9541ba2acf66cd30a9054bd7818a8f80
Date: 2021-04-22T05:12:09.510Z (6 hrs ago)
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Darwin x64 20.3.0
  • Dart extension version: 3.21.1
  • Dart/Flutter SDK version:
Flutter 2.2.0-11.0.pre.180 • channel master • https://github.com/flutter/flutter.git
Framework • revision 71cb40f46a (2 days ago) • 2021-04-20 14:19:02 -0400
Engine • revision 79c5ebe835
Tools • Dart 2.14.0 (build 2.14.0-18.0.dev)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions