Skip to content

IDE gets slower and slower over time until it stops working #33280

@matanlurey

Description

@matanlurey
$ flutter --version

Flutter 1.6.0 • channel dev • [email protected]:flutter/flutter.git
Framework • revision ed90d05596 (9 days ago) • 2019-05-14 17:09:29 -0700
Engine • revision 832cdacc6f
Tools • Dart 2.3.1 (build 2.3.1-dev.0.0 a0290f823c)

I am using:

  • Visual Studio Code (Version 1.33.1 (1.33.1))
  • Dart and Flutter Plugins (3.0.2)

I have a moderate-sized Flutter application (hobby app). I can't reproduce this with a specific series of steps, but generally this happens every single time:

  • I run the application and use hot reload (on save) to debug/iterate.
  • The analyzer/auto-complete gets slower and slower until it does nothing.

For example, here is what the IDE shows:

Screen Shot 2019-05-23 at 3 21 29 PM

You can see the following diagnostic being shown:

{
	"resource": "/Users/.../lib/src/pages/squads.dart",
	"owner": "dart",
	"code": "missing_function_body",
	"severity": 8,
	"message": "A function body must be provided.\nTry adding a function body.",
	"source": "dart",
	"startLineNumber": 65,
	"startColumn": 3,
	"endLineNumber": 65,
	"endColumn": 4,
	"tags": []
}

This is wrong, and is based on what I wrote 30+ seconds ago, and isn't updating. Even closing/opening the file again does nothing (the same diagnostics show up).

Once I get to this state, hot reload/restart and even the "stop" button also stop functioning, so it's possible this is some sort of bug/leak on the IDE side instead of the analyzer, I can't exactly tell. Even killall dart does not work. I can close the IDE and re-open it, but that's it.

Note that I see Analyzing... in the lower bottom-left corner during this.

Metadata

Metadata

Assignees

Labels

c: crashStack traces logged to the consoletoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions