DAP lldb doesn't register... nor some of the plugin functionality #315
Replies: 2 comments 5 replies
-
Hey 👋 If the My guess would be that you've used mason-lspconfig.nvim to install rust-analyzer. That plugin assumes you're using nvim-lspconfig and sets it up for you, resulting in a conflict with this plugin. This plugin supports getting codelldb from mason.nvim automatically, but not rust-analyzer. The reason is that the mason rust-analyzer installation is usually built with a different toolchain than your project, which can lead to inconsistencies and subtle bugs. So I recommend using rustup or nix instead. |
Beta Was this translation helpful? Give feedback.
-
I don't use mason.nvim myself, so I all I know about it is based on what others have reported to me.
Normally, it should be automatic. But only if neovim can find it on the Additionally, make sure there aren't any errors (e.g. from filetype autocommands or other plugins) preventing rustaceanvim from initializing (see the troubleshooting section of the readme). |
Beta Was this translation helpful? Give feedback.
-
I have the
codelldb
package from Mason (which by itself, as a CLI, works just fine - I'm using it as it is for now), but my client doesn't seem to know what to do with it. The "LLDB: Launch" option doesn't getcommand
filled in (i.e. path to executable), and despite the option clearly saying "LLDB" the id is "cppdbg":(as you can infer from paths here - I'm on Windows)
another trace I got by trying different options is... I couldn't figure it out (or rather I didn't want to figure out the inner workings of dap just yet, in case the fix is simple):
...I assume it fails for similar reasons since there are some older posts here with similar symptoms for which manually fixing paths to lib and exec seems to help.
So, I gave it an honest attempt and tried manual pathing - it barely made a dent in my understanding of what's going on, if not worse - broke everything:
This makes the config crash, because the field I'm setting doesn't exist (yet), but if I put it in a function - it's fine. The principal of the thing stays the same. Options remain as they were, errors too...
There's also one other weirdness going on:
In the Commands section of help everything "revolves" around
:RustLsp!
command, but it doesn't seem to be present in my client despite Lsp being clearly attached and showing all the expected goodies like code actions and cmp...I have a separate NVIM_APPNAME that does no
lspconfig
for rust, since I really want to try this plugin out.If you require more context - I will be happy to produce it. Please help.
Beta Was this translation helpful? Give feedback.
All reactions