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 has an incorrect exit status 3 when analyzing a part #19705

Closed
DartBot opened this issue Jun 28, 2014 · 8 comments
Closed

dartanalyzer has an incorrect exit status 3 when analyzing a part #19705

DartBot opened this issue Jun 28, 2014 · 8 comments
Assignees
Labels
area-documentation Prefer using 'type-documentation' and a specific area label. docs-tools

Comments

@DartBot
Copy link

DartBot commented Jun 28, 2014

This issue was originally filed by jenw78...@gmail.com


To reproduce:

  1. Create test.dart with the following contents:

part of library_name;

  1. Run:

dartanalyzer test.dart ; echo $?

which outputs 3. This happens with version 1.5.1 and 1.4.0. With version 1.3.6, it outputs 0.

According to:

https://www.dartlang.org/docs/dart-up-and-running/contents/ch04-tools-dart_analyzer.html

3 is not a valid exit status.

Either the tool should be updated to return to the previous behavior or the documentation should be updated to add this new exit status when analyzing a file that is part of a library.

@bwilkerson
Copy link
Member

Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium, Area-Analyzer, Triaged labels.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@bwilkerson
Copy link
Member

Removed Oldschool-Milestone-1.6 label.
Added Analyzer-Command label.

@bwilkerson
Copy link
Member

The exit codes listed on https://www.dartlang.org/tools/analyzer/ are wrong. The current exit codes are:

0 - No issues found
1 - Hints found (but no warnings or errors)
2 - Warnings found (but no errors)
3 - Errors found


Removed Area-Analyzer, Analyzer-Command labels.
Added Area-Documentation, Docs-Tools labels.

@bwilkerson
Copy link
Member

Issue #20679 has been merged into this issue.

@kwalrath
Copy link
Contributor

kwalrath commented Jan 8, 2015

Shams, could you fix this and/or move it over to the github repo for www.dartlang.org?


Set owner to @Sfshaza.

@kwalrath
Copy link
Contributor

kwalrath commented Jan 8, 2015

Issue #21991 has been merged into this issue.

@Sfshaza
Copy link

Sfshaza commented Jan 8, 2015

Moved to: dart-archive/www.dartlang.org#1216


Added MovedToGithub label.

@DartBot DartBot added Type-Defect area-documentation Prefer using 'type-documentation' and a specific area label. docs-tools labels Jan 8, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-documentation Prefer using 'type-documentation' and a specific area label. docs-tools
Projects
None yet
Development

No branches or pull requests

5 participants