Sdk: dartanalyzer reports the same error multiple times when given multiple entry points

Created on 5 Feb 2016  Â·  9Comments  Â·  Source: dart-lang/sdk

To reproduce, create three files:

entry1.dart

import "target.dart";

main() {
  print(x);
}

entry2.dart

import "target.dart";

main() {
  print(x);
}

target.dart

var x = 3;

asdf

Then run dartanalyzer on both entry files:

$ dartanalyzer entry1.dart entry2.dart 

It will analyze them sequentially and print the same error twice. If given a lot of files (for example using a glob) then you get lots of duplicates.

P1 analyzer-command area-analyzer type-bug

Most helpful comment

fixed in master

All 9 comments

This is also true when using --machine.

Can we increase the priority on this? It's very frustrating when dealing with large packages, especially when they have a couple intended hints (for example, many packages refer to their own deprecated members). Passing dartanalyzer lib/ should be the recommended way of analyzing all the libraries in a package, but it can drown the user in duplicate errors which makes it very painful in practice.

This is still on track for 1.23; it's about a day of work. I can get to it; @danrubel has also said that an upcoming refactoring he's considering may also cover this issue.

@devoncarew any update on this?

Still planned. I see that the milestone for 1.23 is targeted to March 29th; is that accurate?

Thanks! That's the correct day.

On Wed, Mar 15, 2017 at 4:16 PM, Devon Carew notifications@github.com
wrote:

Still planned. I see that the milestone for 1.23 is targeted to March
29th; is that accurate?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/25697#issuecomment-286909378,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACAsW-Z-GufghhYMmkOacx-3rfO6Hi0Yks5rmHE6gaJpZM4HT8g2
.

Annnnnd, bumping to the next milestone.

fixed in master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hixie picture Hixie  Â·  3Comments

DartBot picture DartBot  Â·  3Comments

DartBot picture DartBot  Â·  3Comments

sgrekhov picture sgrekhov  Â·  3Comments

rinick picture rinick  Â·  3Comments