jcoglan / fargo

Lisp with fibers for Node.js
http://fargo.jcoglan.com
157 stars 10 forks source link

Won't build #4

Closed adrusi closed 12 years ago

adrusi commented 13 years ago

when I run jake in vendor/js.class it says there's a syntax error and exits

jcoglan commented 13 years ago

I'm afraid I can't reproduce this. Exactly what set of shell commands are you running?

adrusi commented 13 years ago

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

jcoglan commented 13 years ago

Can you paste the output of cat $(which jake)?

adrusi commented 13 years ago
#!/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.

jcoglan commented 13 years ago

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:

adrusi commented 13 years ago

That work, thanks. My jake was in ~/.rvm/gems/ruby-1.9.2-p136/gems/jake-1.0.1/bin/jake