Skip to content
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

lldb path apparently broken by versions after around 3.7.1 #96

Closed
bas-ie opened this issue Dec 13, 2023 · 1 comment · Fixed by #97
Closed

lldb path apparently broken by versions after around 3.7.1 #96

bas-ie opened this issue Dec 13, 2023 · 1 comment · Fixed by #97
Labels
bug Something isn't working

Comments

@bas-ie
Copy link
Contributor

bas-ie commented Dec 13, 2023

Neovim version (nvim -v)

 NVIM v0.10.0-dev-1031+gc431d820e

Operating system/version

6.6.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 04 Dec 2023 00:29:19 +0000 x86_64 GNU/Linux

Output of :checkhealth rustaceanvim

rustaceanvim: require("rustaceanvim.health").check()

Checking for Lua dependencies ~
- OK [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) installed.

Checking external dependencies ~
- OK rust-analyzer: found rust-analyzer 1.76.0-nightly (8c2b577 2023-12-01)
- OK Cargo: found cargo 1.76.0-nightly (26333c732 2023-11-28)
- OK rustc: found rustc 1.76.0-nightly (8c2b57721 2023-12-01)
- WARNING       debug adapter: not found.
        Install [lldb](https://lldb.llvm.org/) for extended capabilities.
              A debug adapter (defaults to: LLDB).
        Required for debugging features.
      
Checking config ~
- OK No errors found in config.

Checking for conflicting plugins ~
- OK No conflicting plugins detected.

How to reproduce the issue

See discussion

Expected behaviour

.

Actual behaviour

Took a bit of a break for Bevy Jam 4. When I updated rustaceanvim, it broke... apparently because it can't find lldb. I didn't install lldb via Mason (although I do use Mason for other things) and I see there's been a change related to that so I'll try to make it more flexible. Fix inc 🙂

Compiling a debug build for debugging. This might take some time...                                                                                                                                                  
...asie/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1186: ENOENT: no such file or directory                                                                                                                  
stack traceback:                                                                                                                                                                                                     
^I[C]: in function 'error'                                                                                                                                                                                           
^I...asie/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1186: in function 'spawn_server_executable'                                                                                                            
^I...asie/.local/share/nvim/lazy/nvim-dap/lua/dap/session.lua:1294: in function 'connect'                                                                                                                            
^I/home/basie/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:1017: in function 'attach'                                                                                                                                 
^I/home/basie/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:376: in function 'run_adapter'                                                                                                                             
^I/home/basie/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:408: in function 'maybe_enrich_config_and_run'                                                                                                             
^I/home/basie/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:504: in function </home/basie/.local/share/nvim/lazy/nvim-dap/lua/dap.lua:488>                                                                             
^I[C]: in function 'xpcall'                                                                                                                                                                                          
^I.../basie/.local/share/nvim/lazy/nvim-dap/lua/dap/async.lua:12: in function <.../basie/.local/share/nvim/lazy/nvim-dap/lua/dap/async.lua:11>  

The minimal config used to reproduce this issue.

.
@bas-ie bas-ie added the bug Something isn't working label Dec 13, 2023
@bas-ie
Copy link
Contributor Author

bas-ie commented Dec 13, 2023

It seems to be reporting that mason_registry.has_package('codelldb') == true which is a bit weird.

Oh. 🤦

has_package doesn't mean that the package is installed... it just means that package is supported by Mason's registry. We need to check get_installed_package_names, I think. Will PR today-ish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant