[HELP] Sublime 2 - "'love' is not recognized as..."

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
RonCode
Prole
Posts: 5
Joined: Sat Jan 24, 2015 6:33 am

[HELP] Sublime 2 - "'love' is not recognized as..."

Post 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!!
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: [HELP] Sublime 2 - "'love' is not recognized as..."

Post 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
RonCode
Prole
Posts: 5
Joined: Sat Jan 24, 2015 6:33 am

Re: [HELP] Sublime 2 - "'love' is not recognized as..."

Post 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:

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
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]
:(
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: [HELP] Sublime 2 - "'love' is not recognized as..."

Post by Doctory »

instead of Program Files try PROGRA~1
RonCode
Prole
Posts: 5
Joined: Sat Jan 24, 2015 6:33 am

Re: [HELP] Sublime 2 - "'love' is not recognized as..."

Post 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!!!!
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: [HELP] Sublime 2 - "'love' is not recognized as..."

Post 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
User avatar
adrix89
Party member
Posts: 135
Joined: Fri Oct 15, 2010 10:58 am

Re: [HELP] Sublime 2 - "'love' is not recognized as..."

Post 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)
I use Workflowy but you can check out Dynalist as its the better offer.
zyloaf
Prole
Posts: 4
Joined: Sun Apr 02, 2017 5:18 am

Re: [HELP] Sublime 2 - "'love' is not recognized as..."

Post by zyloaf »

Im having the same problem too.I still cant find a way to solve it
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests