Skip to content
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

No actions for proc macro traits #16214

Closed
marcfir opened this issue Dec 29, 2023 · 2 comments
Closed

No actions for proc macro traits #16214

marcfir opened this issue Dec 29, 2023 · 2 comments
Labels
A-ide general IDE features A-proc-macro proc macro C-bug Category: bug

Comments

@marcfir
Copy link

marcfir commented Dec 29, 2023

Traits generated with a proc macro do not support actions like Implement missing members

rust-analyzer version: 0.3.1782
rustc version: rustc 1.77.0-nightly
relevant settings:

  • rust-analyzer.procMacro.enable: true
@marcfir marcfir added the C-bug Category: bug label Dec 29, 2023
@Veykril Veykril added A-proc-macro proc macro A-ide general IDE features labels Jan 1, 2024
@marcfir
Copy link
Author

marcfir commented Jan 6, 2024

I found out that it works.
The problem is that when you change code in a macro, the rust-analyzer macro server is not automatically rebuilt. You have to start Rebuild Proc Macros manually.

@Veykril
Copy link
Member

Veykril commented Jan 6, 2024

With #16247, r-a should autorebuilt them on next file save. I'll close this then

@Veykril Veykril closed this as completed Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ide general IDE features A-proc-macro proc macro C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants