Skip to content

Rust debugger not working on Windows #167

@Xoffio

Description

@Xoffio

Hi,

I enabled the rust community package user/plugins/community.lua:

return {
  "AstroNvim/astrocommunity",
  { import = "astrocommunity.pack.rust" },
}

added user/plugins/nvim_dap.lua:

return {
  {
    "mfussenegger/nvim-dap", -- for debbugging
    enabled = true,
  }
}

but when I try to run RustDebuggables I get the next error "ENOENT: no such file or directory"
rustdebuggable_error

Something that I noticed is that the rust community package downloads the codelldb in:

codelldb_path = "/extension/adapter/codelldb.exe"
liblldb_paht = "/extension/lldb/lib/liblldb.lib"

Instead of:

codelldb_path = "/codelldb"
liblldb_paht = "/extension/lldb/lib/liblldb"

So I manually edited the rust.lua file to match the right path in windows. Now nvim is able to run codelldb but then I get this error ECCONNREFUSED:
dap_error_01

Is there anything I can do to make this work?
If so then I can contribute updating the rust pack to check if the system is running windows and if so to point to the right directory.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions