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

elm fails to compile Pong #50

Closed
Nek opened this issue Nov 26, 2012 · 4 comments
Closed

elm fails to compile Pong #50

Nek opened this issue Nov 26, 2012 · 4 comments

Comments

@Nek
Copy link

Nek commented Nov 26, 2012

The Elm Compiler 0.5.0.2
Pong is at 87eaa91

Error while compiling Pong.elm: Parse error at (line 100, column 5): unexpected "U" expecting "{"

@evancz
Copy link
Member

evancz commented Nov 26, 2012

Ah, oops. This version should work for now. Does it work for you? I'll roll this back tonight so that people don't run into this issue again.

I updated the Pong file to work with the upcoming release of Elm which has some nicer syntax and library functions. The new version uses whitespace sensitivity to get rid of { ; ; } in case expressions (causing the error you see). It also uses the Time.fps function to set the frame rate more easily (no need for the separate JS file anymore).

Thanks for the report!

@evancz
Copy link
Member

evancz commented Nov 27, 2012

I rolled it back to the earlier version. So if you re-download the file (or sync your branch) it should be in working order now! Please tell me if this resolves the issue!

@Nek
Copy link
Author

Nek commented Nov 27, 2012

Thanks for a (very) quick fix! It works.
But now I can't wait for the next version 😄 'cause syntax improvements look great.

@evancz
Copy link
Member

evancz commented Nov 28, 2012

No problem!

Should be out in the next couple weeks so keep an eye out :) Just deciding on some final details before writing it up.

@evancz evancz closed this as completed Nov 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants