syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.58k stars 4.9k forks source link

Problem running Rust Debug with rust and lsp layer #16289

Open varunarang opened 4 months ago

varunarang commented 4 months ago

I don't believe this is a bug, but more of a configuration issue.

I am trying to work out Rust debug configuration using the rust layer. Here is the spacemacs layers details, with no other changes to config file:

 dotspacemacs-configuration-layers
   '(
     ;; ----------------------------------------------------------------
     ;; Example of useful layers you may want to use right away.
     ;; Uncomment some layer names and press `SPC f e R' (Vim style) or
     ;; `M-m f e R' (Emacs style) to install them.
     ;; ----------------------------------------------------------------
     auto-completion
     better-defaults
     emacs-lisp
     git
     helm
     lsp
     markdown
     rust
     go
     dap
     multiple-cursors
     org
     neotree
     (shell :variables
            shell-default-height 30
            shell-protect-eshell-prompt nil
            shell-enable-smart-eshell t
            shell-default-position 'bottom)
     ;; spell-checking
     ;; syntax-checking
     ;; version-control
     treemacs)

When I run the debug using lsp-rust-analyzer-debug, I get an error:

$HOME/.emacs.d/.extension/vscode/cpptools/extension/debugAdapters/bin/OpenDebugAD7: No such file or directory

Please note that running a the program works just fine using rustic-cargo-run or usinglsp-rust-analyzer-run

Can someone help me fix the config please? Thank you in advance,