-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
std::fs::write
inside of proc-macro breaks intellisense
#17234
Comments
This works fine for me with and without the fs access |
It's a bad idea in general, though. |
@Veykril updated repro, for some reason it only happens when file is created inside of some directory |
will check later, but is the macro perhaps panicking on your system for some reason? (that is is it hitting the unwrap) Cause then this is expected |
no, its not panicking |
are you on linux? because i'm on windows, i updated repro again xd, old one stopped reproducing for me 5-18-2024.19-42-28.mp4 |
I am on windows as well, can you enable the setting |
The latter one comes from rustc that we just display inline as part of running cargo check on save |
ah, so proc-macro runs two times in workspace workdir, and in crate workdir, thats why file was creating |
rust-analyzer version: 0.3.1958-standalone (5bf2f85 2024-05-09)
rustc version: 1.77.2
editor or extension: VSCode
code snippet to reproduce (UPDATED, again):
demo
bugged:not bugged:
The text was updated successfully, but these errors were encountered: