Closed 1024bees closed 1 year ago
Hey, I'm also having this issue. I believe this bug was introduced yesterday, as debuggables had a refactor, and I wasn't having this issue prior.
@igorlfs how did you launch off dap on cargo test targets before this change?
I'd like to understand how dap is typically launched with this plugin. How did you launch a debug session under dap prior to these recent changes?
The only example I saw was in the README, where it looks like there is a code action to start a debug session under dap.
The only example I saw was in the README, where it looks like there is a code action to start a debug session under dap.
Yeah, that's pretty much how it works. You should map rt.hover_actions.hover_actions
to something, go to the test definition and then select Debug. You can also use :RustDebuggables
but I don't find it as practical.
I'd like to understand how dap is typically launched with this plugin. How did you launch a debug session under dap prior to these recent changes?
I'm using codelldb installed via Mason and configured according to nvim-dap's wiki. Since I'm using Mason, which sets up codelldb in my path, my adapter configuration looks like the following:
{
type = "server",
port = "${port}",
executable = {
command = "codelldb",
args = { "--port", "${port}" },
},
}
And my rust-tools
config is:
require("rust-tools").setup({
server = {
...
},
tools = {
hover_actions = {
auto_focus = true, -- eases hover_actions' usage
},
},
dap = {
adapter = {
-- my codelldb adapter
}
},
})
Fixed in #327
Hey folks,
I'm trying to integrate
nvim-dap
withrust-tools
and I'm having some issues. the ideal UX i'm going for is being able to launch a particular test under gdb or rr from neovim.my relevant config files are
I've tried two paths thus far:
:RustDebuggables
path.Reproduction
Consider the minimal library crate with one test:
Invoking RustDebuggables
When I invoke RustDebuggables with the above code, I am greeted by three options:
if I select any of these options, the following text comes up:
If i press enter, regardless of the amount of time that I wait for a debug build to be compiled, the error
is always emitted
Using code actions
If I try to bring up code actions for the
it_works
test, I am only given the option for a singular action:Generate a documentation template
Notes
FWIW, I can use the
:RustTest
and:RustRunnables
command to run commands and tests with no issue.Has anyone seen this before? I'll use this as a tracking issue as I tinker around.