Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

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

Closed
Sfshaza opened this issue Jan 8, 2015 · 1 comment
Closed

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

Sfshaza opened this issue Jan 8, 2015 · 1 comment
Assignees
Labels

Comments

@Sfshaza
Copy link
Contributor

Sfshaza commented Jan 8, 2015

Reported by jenw7810, Jun 27, 2014
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.
Jun 28, 2014 Project Member #1 [email protected]
(No comment was entered for this change.)
Status: Triaged
Labels: -Priority-Unassigned Priority-Medium Area-Analyzer Milestone-1.6
Jul 10, 2014 Project Member #2 [email protected]
(No comment was entered for this change.)
Labels: -Milestone-1.6 Oldschool-Milestone-1.6
Jul 11, 2014 Project Member #3 [email protected]
(No comment was entered for this change.)
Labels: -Oldschool-Milestone-1.6 Analyzer-Command
Nov 5, 2014 Project Member #4 [email protected]
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
Labels: -Area-Analyzer -Analyzer-Command Area-Documentation Docs-Tools
Nov 6, 2014 Project Member #5 [email protected]
Issue 20679 has been merged into this issue.
Today (2 hours ago) Project Member #6 [email protected]
Shams, could you fix this and/or move it over to the github repo for www.dartlang.org?
Owner: [email protected]
Today (2 hours ago) Project Member #7 [email protected]
Issue 21991 has been merged into this issue.

Original issue: https://code.google.com/p/dart/issues/detail?id=19705

@Sfshaza Sfshaza added the Tools label Jan 8, 2015
@Sfshaza Sfshaza self-assigned this Jan 8, 2015
@Sfshaza
Copy link
Contributor Author

Sfshaza commented Jan 22, 2015

Fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

1 participant