sublimetext2 - Sublime Text 2 - build can't find something on my path? -
i have next coffeescript build file:
{ "cmd": ["coffee", "-c", "$file"] , "selector": "source.coffee" }
which when seek run gives me:
[error 2] scheme cannot find file specified [cmd: [u'coffee',u'-c', u'w:\mayapp\myscript.coffee']]
[dir: w:\myapp]
[path: /usr/local/bin:c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files\microsoft\web platform installer\;c:\program files (x86)\microsoft asp.net\asp.net web pages\v1.0\;c:\program files (x86)\windows kits\8.0\windows performance toolkit\;c:\program files\microsoft sql server\110\tools\binn\;c:\program files (x86)\microsoft sql server\110\tools\binn\;c:\program files\microsoft sql server\110\dts\binn\;c:\program files (x86)\microsoft sql server\110\tools\binn\managementstudio\;c:\program files (x86)\microsoft visual studio 10.0\common7\ide\privateassemblies\;c:\program files (x86)\microsoft sql server\110\dts\binn\;c:\program files\tortoisehg\;c:\program files (x86)\nodejs\;c:\program files\mercurial\;c:\program files\tortoisesvn\bin;c:\strawberry\c\bin;c:\strawberry\perl\site\bin;c:\strawberry\perl\bin;c:\program files (x86)\bitvise ssh client;c:\chocolatey\bin;c:\users\george\appdata\roaming\npm\;c:\program files\gallio\bin;c:\program files (x86)\git\cmd;] [finished]
in powershell
coffee -c w:\myapp\myscript.coffee
runs fine leading me think it's coffee
file npm build scheme cannot find. yet notice npm directory on path , coffee.cmd
absolutely in directory
w:> get-command coffee | select path path ---- c:\users\george\appdata\roaming\npm\coffee.cmd
my best guess error due linux path prefixed sublime's path variable have no thought coming not in path variable outside of sublime.
the solution utilize command name extension - sublime unable infer it.
so:
{ "cmd": ["coffee.cmd", "-c", "$file"] , "selector": "source.coffee" }
path sublimetext2 build-system
No comments:
Post a Comment