[go: nahoru, domu]

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

Analysis server doesn't take packageRoots into account. #44323

Open
sigurdm opened this issue Nov 26, 2020 · 0 comments
Open

Analysis server doesn't take packageRoots into account. #44323

sigurdm opened this issue Nov 26, 2020 · 0 comments
Labels
analyzer-server 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

Comments

@sigurdm
Copy link
Contributor
sigurdm commented Nov 26, 2020

It seems the server has a parameter for specifying the packageConfig you want to analyze with: https://htmlpreview.github.io/?https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/doc/api.html#request_analysis.setAnalysisRoots (the argument packageRoots).

But I cannot make it work, and when I look at the code handling it, that parameter is never read: https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/lib/src/domain_analysis.dart#L322

Context: this is an alternative approach to solve my problem from #44322 .
Driving the analysis-server would even be preferable to running dartanalyzer.

@sigurdm sigurdm added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-server labels Nov 26, 2020
@srawlins srawlins added the P3 A lower priority bug or feature request label Feb 3, 2021
@srawlins srawlins added the type-enhancement A request for a change that isn't a bug label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server 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
Projects
None yet
Development

No branches or pull requests

2 participants