Coder Social home page Coder Social logo

Comments (4)

lunaro-4 avatar lunaro-4 commented on June 11, 2024

Here is the log from last launch

[ DEBUG ] 2024-04-05T21:40:03Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1306 ] "Connecting to debug adapter" {
host = "127.0.0.1",
port = 6006,
type = "server"
}
[ DEBUG ] 2024-04-05T21:40:03Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1683 ] "request" {
arguments = {
adapterID = "nvim-dap",
clientID = "neovim",
clientName = "neovim",
columnsStartAt1 = true,
linesStartAt1 = true,
locale = "en_US.UTF-8",
pathFormat = "path",
supportsProgressReporting = true,
supportsRunInTerminalRequest = true,
supportsStartDebuggingRequest = true,
supportsVariableType = true
},
command = "initialize",
seq = 1,
type = "request"
}
[ DEBUG ] 2024-04-05T21:40:03Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 1 {
body = {
supportSuspendDebuggee = true,
supportTerminateDebuggee = true,
supportedChecksumAlgorithms = { "MD5", "SHA256" },
supportsBreakpointLocationsRequest = true,
supportsConfigurationDoneRequest = true,
supportsEvaluateForHovers = true,
supportsRestartRequest = true,
supportsSetVariable = true,
supportsTerminateRequest = true,
supportsValueFormattingOptions = true
},
command = "initialize",
request_seq = 1,
seq = 1,
success = true,
type = "response"
}
[ 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"
},
command = "launch",
seq = 2,
type = "request"
}
[ DEBUG ] 2024-04-05T21:40:03Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 1 {
event = "initialized",
seq = 2,
type = "event"
}
[ DEBUG ] 2024-04-05T21:40:03Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1683 ] "request" {
command = "configurationDone",
seq = 3,
type = "request"
}
[ DEBUG ] 2024-04-05T21:40:04Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 1 {
command = "launch",
request_seq = 2,
seq = 3,
success = true,
type = "response"
}
[ DEBUG ] 2024-04-05T21:40:04Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 1 {
body = {
name = "/usr/bin/Godot",
startMethod = "launch"
},
event = "process",
seq = 4,
type = "event"
}
[ DEBUG ] 2024-04-05T21:40:04Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 1 {
command = "configurationDone",
request_seq = 3,
seq = 5,
success = true,
type = "response"
}
[ DEBUG ] 2024-04-05T21:40:10Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 1 {
body = {
category = "stdout",
output = "Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org\nVulkan API 1.3.255 - Forward+ - Using Vulkan Device #0: AMD - AMD Radeon RX 6600 (RADV NAVI23)\n \r\n"
},
event = "output",
seq = 6,
type = "event"
}
[ DEBUG ] 2024-04-05T21:40:13Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 1 {
body = {
exitCode = 0
},
event = "exited",
seq = 7,
type = "event"
}
[ DEBUG ] 2024-04-05T21:40:13Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 1 {
event = "terminated",
seq = 8,
type = "event"
}

from nvim-dap.

lunaro-4 avatar lunaro-4 commented on June 11, 2024

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 :

[ INFO ] 2024-04-05T21:48:36Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1795 ] "Session closed due to disconnect"
[ DEBUG ] 2024-04-05T21:48:38Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1306 ] "Connecting to debug adapter" {
host = "127.0.0.1",
port = 6006,
type = "server"
}
[ DEBUG ] 2024-04-05T21:48:38Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1683 ] "request" {
arguments = {
adapterID = "nvim-dap",
clientID = "neovim",
clientName = "neovim",
columnsStartAt1 = true,
linesStartAt1 = true,
locale = "en_US.UTF-8",
pathFormat = "path",
supportsProgressReporting = true,
supportsRunInTerminalRequest = true,
supportsStartDebuggingRequest = true,
supportsVariableType = true
},
command = "initialize",
seq = 1,
type = "request"
}
[ DEBUG ] 2024-04-05T21:48:38Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 2 {
body = {
supportSuspendDebuggee = true,
supportTerminateDebuggee = true,
supportedChecksumAlgorithms = { "MD5", "SHA256" },
supportsBreakpointLocationsRequest = true,
supportsConfigurationDoneRequest = true,
supportsEvaluateForHovers = true,
supportsRestartRequest = true,
supportsSetVariable = true,
supportsTerminateRequest = true,
supportsValueFormattingOptions = true
},
command = "initialize",
request_seq = 1,
seq = 1,
success = true,
type = "response"
}
[ DEBUG ] 2024-04-05T21:48:38Z+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-rebirth-into-a-game",
request = "connect",
scene = "current",
type = "godot"
},
command = "connect",
seq = 2,
type = "request"
}
[ DEBUG ] 2024-04-05T21:48:38Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 2 {
event = "initialized",
seq = 2,
type = "event"
}
[ DEBUG ] 2024-04-05T21:48:38Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1683 ] "request" {
command = "configurationDone",
seq = 3,
type = "request"
}
[ DEBUG ] 2024-04-05T21:48:38Z+0300 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:957 ] 2 {
command = "configurationDone",
request_seq = 3,
seq = 3,
success = true,
type = "response"
}

from nvim-dap.

mfussenegger avatar mfussenegger commented on June 11, 2024

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.

from nvim-dap.

lunaro-4 avatar lunaro-4 commented on June 11, 2024

Yes, after further inspection, I found a lot of complains about dap in godot engine, like this one, so it is definitely related to godot itself. Thank you for responding!

from nvim-dap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.