Sublime Text 2 - No console output
Posted: Sun Jul 05, 2015 3:28 am
I've been trying to get Sublime Text 2's build systems to work for me, but I can't get the console to show any output. The game runs correctly but no console. If I run my game manually by navigating to the directory and typing "love .", I get the output I'm looking for, so I'm certain it's a Sublime issue.
I found another thread with the same issue but there wasn't a solution found and I'm out of ideas. I'm using LOVE 0.9.2 and Sublime Text 2.0.2. I've tried "io.stdout:setvbuf("no")" but that didn't change anything. The funny part is, if I run a different command (for example echo) I get the correct output in Sublime, and if I put some gibberish command the right error message shows. It's only when I run LOVE that there's no output. Here's my sublime project:
and conf.lua:
I found another thread with the same issue but there wasn't a solution found and I'm out of ideas. I'm using LOVE 0.9.2 and Sublime Text 2.0.2. I've tried "io.stdout:setvbuf("no")" but that didn't change anything. The funny part is, if I run a different command (for example echo) I get the correct output in Sublime, and if I put some gibberish command the right error message shows. It's only when I run LOVE that there's no output. Here's my sublime project:
Code: Select all
{
"folders":
[
{
"path": "."
}
],
"build_systems":
[
{
"name": "sandbox:run",
"cmd": ["love", "$project_path"],
"shell": true
}
]
}
Code: Select all
-- Configuration
-- Make console output appear in sublime text (Doesn't appear to work)
io.stdout:setvbuf("no")
function love.conf(t)
t.title = "Hello World"
t.version = "0.9.2"
t.window.width = 1280
t.window.height = 1024
t.window.display = 1
-- For Debugging
t.console = true
end