You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Weirdly enough initially it worked correctly on a few tries (just changing the literal in the annotation prints it again and again), but then got into the error state and never recovered. Re-installing the plugin or switching to the pre-release version didn't help.
The text was updated successfully, but these errors were encountered:
@Veykril I'm interested in fixing this issue. I noticed in both the current proc macro server backend and the legacy TokenId backend there's the comment // FIXME: keep track of LitKind and Suffix. Is this where I should start? What kind of tracking do we need to do?
rust-analyzer version: v0.3.1791 (stable), v0.4.1793 (Pre-release)
rustc version: rustc 1.74.1 (a28077b28 2023-12-04)
relevant settings: n/a
Imagine a macro in the format of:
Where the macro implementation is printing the attribute tokens for simplicity:
Expected output:
This is from
cargo expand
, it generates the expected output and the project builds without errors.Actual output:
Printed in the Output of VSCode (Rust Analyzer Language Server)
The same happens with other literals as well.
Note:
Weirdly enough initially it worked correctly on a few tries (just changing the literal in the annotation prints it again and again), but then got into the error state and never recovered. Re-installing the plugin or switching to the pre-release version didn't help.
The text was updated successfully, but these errors were encountered: