Skip to content

Analysis Server runs 'pub list-package-dirs' too many times (malformed pubspecs) #24614

@alexander-doroshko

Description

@alexander-doroshko

(SDK 1.13-dev.7.0)

  • Checkout project https://github.com/MikeMitterer/dart-material-design-lite. It contains 62 pubspec.yaml files of which 54 are valid and 8 are invalid (they are templates with placeholders).
  • Open this project in the IDE. Analysis Server reports that it runs 'pub list-package-dirs' 62 times which is fine. Server warm up takes just 47 seconds (I guess no 3rd party packages analysis because no pub get done).
  • Now run 'pub get' for all valid pubspecs (recommended to do it from the IDE)
  • Close and reopen IDE

At this moment server says that 'pub list-package-dirs' was already started more than 2000 times and it already took 15 minutes. I'm killing the process as I can't wait more.

Note that if I delete malformed pubspecs from the project and restart the IDE it helps a bit. Analysis Server runs pub list 150 times in this case (still more than 54 - amount of pubspecs left) and server warms up in 4 minutes.

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresdevexp-serverIssues related to some aspect of the analysis serverlegacy-area-analyzerUse area-devexp instead.type-performanceIssue relates to performance or code size

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions