Sublime Forum

Coffee-Script Build || Batch Problem

#1

Currently I try to create a Plugin, which eases the compilation of CoffeeScript/Less/node.js files - which aren’t officialy supported at Windows. At least there are serveral workarounds for them and after I finally I found a solution for each which fits well, I’d wrote a batch files for each type to run them properly. As I’am using the console, it works well - but unfortunately it doesn’t run at Sublime (based on duncan smart):frowning:

Here is the code for building & the batch:

{
	"cmd": "coffee.bat", "$file"],		
	"selector" : "source.coffee",
	"path" : "%APPDATA%\\Sublime Text 2\\Packages\\SublimeResult\\trigger"			
}
:: Coffee-Builder-Batch
::@echo off
set input=%1
set output=%input:~0,-6%
cscript //nologo ../win_code/"coffee.wsf" %input% %output%js

The python console shows, that it complains about “cscript” (seems like he doesn’t know it - even though it normaly works via cmd) and uses “set output=…” wrong (takes one letter moren than it should). Moreover I get the message"[Decode error - output not utf-8]" at the beginning.

Would be great if you could help me with this issues :wink:

0 Likes