Skip to content

proc macro returned error: Cannot perform expansion for Deserialize: error Unknown #6686

@tomjakubowski

Description

@tomjakubowski

It seems there's been a recent regression in derive proc macros on the nightly channel. I'm on v0.3.367-nightly
and see red squigglies on these entire structs (along with any comments), and a corresponding proc macro error.

Screen Shot 2020-11-30 at 6 04 37 PM

Sometimes the error message instead says "Empty result", or "Server closed".

Screen Shot 2020-11-30 at 6 11 46 PM

Unsure when this might have been introduced, but I have been on the nightly channel for some time, and wasn't seeing this last week Wednesday in a project that uses proc macros, but do see it today.

I have "rust-analyzer.procMacro.enable and rust-analyzer.cargo.loadOutDirsFromCheck both set to true.

I've attached the testcase I used for the screenshots: testcase.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions