Sublime Forum

How to create a new build system for CoffeeScript

#1

Hi

I tried to setup a new builder for CoffeeScript files. But I get

"No such file or directory"

when I try to build it.

This is what the build file looks like:

{
	"cmd": "coffee", "$file"]
}

I’ve looked at this: sublimetext.info/docs/reference/ … stems.html

And I think I need to setup “env” correctly. But I can’t figure out what is the right way to pass that in.

Any help would be greatly appreciated.

Also, would there be a way to run the script as well?

Thanks.

Indy

0 Likes

#2

Locate your “coffee” executable and add that path to “path”:

{ "cmd": "coffee", "$file"], "path": "/path/to/coffeebin:$PATH" }

That should do it, I believe.

0 Likes

#3

Thanks for that.

I also tried setting up the Mac environment variables and specifying the path there. I used rubicode.com/Software/RCEnvironment/ to set the path up on my Mac, logged out and logged back in. And it worked as well.

0 Likes