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

Ability to disable the new "proc-macro is explicitly disabled" hint specifically #18414

Closed
paul-hansen opened this issue Oct 25, 2024 · 0 comments · Fixed by #18418
Closed

Ability to disable the new "proc-macro is explicitly disabled" hint specifically #18414

paul-hansen opened this issue Oct 25, 2024 · 0 comments · Fixed by #18418
Labels
A-proc-macro proc macro C-feature Category: feature request

Comments

@paul-hansen
Copy link

I just updated to the latest RA version and am now getting these hints:

macro-error: ::leptos::leptos_dom::tracing::instrument: proc-macro is explicitly disabled
macro-error: tracing::instrument: proc-macro is explicitly disabled
macro-error: server: proc-macro is explicitly disabled

Which is because I told it not to expand instrument and server macros. Since they just wrap the code, this allows RA to treat them as no-op and it helps with completion inside them, performance etc.

I'm fine with this hint existing, but I personally don't want it because it I use this in a lot of places and it creates a lot of noise. Unfortunately the only way I've found to disable it is to disable the macro-error diagnostic which seems overly broad and I'm afraid I'll miss other important macro errors.

There should probably be a way to disable that hint specifically. I'm open to other solutions too though, e.g. if there's a way to disable just hints for macro-error.

@paul-hansen paul-hansen added the C-feature Category: feature request label Oct 25, 2024
@lnicola lnicola added A-diagnostics diagnostics / error reporting A-proc-macro proc macro and removed A-diagnostics diagnostics / error reporting labels Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-proc-macro proc macro C-feature Category: feature request
Projects
None yet
2 participants