Home Download Buy Blog Forum Support

Creating a build system for OCaml

Creating a build system for OCaml

Postby elias.wald on Sun Nov 06, 2011 4:17 am

Hey all,
I am new to the Forums and to Sublime text, but I'm having difficulty making a build system for OCaml. I created a OCamlC.sublime-build file in the ~/Library/Application Support/Sublime Text 2/Packages/OCaml/ directory, and here is what I put into it:
{
"cmd": ["ocamlc", "$file"],
"selector": "source.ml",
"working_dir": "${project_path:${folder}}"
}
ocamlc is in my PATH variable, and the command works on a command line, but when I try to build in Sublime Text 2, it gives me the message on the console:
[Errno 2] No such file or directory
[Finished]

Any advice as to what I can do to fix this? Thanks for the advice.
elias.wald
 
Posts: 1
Joined: Sun Nov 06, 2011 4:13 am

Re: Creating a build system for OCaml

Postby matt.loring on Wed Sep 26, 2012 12:13 pm

Sublime may not be accessing the same path variable that your command line is. Type in "echo $PATH" in your command line and then copy the contents into your .sublime-build file under the key "path".
matt.loring
 
Posts: 1
Joined: Wed Sep 26, 2012 12:10 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 19 guests