-
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
rust-analyzer and generated code #12167
Comments
There is no difference between FFI generated code and other generated code. If the generated code is part of the source or created by a build script, rust-analyzer should support it just fine. |
I can give an example of a project that I am looking at https://github.com/temporalio/sdk-core.git. looking at bridge-ffi/src/lib.rs file and trying to find definition of I am using the latest version of rust-analyzer v0.2.1040 and vscode 1.67.0 VS code options set for rust-analyzer
|
Can you go to https://github.com/temporalio/sdk-core/blob/79bc52c03917e6ad03d9d3692da2f65f8b9c9ca0/sdk-core-protos/src/lib.rs#L26 and see if it shows any errors? I believe this macro creates |
Ah you are right.. |
You need to enable |
Thanks, That resolved the Go to Definition issue.. however it takes me to where macro is used to include the generated code.. |
That's #3767. |
Thanks.. |
You need |
That is what have been running with as per your suggestion.. however the "Go to definition" goes to the macro not the generated code.
Current config
|
As @flodiebold already mentioned that is #3767 |
I am sorry, I may be missing something.. but, I am getting two settings from #3767 |
Those are the old names of |
Ah, I see. do you foresee adding support for it? |
It will probably be added at some point, but I don't know how hard that would be. |
Let's close this since that problem is already tracked elsewhere. |
Hi,
Does the rust-analyzer support indexing the FFI generated code to C/C++ world? if it dose not, would it be possible to have it support it?
Thanks
The text was updated successfully, but these errors were encountered: