-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cache strategy hits assertion in Rust-Analyzer #22
Comments
To clarify, the assumption might be valid, or is at least reasonable given that it works fine in A quick workaround on your side might be to store that value in a thread-local variable. We currently expand each macro call in a new thread (because the bridge now requires that), so we wouldn't get the benefits of the cache, but at least it would work. |
This should be easy to fix / work around in proc-macro-crate so I'll work on a PR. I'm also very interested in what others think about this assumption though. I guess this is the wrong place for that discussion, maybe rust-lang/rust-analyzer#12969 is right. |
Turning the Line 118 in 66213a5
CARGO_MANIFEST_DIR to crate name. This will keep using the old name if the crate name gets changed in Cargo.toml though.
|
This is what I'm doing, and I'm also adding a timestamp based on fs metadata so changing the |
After my weekly dependency updates this morning, I'm having async-graphql macros failing in my crates with this assertion:
It looks like #20 is making assumptions it should not be making. Rust-Analyzer issue: rust-lang/rust-analyzer#12969.
cc @jplatte
The text was updated successfully, but these errors were encountered: