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

[dartanalyzer] cannot find files if multiple directories are provided #45488

Closed
axel-op opened this issue Mar 26, 2021 · 2 comments
Closed

[dartanalyzer] cannot find files if multiple directories are provided #45488

axel-op opened this issue Mar 26, 2021 · 2 comments
Labels
analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request

Comments

@axel-op
Copy link

axel-op commented Mar 26, 2021

The dartanalyzer command cannot work if multiple directories are provided in arguments.

  • Dart SDK Version: 2.13.0-116.0.dev
  • OS: Windows, Linux (haven't tested on MacOS)
> dartanalyzer bin lib
Analyzing lib, bin...
No dart files found at: [...]\bin

> dartanalyzer bin lib tool
Analyzing bin, lib, tool...
No dart files found at: [...]\lib
@devoncarew devoncarew added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-command Issues with the command-line dartanalyzer tool P3 A lower priority bug or feature request labels Mar 29, 2021
@nex3
Copy link
Member

nex3 commented May 19, 2021

This is a pretty disruptive breaking bug; dartanalyzer lib test is a common invocation in CLI-based workflows. Can we increase the priority?

nex3 added a commit to sass/dart-sass that referenced this issue May 19, 2021
nex3 added a commit to sass/dart-sass that referenced this issue May 20, 2021
Also pin static analysis to Dart 2.12 to work around dart-lang/sdk#45488.
@srawlins
Copy link
Member

This appears to be working with the replacement command, dart analyze.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

4 participants