崇高文本编译:找不到指定文件 [英] Sublime Text build: cannot find the file specified

查看:288
本文介绍了崇高文本编译:找不到指定文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了通过包控制的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:\Users\Me\Documents\TestProject]
[path: C:\Users\Me\AppData\Roaming\npm\]
[Finished]

下面是崇高的文本生成。我在Windows和CoffeeScript的一切之外ST2正常工作。

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...

这篇关于崇高文本编译:找不到指定文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆