Page 1 of 1
[HELP] Sublime 2 - "'love' is not recognized as..."
Posted: Sat Jan 24, 2015 6:40 am
by RonCode
Hi All!
I'm new here and I cant wait to make some fantastic games, from what I've heard, this is a fantastic engine and a great community!
I'm trying to configure my Sublime 2 with Love but I keep running into this error:
'love' is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.0s with exit code 1]
I found this thread:
viewtopic.php?f=4&t=76715 but this solution doesn't seem to help me :-/
Code: Select all
{
"path": "C:\\Program Files (x86)\\LOVE",
"selector": "source.lua",
"shell": true,
"cmd": ["love", "$file_path"]
}
Any other ideas? I'm able to zip the file and have it load manually to Love2d, but I'd
love it if I could build straight from Sublime.
Thanks!!
Re: [HELP] Sublime 2 - "'love' is not recognized as..."
Posted: Sat Jan 24, 2015 10:43 am
by Doctory
you could always drag the folder over the love icon
EDIT:
Code: Select all
{
"selector": "source.lua",
"cmd": ["C:/Program Files/LOVE/love.exe", "${project_path:${file_path}}"],
"shell": true,
"file_regex": "^Error: (?:[^:]+: )?([^: ]+?):(\\d+):() ([^:]*)$"
}
use this instead
also:
https://love2d.org/wiki/Sublime_Text_2#Without_Packages
Re: [HELP] Sublime 2 - "'love' is not recognized as..."
Posted: Sat Jan 24, 2015 5:16 pm
by RonCode
Doctory wrote:you could always drag the folder over the love icon
Yeah, that's what I've been doing, was hoping for a better solution to make debugging less of a hassle then it already is
EDIT:
Now I'm getting this:
'C:/Program' is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.3s with exit code 1]
Re: [HELP] Sublime 2 - "'love' is not recognized as..."
Posted: Sat Jan 24, 2015 5:20 pm
by Doctory
instead of Program Files try PROGRA~1
Re: [HELP] Sublime 2 - "'love' is not recognized as..."
Posted: Sat Jan 24, 2015 5:46 pm
by RonCode
Doctory wrote:instead of Program Files try PROGRA~1
WOOOOOT! I love you! That worked! Although... I cant figure out why.
Can you elucidate?
Thanks again!!!!
Re: [HELP] Sublime 2 - "'love' is not recognized as..."
Posted: Sat Jan 24, 2015 5:51 pm
by Doctory
tbh i dont really know why it workes myself.
it works for all files, try runing dir /x in cmd if you have windows
EDIT: found out! it works because windows still uses the old 8.3 file format
Re: [HELP] Sublime 2 - "'love' is not recognized as..."
Posted: Sun Jan 25, 2015 6:55 am
by adrix89
The way i manage it is with this.
Code: Select all
{
"shell_cmd": "love $project_path",
"path":"C:/Program Files/LOVE/"
}
The project has to be the folder of your source(like you would drag to the love)
Re: [HELP] Sublime 2 - "'love' is not recognized as..."
Posted: Sun Apr 02, 2017 8:49 am
by zyloaf
Im having the same problem too.I still cant find a way to solve it