syl20bnr/spacemacs

Problem running Rust Debug with rust and lsp layer

Open

#16 289 ouverte le 17 févr. 2024

Voir sur GitHub
 (3 commentaires) (1 réaction) (1 assigné)Emacs Lisp (4 381 forks)batch import
Help wantedstale

Métriques du dépôt

Stars
 (17 754 stars)
Métriques de merge PR
 (Merge moyen 4j 14h) (12 PRs mergées en 30 j)

Description

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,

Guide contributeur