Home Download Buy Blog Forum Support

Problems compiling coffeescript on Windows 7

Problems compiling coffeescript on Windows 7

Postby daisy on Sun Mar 17, 2013 4:29 pm

Hi,

I have installed node.js from the website, and run npm install -g coffee-script on the command line to install coffee script globally.

However, when I come to compiling test.coffee, I having real problems - hope you can help!

Node.exe sits in the C:\Program Files\nodejs directory

Coffee.cmd is in C:\Users\This Computer Name\AppData\Roaming\npm

Coffeescript itself is in C:\Users\This Computer Name\AppData\Roaming\Sublime Text 2\Packages

I've tried countless permutations for the path in CoffeeScript.sublime-build, for example using "path":"C:\\Users\\This Computer Name\\AppData\\Roaming\\npm\\coffee" - generates this error message:

[Error 2] The system cannot find the file specified
[cmd: [u'coffee.cmd', u'-c', u'C:\\Users\\This Computer Name\\AppData\\Roaming\\Sublime Text 2\\Packages\\CoffeeScript\\CoffeeScript.sublime-build']]
[dir: C:\Users\This Computer Name\AppData\Roaming\Sublime Text 2\Packages\CoffeeScript]
[path: C:\Users\This Computer Name\AppData\Roaming\npm\coffee]
[Finished]

Can you help?

Many thanks
daisy
 
Posts: 4
Joined: Sun Mar 17, 2013 4:26 pm

Re: Problems compiling coffeescript on Windows 7

Postby wraith on Tue Sep 24, 2013 5:08 am

C:\Users\This Computer Name\AppData\Roaming\npm is the correct path that is needed. This is my CoffeeScript.sublime-build
Code: Select all
{
   "cmd": [ "coffee", "-m", "-c", "$file" ],
   "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
   "selector": "source.coffee, source.litcoffee, source.coffee.md",

   "windows":
   {
      "shell": true
   }
}
wraith
 
Posts: 4
Joined: Tue Sep 24, 2013 4:13 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 30 guests