-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cant recognize tonic generated code #18748
Comments
Possible duplicate of #12088, although that was filed years ago. |
Hmm, the only recent PR touching relevant parts is #18668 but I don't see that doing anything that would cause this |
I am also experiencing the same issue (using slint, but it's the same error, failing to include an existing file). |
I'll have a look at this the coming week (I presume I broke this, but I do not see the correlation wrt to the releases mentioned which confuses me). |
it seems there are some platform specific issues at play here too. The same code with the same rust analyzer version works fine in linux, but has this above issue on macOS |
Code compiles and runs fine. In fact in RustRover even the 'goto definition' works (though rustrover doesnt use RA for this).
But with rust-analyzer in vscode i instead see errors. As can be seen in the screenshot though, the file it wants to load does indeed exist and has valid rust code.
rust-analyzer version: 0.3.2228
rustc version: rustc 1.83.0 (90b35a623 2024-11-26)
editor or extension: VSCode
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)repository link (if public, optional): (eg. rust-analyzer)
code snippet to reproduce:
build.rs
tonic_defs.rs
The text was updated successfully, but these errors were encountered: