Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Parse error with UTF-8 BOM + @ #67

Closed
provegard opened this Issue · 3 comments

2 participants

@provegard

I have a coffee file with a UTF-8 BOM marker that begins with a @:

<U+FEFF>@foo = bar

Coffeelint gives:

test.coffee(1): error: Error: Parse error on line 1: Unexpected '@'

If I start the file with an empty line, the error goes away.

@AsaAyers
Collaborator

I don't know how to generate a file like that. Can you provide a file, or instructions?

@provegard

On Windows:

  1. Open Notepad
  2. Type "@foo = bar" without the quotes
  3. From the File menu, select Save As...
  4. In the Encoding drop-down, select UTF-8
  5. Save

You should now have a file with a UTF-8 BOM marker.

@AsaAyers
Collaborator

I'm unable to reproduce the problem with the currently released version, or master. Parse errors are also come from CoffeeScript, so if you get that error you probably can't run your file either.

I don't use Windows, so maybe it's a problem with CoffeeScript on Windows?

@AsaAyers AsaAyers closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.