Skip to content

Don't load lldb_commands when using codelldb #139

Closed
@SlayerOfTheBad

Description

@SlayerOfTheBad

Neovim version (nvim -v)

v0.10.0-dev-2042+g28c183b38c

Operating system/version

Arch Kernel: 6.6.10-lqx1-1-lqx

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 0.3.1791-standalone
- OK Cargo: found cargo 1.75.0 (1d8b05cdd 2023-11-20)
- OK rustc: found rustc 1.75.0 (82e1608df 2023-12-21)
- OK debug adapter: found codelldb 

Checking config ~
- OK No errors found in config.

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

How to reproduce the issue

git clone [email protected]:SlayerOfTheBad/rustaceanvim_codelldb_minimal.git /tmp/minimal
cd /tmp/minimal
NVIM_DATA_MINIMAL=/tmp/minimal NVIM_APP_NAME="nvim-minimal" nvim -u minimal.lua
:edit foo/src/main.rs
2j
:DapToggleBreakpoint
:lua require("dapui").toggle()
:RustLsp debuggables
1

Expected behaviour

In the dap-repl window, nothing much happens, except for the startup output

Executing script: initCommands
Launching: /tmp/minimal/foo/target/debug/foo
Launched process 27248

In the Dap Scopes window, we can expand some to show the value contained within (18: i32)

Actual behaviour

In the dap-repl window, errors are thrown regarding indexing errors on a key that's equivalent to UINT32_MAX, i.e. -1.

In the Dap Scopes window, when we expand some to show the value contained within, it tells us <error: invalid value object>

The minimal config used to reproduce this issue.

See https://github.com/SlayerOfTheBad/rustaceanvim_codelldb_minimal/blob/fafe79042f8f699e8f239e3262ffd256bb5cfa96/mininal.lua

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions