Juice_Box wrote:I know this question has been asked about a million times, but I can't find a fix (at all) for this. I'm trying to make a build system in Sublime Text 2 for love but I keep on getting the same error,
Code: Select all
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.1s with exit code 1]
The code that i have entered is the default build system listed at the site
http://love2d.org/wiki/Sublime_Text_2
[Note that my OS is Windows 7]
I hope that I'm not posting this in the wrong section at all, but if I am, then sorry. This is my first post on the forum
The problem is that there's a space in the path. Add your love install location to the PATH environment variable (google it), then set this as the build system:
Code: Select all
{
"selector": "source.lua",
"cmd": ["love", "${project_path:${file_path}}"],
"shell": true,
"file_regex": "^Error: (?:[^:]+: )?([^: ]+?):(\\d+):() ([^:]*)$"
}
or even better, install the
"LuaLove" package and modify the build system (C:\Users\....\AppData\Roaming\Sublime Text 2\Packages\Lua Love\LuaLove.sublime-build) to look like this:
Code: Select all
{
"file_regex": "^(?:(?:\t)|(?:.+: ))(.+):([0-9]+): (.*)$",
"selector": "source.lua",
"shell": true,
"cmd": ["love", "${project_path:${file_path:.}}"],
"variants": [
{
"name": "Love2D",
"shell": true,
"cmd": ["love", "${project_path:.}"],
"osx":
{
"cmd": ["love $project_path"]
}
},
{ "name": "ldoc: File",
"shell": true,
"cmd": ["ldoc -d $project_path/doc/$file_base_name -f markdown -t $file_base_name $file"]
},
{ "name": "ldoc: Project",
"shell": true,
"cmd": ["ldoc -d $project_path/doc -f markdown -t $project_base_name $project_path/src/"]
}
]
}
I also updated the wiki with this information.