bug: Golang integration not woking #80
Replies: 4 comments 1 reply
-
Hello,
What exactly do you mean by that?
Threads are first shown when a session stops. I assume that's not happening to you?
Can you please share a minimal config, with only the essential to reproduce the problem? Please include a single instance of:
To be clear: keymaps, other plugins and other debugging configurations only add noise.
Please, share details. As much as you can. For instance: (1) open this sample main.go (with an actual example); (2) set a breakpoint on line 10; (3) |
Beta Was this translation helpful? Give feedback.
-
Also, by the way, it looks like you're not calling |
Beta Was this translation helpful? Give feedback.
-
Hey, sorry if I was a little harsh earlier. Do you still need help with the setup? |
Beta Was this translation helpful? Give feedback.
-
@igorlfs I have been unavailable for a while so sorry for abandoning that PR with the go/delve support. This is how I'm configuring dap: dap.adapters.go = function(callback)
require("dap-view").open()
callback({
type = "executable",
command = vim.fn.expand("$MASON") .. "/packages/go-debug-adapter/go-debug-adapter",
executable = {
command = vim.fn.exepath("dlv"),
args = { "dap", "-l", "${host}:${port}", "--log", "--log-output=dap" },
},
})
end The Exceptions and Console tabs do not show anything of course, but I see everything else using The only thing this is missing from my old, hacky solution (https://github.com/catgoose/nvim/blob/5c4eceb991f34c6bec68590339335bc278745810/lua/config/dap/go.lua#L27-L79) is you can't interact with binary from the REPL. This really isn't a problem unless you are making some CLI tool that requires input, but I guess at that point just use flags? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Did you check docs and existing issues?
Neovim version (nvim -v)
0.11.2
Operating system/version
MacOS 15.5
Describe the bug
I'm trying to integrate dap-view with golang debug without success. I can see delve running, my requests are stopping, but no breakpoint triggers happens from the nvim dap view. And no threads are being displayed on the Threads tab too.
This is my current config
Steps To Reproduce
Use the same config and try to debug a main.go file.
Expected Behavior
Get the breakpoints working.
Beta Was this translation helpful? Give feedback.
All reactions