Skip to content

Regression: "proc macro not found" #12598

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

Closed
maxnoel opened this issue Jun 20, 2022 · 2 comments
Closed

Regression: "proc macro not found" #12598

maxnoel opened this issue Jun 20, 2022 · 2 comments

Comments

@maxnoel
Copy link

maxnoel commented Jun 20, 2022

Hi,

As of the most recent version of rust-analyzer, I'm running into problems where proc macro use is always highlighted as an error with an error message of this form:

proc macro `main` not expanded: proc macro not foundrust-analyzer[unresolved-proc-macro](https://rust-analyzer.github.io/manual.html#unresolved-proc-macro)

A "simple" Tokio hello-world program can trigger the bug:

image

(this is the full source code of the example program, whose sole dependency is tokio = { version = "1.19.2", features = ["full"] }. cargo run compiles and executes it as expected)

rust-analyzer version: rust-analyzer version: 0.0.0 (427061d 2022-06-19)

rustc version: rustc 1.61.0 (fe5b13d68 2022-05-18)

I'm running stable-x86_64-pc-windows-msvc (default) on Windows 10, with Visual Studio Code as my IDE and the normal rust-analyzer extension. Nothing exotic. Let me know if there's any info I can give you to help.

@bjorn3
Copy link
Member

bjorn3 commented Jun 20, 2022

Duplicate of #12450 I think.

@flodiebold
Copy link
Member

Indeed.

@flodiebold flodiebold closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants