Closed salimp2009 closed 1 year ago
same issue...waiting
I'm not a contributor to rust-tools
or anything like that, but if I can allow myself to make a suggestion after investigating on my side and trying to fix the issue :
I managed to solve this exact error by removing the whole codelldb_adapter
definition, and add the following section to the configuration of rust-tools
dap =
{
adapter = function()
return require('rust-tools.dap').get_codelldb_adapter(
codelldb_path, liblldb_path)
end
}
It is suggested here : https://github.com/simrat39/rust-tools.nvim/wiki/Debugging Hope it does help you :)
I'm not a contributor to
rust-tools
or anything like that, but if I can allow myself to make a suggestion after investigating on my side and trying to fix the issue :I managed to solve this exact error by removing the whole
codelldb_adapter
definition, and add the following section to the configuration ofrust-tools
dap = { adapter = function() return require('rust-tools.dap').get_codelldb_adapter( codelldb_path, liblldb_path) end }
It is suggested here : https://github.com/simrat39/rust-tools.nvim/wiki/Debugging Hope it does help you :)
I will try thank you. Report here
I'm not a contributor to
rust-tools
or anything like that, but if I can allow myself to make a suggestion after investigating on my side and trying to fix the issue :I managed to solve this exact error by removing the whole
codelldb_adapter
definition, and add the following section to the configuration ofrust-tools
dap = { adapter = function() return require('rust-tools.dap').get_codelldb_adapter( codelldb_path, liblldb_path) end }
It is suggested here : https://github.com/simrat39/rust-tools.nvim/wiki/Debugging Hope it does help you :)
I tried but I got the same error ; nothing changed
UPDATE : This did work after I made a change in my mason_path. Awesome . So I am closing this ; and recommend setting described in It is suggested here : https://github.com/simrat39/rust-tools.nvim/wiki/Debugging
I used the recommended setting and updated the path as required (OS: Linux)
local package_path = vim.env.HOME .. "/.vscode/extensions/vadimcn.vscode-lldb-1.6.7/"
local codelldb_path = mason_path .. "bin/codelldb"
local liblldb_path = mason_path .. "packages/codelldb/extension/lldb/lib/liblldb"
local this_os = vim.loop.os_uname().sysname
-- The path in windows is different
if this_os:find("Windows") then
codelldb_path = package_path .. "adapter\\codelldb.exe"
liblldb_path = package_path .. "lldb\\bin\\liblldb.dll"
else
-- The liblldb extension is .so for linux and .dylib for macOS
liblldb_path = liblldb_path .. (this_os == "Linux" and ".so" or ".dylib")
end
also the dap settings
dap = {
-- adapter= codelldb_adapter,
adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_path, liblldb_path),
},
Here are some working shots it even goes into assembly when you go into macros
thank you so much. rust-tool is awesome and thnk you @Quessou
Hi, I have been using rust-tool with lvim (which is a nvim based config) with nvim 0.8. Since switched to nvim 0.9.0 debugging is not working. All other functionality works ; like expand macro, runnables but when I start debuggable with a simple rust code it gives an error as attached Did any one test it with neovim 0.9.0. It seems that issue is nvim-dap. Here is my rust.lua config. the keymapping is in after/ftplugin but the whole setup is below. It is also on github ; https://github.com/salimp2009/deskmach_config/blob/main/lvim/.config/lvim/lua/user/lsp/languages/rust.lua