-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
IDE support in fn-like proc macro arguments #5265
Comments
Thanks to recent improvements by @jonas-schievink, language features in the example above now work perfectly. Thank you! |
@nitsky Which version? I'm using Rust-Analyzer v0.2.489 (most recent version) and Yew 0.17, followed the intro tutorial in the docs, and it doesn't work. |
Did you enable proc-macro support using {
"rust-analyzer.cargo.loadOutDirsFromCheck": true,
"rust-analyzer.procMacro.enable": true,
} |
@i-schuetz in my experience macro not found errors are resolved by reloading the editor. |
Hmm sadly still not working, I restarted VSCode multiple times and double checked that the settings are in the workspace's settings.json (added them to the user's as well just in case) and the macro still doesn't work
|
To silence those warnings for now, |
@i-schuetz I am not seeing the issue because I am using an in-house |
Was able to fix it by using yew master yewstack/yew#1754 |
With support for fn-like proc macros as expressions becoming stable in rust 1.45 (rust-lang/rust#68717), I am opening this issue to track rust-analyzer support for language features within them.
For example, given the code below that uses a proc macro that implements jsx-like syntax...
... it would be awesome to be able to use "go to definition", "rename", "find references", etc when my cursor is over the last
item
identifier.The text was updated successfully, but these errors were encountered: