Sublime Text build: cannot find the specified file

I installed the CoffeeScript plugin through the Control Package. When I try to create test.coffee, it gives me the following:

[Error 2] The system cannot find the file specified [cmd: [u'cake', u'sbuild']] [dir: C:\Users\Me\Documents\TestProject] [path: C:\Users\Me\AppData\Roaming\npm\] [Finished] 

Here is built in Sublime Text. I am on Windows and all CoffeeScript outside ST2 is working correctly.

 { "cmd": ["cake", "sbuild"], "path": "C:\\Users\\Me\\AppData\\Roaming\\npm", "selector": "source.coffee", "working_dir": "$project_path" } 

The path gives the correct meaning. Cake script is. So where is the problem?

+3
source share
3 answers

Thanks for helping the guys. I finally found a problem.

On windows instead

 "cmd": ["cake", "sbuild"] 

he should be

 "cmd": ["cake.cmd", "sbuild"] 

Instead of changing, just add:

 "windows": { "cmd": ["cake.cmd", "sbuild"] } 

It was subtle ...

+11
source

Using the Ms Window environment, you can try the following:

 { "windows": { "cmd": ["cake", "sbuild"], "selector": "source.coffee", "working_dir": "$project_path" } } 
+1
source
  • Make sure the cake is on your DOS path (I assume it is because you said that it works outside of ST2)
  • Delete the line using the path from your ST2 command. This line overwrites your DOS path and this will prevent the ST2 executable from being searched.
0
source

All Articles