This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Cannot run CoffeeScript in shebang mode #11744
Comments
ariya
pushed a commit
that referenced
this issue
Dec 13, 2013
ariya
pushed a commit
that referenced
this issue
Dec 13, 2013
While the support is there by the above two commits, there's still a bug. Launching like this:
causes PhantomJS to open its REPL. I think it should still reject the empty language value like that. |
Closed
sodabrew
added a commit
to sodabrew/phantomjs
that referenced
this issue
Dec 13, 2013
sodabrew
added a commit
to sodabrew/phantomjs
that referenced
this issue
Dec 13, 2013
sodabrew
added a commit
to sodabrew/phantomjs
that referenced
this issue
Dec 13, 2013
sodabrew
added a commit
to sodabrew/phantomjs
that referenced
this issue
Dec 13, 2013
ariya
pushed a commit
that referenced
this issue
Dec 16, 2013
Thanks! Looking forward to the next release :) |
@ariya I noticed that this hasn't landed in a PhantomJS 1.9.x release yet - may I request a cherry-pick of this PR and related commits -- see https://github.com/ariya/phantomjs/commits?author=sodabrew -- to the 1.9 branch? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to write a command-line tool in CoffeeScript. This does not work:
Results in
SyntaxError: Parse error
Reason appear to be that the method
jsFromScriptFile
does not have a way to clue phantomjs in that a file that starts with#!
(shebang) might be written in coffeescript.I could rename my script to
scriptname.coffee
, and then execute the script directly and it works, but defeats the purpose of having a useful executable script name.https://github.com/ariya/phantomjs/blob/1.9/src/utils.cpp#L165-189
The text was updated successfully, but these errors were encountered: