Skip to content

[Analyzer Plugin] ServerPlugin runs analyzeFile with different contexts for one path  #49404

@zltnDC

Description

@zltnDC

I have encountered some problems with method from ServerPlugin:

@override
Future<void> analyzeFile(
    {required AnalysisContext analysisContext, required String path}) 

and AnalysisContext for several packages/directories.

analyzer_plugin: 0.11.0

I've prepared an example:

https://github.com/zltnDC/analyzer-plugin-bug

It seems that files in one directory are analyzed in different contexts and ignore contextRoot.includedPaths from AnalysisContext.

The analyzeFile method for one path is run several times with different contexts.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ondevexp-pluginlegacy-area-analyzerUse area-devexp instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions