-
Notifications
You must be signed in to change notification settings - Fork 1.7k
failed to write request: Broken pipe (os error 32)rust-analyzermacro-error #10766
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
Just to confirm. Are those proc macros from the borsh crate? |
yep, it used borsh |
This is breakage probably caused by the merging of this PR: rust-lang/rust#87264 |
TvT |
the proc macro bridge will need to be updated. https://github.com./rust-analyzer/rust-analyzer/tree/master/crates/proc_macro_srv/src/abis needs to get a new directory for the 1.58 abi. @alexjg would you mind doing this? |
I'll sort it out tomorrow! |
idk if tomorrow means fix will ship this Monday or next, but to whomst'd've it may've concerned, the temporary fix is:
to undo:
(obviously not hurrying anyone anywhere, btw) |
great!!! |
Having the same problem in VS Code with |
@Sword-Smith we were downgrading the nightly, and that has since been resolved in #10769 and released yesterday. Please make sure:
and then post the particular error you are getting. |
I went through all your steps but had to add another one, even though VS Code showed the version you described in step 2:
Edit: I took the liberty to post this on Stack Exchange as there is there are too few Rust questions on Stack Exchange: https://stackoverflow.com/questions/70079983/rust-analyzer-failed-to-write-request-broken-pipe-os-error-32/70079984 |
Just encountered the same problem as @Sword-Smith, I believed it happened just after I updated to the latest version of VSCode. I ran |
Unfortunately this error message is fairly general and will be caused by many different scenarios. I'm fairly sure the code posted in this issue no longer causes the problem. If you're experiencing a problem I think the best way to proceed would be to open a new issue with your rust-analyzer and rustc versions and a sample of code which causes the problem, it's much easier to diagnose the problem that way. |
Same issue with rustup 1.24.3 (ce5817a94 2021-05-31)
info: The currently active `rustc` version is `rustc 1.54.0 (a178d0322 2021-07-26)` Updating Rust version is not a variant in my case. I installed previous working |
I also encountered |
I also encountered this error. My system was VSCode + WSL. I made a mistake of using WSL on Windows FileSystem, but then I came to know about the Remote-WSL extension. I switched VSCode to Ubuntu 20.04 filesystem(WSL) and then error was no more. Weird things happen if VSCode is used on Windows Filesystem. I referred this link for getting the Extension idea. Follow this if you are using WSL + VSCode: https://harsimranmaan.medium.com/install-and-setup-rust-development-environment-on-wsl2-dccb4bf63700 Edit 2/12/2021: I think using / not using Windows Filesystem doesn't make a difference and using Remote WSL Extension may fix nothing
Also I am using a macro which uses proc macro (borsh) under the hood |
For me another key step was to ensure the Check using |
I tried all the other steps and reverting to an older version of the plugin was the only thing that worked for me. I don't want to stop using RA, so I'll stay on this version until this issue gets resolved. |
Hi. I'm still seeing this error in v0.2.853 when using the crate https://crates.io/crates/builder-pattern with just the example code. |
it show some error
The text was updated successfully, but these errors were encountered: