Closed adrusi closed 12 years ago
I'm afraid I can't reproduce this. Exactly what set of shell commands are you running?
Using the instructions in the readme, I ran
$ git clone git://github.com/jcoglan/fargo.git
$ cd fargo
$ gem install jake
$ git submodule update --init --recursive
$ cd vendor/js.class
All successfully. But when I run
$ jake
it fails with
(in /Users/Adrian/fargo/vendor/js.class)
Error on line 2 of file [unknown]
SyntaxError: Parse error
I have absolutely no experience with jake, so I might be doing something stupid
Can you paste the output of cat $(which jake)
?
#!/usr/bin/env narwhal
var JAKE = require("jake");
var SYSTEM = require("system");
JAKE.application().run({ args : SYSTEM.args });
I checked to make sure I have narwhal installed.
Ah, I see the problem. There are too many programs called Jake. My Jake is a Ruby program that builds JavaScript projects, it's the one you install with gem install jake
. You'll need to invoke it using the full path since there's another program called jake
in your $PATH
. Depending on how you installed Ruby, it will probably be in one of these places:
~/.rvm/gems/ruby-1.9.2-p180/gems/jake-1.0.1/bin/jake
/usr/lib/ruby/gems/1.8/gems/jake-1.0.1/bin/jake
That work, thanks. My jake
was in ~/.rvm/gems/ruby-1.9.2-p136/gems/jake-1.0.1/bin/jake
when I run
jake
in vendor/js.class it says there's a syntax error and exits