I've got my Coffeescript builder going, which looks like this:
"cmd": "coffee", "$file"],
However, is there any way for me to type coffeescript code in an an unsaved file, and run the builder on it?
(I switch the syntax of the unsaved file to coffeescript, so Sublime knows that it is a coffeescript file).
Currently, when I run the builder on an unsaved document I get this error:
throw new Error("File not found: " + source);
Error: File not found:
I can see why this would happen as the file doesn't exist. But I'm unable to find the correct variable to add in the coffeescript builder. I've seen the variables listed at: sublimetext.com/docs/build, but none seems to fit the bill.
Essentially what needs to happen is that if the file is unsaved, and a builder is run on it, it needs to be run from a temporary folder (like TextMate does).
Is this possible at all?