syl20bnr/spacemacs

Problem running Rust Debug with rust and lsp layer

Open

#16.289 aberto em 17 de fev. de 2024

Ver no GitHub
 (3 comments) (1 reaction) (1 assignee)Emacs Lisp (4.381 forks)batch import
Help wantedstale

Métricas do repositório

Stars
 (17.754 stars)
Métricas de merge de PR
 (Mesclagem média 4d 14h) (12 fundiu PRs em 30d)

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,

Guia do colaborador