Closed michael-dm closed 2 months ago
It's common for rust analyzer to have some issues with macros .
Have you considered restarting the server .
Or reopening your editor. That's should help reindex stuff .
Because if it can actually run but Rust analyzer doesn't parse it successfully , it's probably just an indexing issue . Restarting rust analyzer should solve it .
FWIW, I'm seeing rust-analyzer handle query!
invocations correctly on my end. That doesn't invalidate your problem of course, but unless anybody can spot something wrong with the way we're defining the macro in Butane, this sounds like a rust-analyzer bug rather than a Butane.
I'm encountering an issue where rust-analyzer is unable to correctly parse the
query!
macro from Butane. Here's a minimal example of the problematic code:This results in the following error from rust-analyzer:
Additional debug info:
This code compiles and runs correctly, but rust-analyzer is unable to properly analyze it. Also, this version work with no issue :
Environment:
Any assistance in resolving this issue would be greatly appreciated.