Sublime Text build:找不到指定的文件 [英] Sublime Text build: cannot find the file specified
本文介绍了Sublime Text build:找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经通过 Package Control 安装了 CoffeeScript 插件.当我尝试构建 test.coffee 时,它给了我这个:
I've installed the CoffeeScript plugin via Package Control. When I try to build test.coffee it gives me this:
[Error 2] The system cannot find the file specified
[cmd: [u'cake', u'sbuild']]
[dir: C:UsersMeDocumentsTestProject]
[path: C:UsersMeAppDataRoaming
pm]
[Finished]
这是 Sublime Text 中的构建.我在 Windows 上,ST2 之外的所有 CoffeeScript 都可以正常工作.
Here's the build in Sublime Text. I'm on Windows and everything CoffeeScript outside of ST2 works correctly.
{
"cmd": ["cake", "sbuild"],
"path": "C:\Users\Me\AppData\Roaming\npm",
"selector": "source.coffee",
"working_dir": "$project_path"
}
路径给出了正确的值.蛋糕脚本在那里.那么问题出在哪里?
The path gives the correct value. The cake script is there. So where's the problem?
推荐答案
感谢大家的帮助.终于找到问题了.
Thanks for the help guys. I've finally found the problem.
在 Windows 上,而不是
On Windows, instead of
"cmd": ["cake", "sbuild"]
应该是
"cmd": ["cake.cmd", "sbuild"]
不要修改它,只需添加:
Instead of modifying it just add:
"windows":
{
"cmd": ["cake.cmd", "sbuild"]
}
那是微妙的......
That was subtle...
这篇关于Sublime Text build:找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文