【问题标题】:Path variable for coffeescript build in sublime on windowsCoffeescript 的路径变量在 Windows 上的 sublime 中构建
【发布时间】:2013-02-25 00:06:55
【问题描述】:

所以我有这个构建文件

{
    "cmd": ["coffee", "-c", "$file"],
    "selector": "source.coffee",
    "path": "C:\\Users\\Miles\\node_modules\\coffee-script\\bin",
    "working_dir": "$project_path"
}

它不断返回错误

[错误2]系统找不到指定的文件

我找了几天,我只能找到基于 unix 的路径。

我知道这很可能是微不足道的,但它已经有一段时间了

【问题讨论】:

  • 也许使用完整路径? "cmd": ["C:\\Users\\Miles\\node_modules\\coffee-script\\bin\\coffee.exe", "-c", "$file"]

标签: windows coffeescript sublimetext2


【解决方案1】:

经过大量修改后,效果很好。

{
    "cmd": ["coffee.cmd", "-c", "$file"],
    "selector": "source.coffee",
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "path": "$HOME/bin:/usr/local/bin:$PATH",
    "working_dir": "$project_path"
}

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-07-02
  • 1970-01-01
  • 2016-08-29
  • 1970-01-01
  • 2014-03-08
  • 2016-03-05
  • 1970-01-01
相关资源
最近更新 更多