Comments (4)
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.
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.
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.
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)
- Can't set a breakpoint or pause the thread when run without breakpoints HOT 1
- Breakpoints inside lambda function HOT 1
- gdb does not shut down gracefully HOT 2
- "Wait for breakpoint" Triggered break points HOT 1
- With preview, a supplied expression is not passed to the refresh HOT 1
- Auto scroll when repl is not the active window
- Terminate only works before first breakpoint on vscode-js-debug
- Won't terminate after the first encountered breakpoint on vscode-js-debug HOT 9
- Cannot connect to gdbserver HOT 2
- Evaluate response throws Error for hover() etc. HOT 2
- nvim-dap not call disconnect leads lldb-vscode crash after debug session stop HOT 4
- `pick_process` does not work when a filter is passed to it HOT 4
- [BUG]: widgets.sidebar.toggle() causes incremental lag (js-debug-adapter) HOT 1
- Breakpoint unverified error (CodeLLDB) HOT 1
- Can't properly run debug session, it hangs after start HOT 1
- [lldb-vscode] Breakpoint unverified in nvim-dap but resolved accurately in lldb cli? HOT 3
- Source Mapping not working in WSL for Node with Jest HOT 1
- launch.json doesn't reload when using custom path with load_launchjs() HOT 2
- Make `require 'dap.ui.widgets'.hover()` jump to float only when calling twice HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-dap.