Skip to content

app macro doesn't work very well with rust-analyzer #582

Closed
@ghost

Description

i've been writing a decently large embedded system to control a dsp and display a vumeter, however i was not particularly happy with how the rust language server integrates with vscode, so i switched to rust analyzer.

the change has been good, and things in general work a lot better, however there's one annoying problem: if i start typing anything at all inside of the app macro the entire screen turns red as everything following that attribute macro is considered a compiler error.

the above mentioned problem

i've not written a proc macro myself, but here the rust analyzer devs talk about how this problem can be fixed by the macro developer in at least some cases:

rust-lang/rust-analyzer#11014

right now i'm considering externing everything out of the macro just so i can avoid this little problem. which both seems fun, but also extremely pointless.

i thought it worth bringing up in case you were not aware of this and it can be fixed. it seems as tho fixing this in rust analyzer may not be possible in the short term as they have a lot of considerations to make.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions