Skip to content

warnings and hints not updated after commenting out a class in an imported file #25855

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

Closed
skybrian opened this issue Feb 25, 2016 · 0 comments
Closed
Labels
legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@skybrian
Copy link

To reproduce, create two files:

import "target.dart";

main() {
  print(new Target());
}

target.dart:

class Target {}

Open both files in Atom. Comment out the class definition for Target.

The first issue is that no error shows up before saving target.dart.

Next, save the file. This warning appears:
Undefined class 'Target - 'main.dart, line 4

This is correct, however there should also be a hint that target.dart is now an unused import.

Reanalyze sources, and the hint now appears:
Unused import - main.dart, line 1

(Found via a stress test.)

@skybrian skybrian added Type-Defect legacy-area-analyzer Use area-devexp instead. labels Feb 25, 2016
@skybrian skybrian closed this as completed Mar 1, 2016
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed Priority-Medium labels Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants