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

Failed to expand macro: a procedural macro error occurred unsupported proc macro punctuation character '[' #18849

Open
DenuxPlays opened this issue Jan 6, 2025 · 2 comments
Labels
C-bug Category: bug

Comments

@DenuxPlays
Copy link

rust-analyzer version: 2024-12-30

rustc version: rustc 1.82.0 (f6e511eec 2024-10-15)

editor or extension: VSCode 1.96

relevant settings: All to standard

repository link (if public, optional): https://github.com/ProbablyClem/utoipauto

code snippet to reproduce:

#[utoipauto]
#[derive(Debug, OpenApi)]
#[openapi(info(title = "Generic Test Api"))]
pub(crate) struct ApiDoc;

Rust analyzer thinks that some punctuation error was made but there isn't one.
cargo build finishes without normally.
The issue is the utoipauto macro but I do not know why this is happening.

Here is the issue for the utoipauto repository:
ProbablyClem/utoipauto#46

@DenuxPlays DenuxPlays added the C-bug Category: bug label Jan 6, 2025
@Veykril
Copy link
Member

Veykril commented Jan 6, 2025

I have a hunch this is #18840, just in a different form

@DenuxPlays
Copy link
Author

You sure?

This issue references a 4 day old commit but the bug that we experience exists as long as I use utoipauto. (So at least a year or so).

I am not the one with the knowledge I just wanted to point that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants