Love to stay open on error and give output to the VSCode output(or: How to set up Love for VScode)
Posted: Tue Feb 19, 2019 7:28 pm
I've been trying to set up Love again for VScode on my new computer. I used to use this tasks.json file:
This used to work completely, Lua would pass on the console output to the tasks console in VScode, and it would stay open after it had crashed.
On my new install output is not pushed to the vscode tasks console, and Love closes immideately, there is no way for me to see the error that has occured, since there is no recollection of the error anywhere. I've thought of using a permanent commandline that I use to execute my love install, but that just takes a lot of time, alt tabbing to the commandline and executing. Plus I know that this has worked before, so I should be able to fix it.
As a secondary question, is there a vscode plugin for API intellisense? The only plugins I've seen where very rudimentory, and didn't seem to work well. (most of them promised the above usabillity but didn't work.)
Quick ninja edit: I had and thus have LUA set up to buffer as little as possible using This should not be the problem, since once again this used to work, but it doesn't anymore.
Code: Select all
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
//snip
{
// The command is the path to your love install exe.
"command": "C:\\Program Files\\LOVE\\love.exe",
// The command is a shell script
"type": "shell",
// args are appended onto the command run, just like a batch file
"args": ["${workspaceRoot}"],
"version": "2.0.0",
"group": {
"kind": "build",
"isDefault": true
}
}
On my new install output is not pushed to the vscode tasks console, and Love closes immideately, there is no way for me to see the error that has occured, since there is no recollection of the error anywhere. I've thought of using a permanent commandline that I use to execute my love install, but that just takes a lot of time, alt tabbing to the commandline and executing. Plus I know that this has worked before, so I should be able to fix it.
As a secondary question, is there a vscode plugin for API intellisense? The only plugins I've seen where very rudimentory, and didn't seem to work well. (most of them promised the above usabillity but didn't work.)
Quick ninja edit: I had and thus have LUA set up to buffer as little as possible using
Code: Select all
io.stdout:setvbuf("no")