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

Missing closing expression brace results in obscure error. #237

Open
damncabbage opened this issue Apr 26, 2017 · 2 comments
Open

Missing closing expression brace results in obscure error. #237

damncabbage opened this issue Apr 26, 2017 · 2 comments
Labels

Comments

@damncabbage
Copy link

{
  bikeshed/modules/foo/bar
    "hi"
    "bye"

Produces:

Building site...Projector build errors:
Parse error:
  Unexpected end of input
  Expected one of: [hole, variable, list, case, lambda]

(This may be part Loom, part Projector.)

@thumphries
Copy link
Contributor

This can probably be fixed by adding labels to all the paren / brace parsing rules in Parser.hs

Feel free to experiment with it

@thumphries thumphries added the bug label Apr 28, 2017
@thumphries
Copy link
Contributor

This is bound to stay messy indefinitely because of the way the layout pass is implemented, it injects a bunch of parentheses that muddle up error reporting. at least it's an error!

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

No branches or pull requests

2 participants