Love2d won't build with Sublime Text 3

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
VFXed
Prole
Posts: 1
Joined: Tue Jul 21, 2015 6:36 am

Love2d won't build with Sublime Text 3

Post by VFXed » Tue Jul 21, 2015 6:39 am

I've tried all different versions of Sublime Text. I checked, and LuaLove is checked in the Build System. Whenever I try to build a program I wrote, this pops up:

[WinError 2] The system cannot find the file specified
[cmd: ['lua', 'C:\\Khavan\\main.lua']]
[dir: C:\Khavan]
[path: C:\ProgramData\Oracle\Java\javapath;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files (x86)\QuickTime\QTSystem\]
[Finished]

I have no idea what this means. I checked the location of the lua file, but it still exists and the file is still there.

Also, here's the simple code I tried to run:

function love.draw()
love.graphics.print("Hello World!", 400, 300)
end

User avatar
BOT-Brad
Citizen
Posts: 87
Joined: Tue Dec 02, 2014 2:17 pm
Location: England

Re: Love2d won't build with Sublime Text 3

Post by BOT-Brad » Tue Jul 21, 2015 7:59 pm

This is the custom build system I have for ST3.

Code: Select all

{
	"shell": true,
	"cmd": ["B:/Program Files (x86)/LOVE/love.exe", "${project_path:${folder}}"]
}
Just change that path to the path of love.exe on your machine and as long as you have set the project folder as your root folder (Project -> Add Folder to Project) it should run fine.
Follow me on GitHub! | Send me a friend request on PSN!

User avatar
adrix89
Party member
Posts: 135
Joined: Fri Oct 15, 2010 10:58 am

Re: Love2d won't build with Sublime Text 3

Post by adrix89 » Mon Aug 03, 2015 2:08 pm

Is there any way to get the love console to work?

Any build systems I try does not have the console even if I have it in the config file set.
I use Workflowy but you can check out Dynalist as its the better offer.

User avatar
Chef_Panic
Prole
Posts: 5
Joined: Sun Jan 05, 2014 9:05 pm

Re: Love2d won't build with Sublime Text 3

Post by Chef_Panic » Mon Aug 03, 2015 8:12 pm

adrix89 wrote:Is there any way to get the love console to work?

Any build systems I try does not have the console even if I have it in the config file set.
Add the following at the top of your main.lua file:

Code: Select all

io.stdout:setvbuf("no")
More about this here: https://love2d.org/wiki/Sublime_Text_2

fatfatson
Prole
Posts: 2
Joined: Sat Oct 15, 2016 4:48 pm

Re: Love2d won't build with Sublime Text 3

Post by fatfatson » Sat Oct 15, 2016 4:51 pm

io.stdout:setvbuf("no")
still no console when launch from sublime3

User avatar
zorg
Party member
Posts: 2806
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Love2d won't build with Sublime Text 3

Post by zorg » Sun Oct 16, 2016 5:36 am

Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 33 guests