Tencent / LuaHelper

LuaHelper is a High-performance lua VSCode plugin, Language Server Protocol for lua.
Other
588 stars 91 forks source link

bad argument #8 to 'sync_breakpoints' (string expected, got nil) #182

Closed tidys closed 11 months ago

tidys commented 11 months ago
{
    "cmd": "output",
    "info": {
        "logInfo": "[Debug Lib Error]:call_lua_function Call 'SendMsgWithStack' error. ErrorCode: 2, 
                         ErrorMessage: [string \".\\LuaPanda.lua\"]:1134: 
                                bad argument #8 to 'sync_breakpoints' (string expected, got nil).\n"
    },
    "callbackId": "0"
}

最终传递到sync_breakpoints接口的breaks数据

{
    "main.lua": {
        "e:/main.lua": [
            {
                "type": "2",
                "verified": true,
                "line": "3"
            }
        ]
    },
    "loginscenelayer.lua": {
        "e:/loginscenelayer.lua": [
            {
                "type": "2",
                "verified": true,
                "line": "361"
            }
        ]
    }
}
tidys commented 11 months ago

相同的问题: https://github.com/Tencent/LuaHelper/issues/148