Closed Nikola-Milovic closed 2 years ago
I too am encountering this very same issue. I'm on MacOS, and I am using a Mason managed codelldb installation so my paths are slightly different and in my case I have liblldb.dylib
instead of liblldb.so
. But nonetheless I get the same error .
nvim version: NVIM v0.7.0
rust-tools version: let g:plugs['rust-tools.nvim'].commit = 'b696e6dee1e79a53159f1c0472289f5486ac31bc'
nvim-dap version: let g:plugs['nvim-dap'].commit = 'ea25d6d7877558132e11ee9bcf099bf911cb25ac'
Same issue here. Here's my config. https://github.com/rnewton5/neovim-config
My nvim-dap setup: https://github.com/rnewton5/neovim-config/blob/master/lua/plugins/configs/dap.lua My rust-tools setup: https://github.com/rnewton5/neovim-config/blob/master/lua/plugins/configs/lsp/init.lua#L21
I also ensure codelldb is installed at the locations specified.
I figured out what it was for me.
for some reason using '~' to reference my home directory was causing issues. It was something I recently changed, but I didn't think it would be problematic.
So I changed:
rust_tools.setup({
-- other settings omitted for berevity...
dap = {
adapter = require('rust-tools.dap').get_codelldb_adapter(
"~/.local/share/nvim/mason/packages/codelldb/extension/adapter/codelldb",
"~/.local/share/nvim/mason/packages/codelldb/extension/lldb/lib/liblldb.so"
)
}
})
to
rust_tools.setup({
-- other settings omitted for berevity...
dap = {
adapter = require('rust-tools.dap').get_codelldb_adapter(
"/home/me/.local/share/nvim/mason/packages/codelldb/extension/adapter/codelldb",
"/home/me/.local/share/nvim/mason/packages/codelldb/extension/lldb/lib/liblldb.so"
)
}
})
and that fixed it. I don't think this is and issue with rust-tools btw. I also tried debugging directly with nvim-dap and received the same message when using '~' to reference my home directory.
@Nikola-Milovic, at a glance, it doesn't look like this'll help you because I believe vim.env.HOME
== "/home/you" by default, but might want to print it out and see if that is the case or not.
Pretty sure OP has the wrong path for codelldb, and yeah, ~
doesn't work, hence the use of vim.env.HOME
@Nikola-Milovic please check if the path actually exists
@Nikola-Milovic please check if the path actually exists
Yep it was a path issue, its resolved now. The versions were different of the extension
Hello everyone, whenever I try to debug my code via the codeactions popup I get this error
My setup seems standard
My
rust_tools
setupMy dap installation
My dap setup
My nvim version
NVIM v0.8.0-dev+580-g45ba2e147