Closed lunaro-4 closed 2 months ago
Here is the log from last launch
I have also tried launching server form godot and changing request to 'connect', and than dap either says
Debug adapter didn't respond. Either the adapter is slow (then wait and ignore this) or there is a problem with your adapter or `godot` config uration. Check the logs for errors (:help dap.set_log_level)
or gives 3 errors:
Error executing vim.schedule lua callback: ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:956: Expected comma or object end but f
ound invalid token at character 107
stack traceback:
[C]: in function 'json_decode'
...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:956: in function 'handle_body'
...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1343: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Error executing luv callback:
...are/nvim/site/pack/packer/start/nvim-dap/lua/dap/rpc.lua:81: ...are/nvim/site/pack/packer/start/nvim-dap/lua/dap/rpc.lua:36: bad argument #
1 to 'sub' (number expected, got nil)
stack traceback:
[C]: in function 'parse_chunk'
...are/nvim/site/pack/packer/start/nvim-dap/lua/dap/rpc.lua:81: in function <...are/nvim/site/pack/packer/start/nvim-dap/lua/dap/rpc.l
ua:67>
Error executing luv callback:
...are/nvim/site/pack/packer/start/nvim-dap/lua/dap/rpc.lua:81: cannot resume dead coroutine
stack traceback:
[C]: in function 'parse_chunk'
...are/nvim/site/pack/packer/start/nvim-dap/lua/dap/rpc.lua:81: in function <...are/nvim/site/pack/packer/start/nvim-dap/lua/dap/rpc.l
ua:67>
and log is :
According to https://github.com/godotengine/godot-vscode-plugin?tab=readme-ov-file#configurations there is no launch_scene
I'm not sure why the scene
property is not taking any effect. According to the log it's sent correctly:
[ DEBUG ] 2024-04-05T21:40:03Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1683 ] "request" {
arguments = {
launch_scene = false,
name = "Launch scene",
project = "/home/lunaro/GodotProjects/my-game",
request = "launch",
scene = "current",
type = "godot"
},
It not getting used would be a problem in the godot/dap implementation. The client does what it's supposed to do.
Debug adapter definition and debug configuration
Installed via packer, configured as in example. Originally wanted to launch specific debug scene (instead of default 'main'), but it turns out, only required fields ( 'type', 'request' and 'name' ) and 'project' field have effect on engine's behavior.
Changing 'project' field can return error in godot, if path does not contain project.godot, or contain project.godot form project, other than currently oppened
Debug adapter version
0.7.0
Steps to Reproduce
:lua require('dap').continue()
Expected Result
Launch current scene, or do not launch at all (since
launch_scene = false
)Actual Result
Main scene launches