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

"Syntax Error" messages should be more descriptive #6244

Closed
vicuna opened this issue Nov 19, 2013 · 1 comment
Closed

"Syntax Error" messages should be more descriptive #6244

vicuna opened this issue Nov 19, 2013 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Nov 19, 2013

Original bug ID: 6244
Reporter: Jason
Assigned to: @gasche
Status: closed (set by @gasche on 2013-11-19T23:37:24Z)
Resolution: duplicate
Priority: normal
Severity: minor
Version: 4.01.0
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #5068

Bug description

I would find it very useful to be told what the syntax error is. For example, in

let foo = 1;
let bar = 1
let baz = 1

I want to be told "Syntax error , found 'let', expecting 'in'", not just "Syntax Error". It would be even better if it could say "expected non-top-level 'let bar = 1 let ...' to match syntax rule 'let name = value [and name = value]... in'", but I'd be satisfied with being told what the possible valid tokens are.

@vicuna
Copy link
Author

vicuna commented Nov 19, 2013

Comment author: @gasche

This is indeed a valid remark, we've a few bug open about that already. Work could/should be done to improve that, but we haven't found the time to work on it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants