Open wsw0108 opened 2 years ago
I tested with that project on my side and it works fine:
Here is the vscode equivalent of that error:
Are you able to test if that works fine with vscode?
You may also change the following line code:
(_ (user-error "Multiple compilation artifacts are not supported" ) )
to
(_ (user-error "Multiple compilation artifacts are not supported %s" artifact-spec) )
so we can see what are the generated artifacts(TBO I have only ported the vscode code, I am not familiar with what are the semantics here).
user-error: Multiple compilation artifacts are not supported (e:\GitHub\lsp-rust-issue\target\debug\lsp-rust-issue.exe e:\GitHub\lsp-rust-issue\target\debug\deps\int-5f123ff5199c1f24.exe)
should be has only int-xxx.exe
.
Are you able to test if that works fine with vscode?
Yes, works fine with vscode(rust-analyzer + codelldb).
Thank you for the bug report
lsp-mode
related packages.where
lsp-start-plain.el
can be downloaded here.Bug description
lsp-rust report 'user-error: Multiple compilation artifacts are not supported' when debug from lsp-lens for lsp-rust.
Steps to reproduce
Expected behavior
Can launch cpptools for single test from lsp-lens-mode.
Which Language Server did you use?
rust-analyzer (lsp-rust.el)
OS
Windows
Error callstack
Anything else?
Below link shows how rust-analyzer for vscode do: https://github.com/rust-analyzer/rust-analyzer/blob/4c20d6879f7b23c532dee908031caab178bb79fa/editors/code/src/toolchain.ts#L24-L78