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

(Rust-Analyzer) Issue with rust macro utoipauto. Panic on simple structure #46

Open
CR7273868 opened this issue Oct 31, 2024 · 7 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@CR7273868
Copy link

#[utoipauto]
#[derive(utoipa::OpenApi)]
#[openapi()] // try to emulate () to get it to work
pub struct ApiDoc;

Error message I seem to be getting is: proc-macro panicked: unsupported proc macro punctuation character '['rust-analyzermacro-error

Although, there are no visible syntax errors (there are none to be fair). Any clue what the issue is here?

My cargo dependecies:
axum = { version = "0.7.5" }
axum_thiserror = "0.1.0"
axum-extra = { version = "0.9.4", features = ["typed-header"] }
axum-macros = "0.4.2"
utoipa = "^5"
utoipa-swagger-ui = { version = "8", features = ["axum", "debug-embed"] }
utoipauto = "0.2.0"

@DenuxPlays
Copy link
Collaborator

DenuxPlays commented Oct 31, 2024

Can you show the output what you get when you do cargo build?

@DenuxPlays
Copy link
Collaborator

No further information was given

@DenuxPlays DenuxPlays closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
@NewtTheWolf
Copy link

Heyy i have the same error

Cargo Build gives no Error
Cargo Check gives no Error
Cargo Clippy gives no Error

is jst an IDE (in my case VSCode error)

grafik

@DenuxPlays DenuxPlays reopened this Nov 15, 2024
@DenuxPlays
Copy link
Collaborator

Maybe a rust-analyzer error.
Not sure if we can do anything about it but I will take a look

@DenuxPlays
Copy link
Collaborator

Maybe related to: #36

@NewtTheWolf
Copy link

ye, with disabling diagnostics as said in #36 (comment) i dont have an error anymore

@DenuxPlays DenuxPlays added the bug Something isn't working label Nov 20, 2024
@DenuxPlays DenuxPlays changed the title Issue with rust macro utoipauto. Panic on simple structure (Rust-Analyzer) Issue with rust macro utoipauto. Panic on simple structure Nov 20, 2024
@DenuxPlays
Copy link
Collaborator

Does anybody know how to debug rust-analyzer issues?

I do not understand the punctuation error because we don't parse anything with [.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants