Skip to content
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

Can the analysis server report in an IDE that multiple instances or versions of any pub package are in play #48929

Open
srawlins opened this issue Apr 29, 2022 · 0 comments
Labels
analyzer-server analyzer-ux area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug type-performance Issue relates to performance or code size

Comments

@srawlins
Copy link
Member

See #48925 for the motivation.

There are several ways the analysis server can read from multiple package config files (mono repos, overly broad analysis root, pub packages with nested example packages or testing packages (e.g. the camera plugin living in the plugins monorepo).

Different version solves means that package:path 1.0.0 is fetched for one package, but package:path 1.0.1 is fetched for another. This means that there can be multiple copies of various elements in analyzer's memory, which will duplicate elements in Search, etc. In #48925, this results in multiple instances of plugin code running in multiple isolates.

What to do? Should analysis server alert the user in some way?

@srawlins srawlins added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request analyzer-server type-enhancement A request for a change that isn't a bug analyzer-ux type-performance Issue relates to performance or code size labels Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server analyzer-ux area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug type-performance Issue relates to performance or code size
Projects
None yet
Development

No branches or pull requests

1 participant