-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
commit feat(dap): auto-generate source map to allow stepping into std
breaks non lldb debugging
#40
Comments
Hey 👋 Thanks for the detailed report! For now, you may be able to work around it by setting vim.g.rustaceanvim = {
dap = {
auto_generate_source_map = false,
}
} It doesn't prevent a source map table from being added, but it will be empty (which might help if it's caused by an error in the source map). |
🤔 according to vadimcn/codelldb#184, Anyways, I'll disable source map generation for |
I think this may have to do with how the non-default config is merged with the default one. |
Indeed, since (sorry for the messy code) |
I think I have a fix in mind :)
Although... I could potentially default to |
Thanks for the quick fix!
(if we were to switch to |
I'm personally not a fan of the idea of using a Neovim plugin to manage packages, which is why I would recommend either Nix, Ansible, or the distro's package manager. Version 3.4.0 will automatically set up a I do, however, plan on adding some more detailed documentation about DAP configuration: #42. |
Nice, thanks! You're doing a wonderful job keeping this plugin alive! |
Neovim version (nvim -v)
v0.10.0-dev-1386+g6c87d3e0fb
Operating system/version
ArchLinux 6.5.9
Output of
:checkhealth rustaceanvim
rustaceanvim: require("rustaceanvim.health").check() Checking for Lua dependencies ~ - OK mfussenegger/nvim-dap installed. Checking external dependencies ~ - OK rust-analyzer: found rust-analyzer 0.3.1713-standalone - OK Cargo: found cargo 1.73.0 - OK rustc: found rustc 1.73.0 (cc66ad468 2023-10-03) (Arch Linux rust 1:1.73.0-1) - OK lldb: found lldb version 16.0.6 Checking config ~ - OK vim.g.rustaceanvim is set - OK No errors found in config. Checking for conflicting plugins ~ - OK No conflicting plugins detected.
How to reproduce the issue
Set the debug adapter do codelldb, ie
Try to launch a debug session
Expected behaviour
Debugging with codelldb should work just fine.
Actual behaviour
An error will be thrown, since codelldb doesn't support
{ sourceMap = source_map }
(I assume)The minimal config used to reproduce this issue.
Shouldn't go beyond the setting in the "how to reproduce" setting
The text was updated successfully, but these errors were encountered: