New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support path for lldb-vscode executable from PATH variable #4492
Comments
This issue is stale because it has been open for 50 days with no activity. |
Well, I'm still affected by the issue. No one addressed it yet and I'm still looking for workarounds. |
Can you post your DAP config? You may need to provide the path of the debugger to your adapter since it's installed externally (not through Mason). |
@juicy-g I'm just using the default lunarvim config. I haven't seen documentation how to change lunarvim's config for DAP. |
Lunarvim doesn't configure the debug adapter for you. I have never used C++, but this is what I would try in my lvim.builtin.dap.on_config_done = function(dap)
dap.adapters.lldb = {
type = 'executable',
command = 'lldb-vscode', -- absolute path to lldb-vscode here
name = 'lldb'
}
dap.configurations.cpp = {
{
name = 'Launch',
type = 'lldb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
args = {},
},
}
end See this page for more information on how to configure DAP and the adapter: https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#ccrust-via-lldb-vscode |
same issue. I am using nixos and I remember my setup to have been working in the past (still not counting out I messed up something unnoticed along the way). My config looks more or less exactly the same ;) guess we found it in the same spot |
I found that When I install LLVM using linuxbrew, the I would change this part of the config above to suit however you are installing LLVM. For example: dap.adapters.lldb = {
type = 'executable',
command = '/home/linuxbrew/.linuxbrew/bin/lldb-dap',
name = 'lldb'
} It seems to work for me. |
Problem description
When I try to debug my C++ project (using
<leader>ds
), I get this error:I don't have an executable
/usr/bin/lldb-vscode
, but I do havelldb-vscode
in my path:LunarVim version
master-e85637c2
Neovim version (>= 0.9.1)
NVIM v0.9.4
Terminal name
iTerm2
Operating system/version
macOS 14.2 (23C64)
Steps to reproduce
/usr/bin
<leader>ds
/usr/bin/lldb-vscode
instead of thelldb-vscode
inPATH
Screenshots
No response
The text was updated successfully, but these errors were encountered: