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

Analyzer error message on a parse error is incomprehensible. #13227

Closed
lrhn opened this issue Sep 11, 2013 · 5 comments
Closed

Analyzer error message on a parse error is incomprehensible. #13227

lrhn opened this issue Sep 11, 2013 · 5 comments
Labels
analyzer-recovery area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@lrhn
Copy link
Member

lrhn commented Sep 11, 2013

For the code
  main() {
    while (1 < 2 < 3) {}
  }
the analyzer generates the following warnings:


[error] Expected to find ')' (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 15)
[error] Expected to find ';' (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 15)
[error] Expected a type name (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 17)
[error] Expected to find '>' (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 17)
[error] Expected a list or map literal (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 17)
[error] Expected to find ';' (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 17)
[error] Expected to find ';' (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 17)
[error] Expected an identifier (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 18)
[error] Unexpected token ')' (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 18)
[warning] The name '' is not a type and cannot be used as a parameterized type (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 17)
[warning] Undefined name '' (/usr/local/google/home/lrn/dart/full/dart/dev/d2jspars.dart, line 2, col 18)
9 errors and 2 warnings found.


It's very hard to figure out what the error is. If possible, make the error message more useful.

@bwilkerson
Copy link
Member

Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@bwilkerson
Copy link
Member

Added Analyzer-Recovery label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

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

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@lrhn lrhn added Type-Enhancement area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-recovery labels Aug 4, 2014
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Feb 29, 2016
@bwilkerson
Copy link
Member

This is handled better by Fasta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-recovery area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants