Skip to content

LÖVE crashing on startup #88

@scumpsmallbrain

Description

@scumpsmallbrain

Hi, I just set up a new LÖVE2D project and any time I try to run the debugger I get a window that closes immediately.

Project setup:

.
├── .vscode/
│   ├── launch.json
│   └── settings.json
└── main.lua

launch.json

{
    "version": "0.2.0",
	"configurations": [
        {
            "name": "Debug Love",
            "type": "lua-local",
            "request": "launch",
            "program": {
                "command": "love"
            },
            "args": [".", "debug"],
            "scriptRoots": ["."]
        }
    ]
}

settings.json

{
    "Lua.diagnostics.globals": [
        "love"
    ],
    "Lua.diagnostics.disable": [
        "lowercase-global"
    ],
    "Lua.runtime.version": "LuaJIT",
    "Lua.workspace.library": [
        "${3rd}/love2d/library"
    ],
    "lua-local.interpreter": "LuaJIT"
}

main.lua

if arg[2] == "debug" then
    require("lldebugger").start()
end

function love.draw()
    love.graphics.circle("fill", 64, 64, 16)
end

Versions

package version installed from
code VSCodium 1.102.24914 scoop
extension 0.3.3 open-vsix
LÖVE2D 11.5 scoop

When I run it without the "debug" argument (including via a different vscode task), it runs and draws the circle with no problem. It seems to be exiting at the require line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions