-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Generated bindings not showing up as intellisense suggestions #5992
Comments
Try enabling |
Thank you for your reply. I tried the following combinations (because the first didn't work) in my code workspace settings: "rust.rust-analyzer.cargo.loadOutDirsFromCheck": true
"rust-analyzer.cargo.loadOutDirsFromCheck": true
"rust-analyzer.cargo": {
"loadOutDirsFromCheck": true
}
"rust.rust-analyzer.cargo": {
"loadOutDirsFromCheck": true
} I still didn't couldn't get the intellisense to pop. |
Hm, this works for me as intended: with with Couple of hypothesis why this migth be the case:
As I can't repro this locally, closing -- seems to be an env specific issue |
Why is |
There's a discussion in #6448. |
I am using the library
godot-rust
and while everything runs fine, there is no intellisense happening for the (generated) types provided by the package.This can reproduced by cloning my example repository here:
https://github.com/Sibz/godotrust-bugdemo
This may need LLVM installed in order to compile.
On line 15 I have picked an example method that should hint, but does not.
The description for this struct is here: https://docs.rs/gdnative/0.9.0-preview.0/gdnative/api/rigid_body/struct.RigidBody.html
I have contacted the developer and he is aware of the issue but believes the issue probably lies with rust-analyser - it should be able to pick up the bindings generated but it doesn't.
The code compiles and runs fine.
The text was updated successfully, but these errors were encountered: