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

Error when trying to compile files in literate coffeescript (*.litcoffee) #137

Open
monkeymonk opened this issue Mar 14, 2014 · 4 comments

Comments

@monkeymonk
Copy link

When trying to compile file in .litcoffee Grunt send me an error of syntax:

➜ grunt coffee
Running "coffee:compile" (coffee) task
>> SyntaxError: In src/coffeescript/scripts.litcoffee, reserved word "with" on line 3
Warning: CoffeeScript failed to compile. Use --force to continue.

Aborted due to warnings.

src/coffeescript/scripts.litcoffee:

# Scripts - src/coffeescript/scripts.litcoffee

Martinus agens illas provincias pro praefectis aerumnas innocentium graviter gemens saepeque obsecrans, ut ab omni culpa inmunibus parceretur, cum non inpetraret, minabatur se discessurum: ut saltem id metuens perquisitor malivolus tandem desineret quieti coalitos homines in aperta pericula proiectare.

## Common

    # lot of stuff here...

When I try to compile with sudo coffee -o ../../public/js -j scripts.js -c scripts.litcoffee it works as expected.

@bonbek
Copy link

bonbek commented Apr 3, 2014

Same problem. I haven't dig a lot but in my case: the 'join' option was set to true and I only have one .litcoffee file. Removing this option fix the issue.

@nat-n
Copy link

nat-n commented Apr 8, 2014

could be related to #140 ??

@monkeymonk
Copy link
Author

Not for me... no sourcemap in my Gruntfile.js :

coffee: {
    compile: {
        files: {
            'public/js/scripts.js': [
                'src/coffeescript/scripts.litcoffee'
            ]
        }
    },
}, // coffee

@sethlivingston
Copy link

Confirmed.

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

4 participants