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

No rust-analyzer suggestion in bindings #829

Closed
gipsyh opened this issue Jul 17, 2022 · 5 comments
Closed

No rust-analyzer suggestion in bindings #829

gipsyh opened this issue Jul 17, 2022 · 5 comments
Labels
• kbuild Related to building the kernel, `make`, `Kbuild`, `Kconfig` options...

Comments

@gipsyh
Copy link

gipsyh commented Jul 17, 2022

No rust-analyzer suggestion in bindings
截屏2022-07-17 11 08 01

截屏2022-07-17 11 08 10

@gipsyh gipsyh added the • kbuild Related to building the kernel, `make`, `Kbuild`, `Kconfig` options... label Jul 17, 2022
@bjorn3
Copy link
Member

bjorn3 commented Jul 17, 2022

Did you run make rust-analyzer, add rust-project.json to the rust-analyzer.linkedProject config and build linux or at least the rust directory to generate the bindings?

@gipsyh
Copy link
Author

gipsyh commented Jul 17, 2022

Did you run make rust-analyzer, add rust-project.json to the rust-analyzer.linkedProject config and build linux or at least the rust directory to generate the bindings?

yes
there is binding_generated.rs in objtree/rust/bindings/

rust-analyzer works fine except the bindings suggestions

@bjorn3
Copy link
Member

bjorn3 commented Jul 17, 2022

Did it work before #822?

@tamird
Copy link

tamird commented Oct 28, 2024

I believe this is a dupe of #1050. In my recent experience rust-analyzer works with in-tree builds, but not out-of-tree builds. #1050 has more on that.

EDIT: wrong issue.

@ojeda
Copy link
Member

ojeda commented Oct 28, 2024

Sounds fine, thanks!

@gipsyh please feel free to reopen it is not the case (technically the other would be the duplicate -- I will add a note there to avoid forgetting Yuheng Su reported it)

@ojeda ojeda closed this as completed Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
• kbuild Related to building the kernel, `make`, `Kbuild`, `Kconfig` options...
Development

No branches or pull requests

4 participants