syl20bnr/spacemacs

Problem running Rust Debug with rust and lsp layer

Open

#16,289 opened on 2024年2月17日

GitHub で見る
 (3 comments) (1 reaction) (1 assignee)Emacs Lisp (17,754 stars) (4,381 forks)batch import
Help wantedstale

説明

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,

コントリビューターガイド