Skip to content

When changing from "#source" to "#import" the error-message in the imported file does not go away. #3155

Closed
@stevemessick

Description

@stevemessick

floitsch: When changing from "#source" to "#import" the error-message in the imported file does not go away.

Say I have file A.dart and B.dart. Both are libraries with a "#library" line on top.
If A.dart #sources B.dart I get the error message "A source which was included by another source via a #source directive cannot itself contain directives: B.dart"
The error points to the #library directive inside B.dart.
This, by itself, is already annoying, since it doesn't tell me which other file actually did the #source, but that's not the bug.

Now if I go to A.dart and change the #source to an #import, the error should go away, but currently that does not happen. I have to 'force reanalyze' to remove the error-line.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions