rust-lang / rust-lang/rust-analyzer
"No Compilation Artifacts" after compiling
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
rust-analyzer version: rust-analyzer version: 0.4.2148-standalone (418c1365e 2024-10-15) [c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\server\rust-analyzer.exe]
rustc version: rustc 1.80.0 (051478957 2024-07-21)
editor or extension: Windows, VSCode, Rust-Analyzer, Arduino Community Edition, CodeLLDB
relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)
repository link (if public, optional): https://github.com/hexadecimal233/esp32c3-singing-stepper
When trying to execute rust-analyzer: Debug every time after modifying the code in the repo above, the artifact shows up in the folder but VSCode gives me the following error:
2024-10-17 00:08:11.118 [error] Error: No compilation artifacts
at n.executableFromArgs (c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:42:1530)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Y_ (c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:42:7964)
at Hv (c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:42:6267)
at Io (c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:42:4867)
at c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:90:5063
at T0.h (file:///c:/Users/User/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32837)
at T0.h (file:///c:/Users/User/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32837) rust-analyzer.debugSingle {"value":"rust-lang.rust-analyzer","_lower":"rust-lang.rust-analyzer"}
2024-10-17 00:08:11.118 [error] Error: No compilation artifacts
at n.executableFromArgs (c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:42:1530)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Y_ (c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:42:7964)
at Hv (c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:42:6267)
at Io (c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:42:4867)
at c:\Users\User\.vscode\extensions\rust-lang.rust-analyzer-0.4.2148-win32-x64\out\main.js:90:5063
at T0.h (file:///c:/Users/User/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32837)
at T0.h (file:///c:/Users/User/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32837) __vsc6b3040b2-be47-4f48-a370-72694b3698fa undefined
2024-10-17 00:08:29.340 [info] ExtensionService#_doActivateExtension emilast.LogFileHighlighter, startup: false, activationEvent: 'onLanguage:log'
and fails to execute the artifact, while rerunning fixes the errors.
PS: This only happens in this repo somehow, havent got a similar error in my other repos
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the linked esp32c3-singing-stepper repository by running rust-analyzer: Debug after changing code in the Windows VSCode setup. Trace how the debug command locates compilation artifacts and compare the first run with the successful rerun. Done means the artifact is found and executed on the first attempt without “No compilation artifacts”.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100