-
Notifications
You must be signed in to change notification settings - Fork 1.7k
#![no_std]
can't find crate for test
#3297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I observed the same issue in Eclipse while using the Corrosion plugin with rust-analyzer. For embedded code, with the #![no-std] attribute, Eclipse would always show the "can't find crate for 'test'" error. I solved the problem by creating a json file with the following content: { Then in Eclipse, go to Window-> Preferences --> Rust and add the file path to the "LS configuration" field. This assumes that the Language server is properly configured. |
Fix for VSCode: {
"rust-analyzer.checkOnSave.allTargets": false,
} |
@pooladkhay this also fixed my issue. I had a |
With the {
"rust-analyzer.check.allTargets": false,
} |
I'm posting this for posterity's sake, as someone else might run into the issue and find it useful.
I kept receiving the following error:
It seems it's related to the following issues:
test
rls#1524As
coc.nvim
offers per project based settings, I added the following configuration and relevanttarget
to my project, which will make the error go away:.vim/coc-settings.json
System information
The text was updated successfully, but these errors were encountered: