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

Code Completion Support with Pre Generated Bindings #270

Closed
EdSwordsmith opened this issue Dec 31, 2019 · 2 comments
Closed

Code Completion Support with Pre Generated Bindings #270

EdSwordsmith opened this issue Dec 31, 2019 · 2 comments

Comments

@EdSwordsmith
Copy link

The way these bindings work, does not give code completion support to the bindings that are generated in the compile time, so for supporting it on at least vscode which I can confirm it works if the bindings are pre generated and put inside lib.rs of gdnative-bindings.

https://github.com/EdSwordsmith/godot-rust
I have done that in this fork I have made, I built the bindings then copied the contents of the generated bindings_types.rs, bindings_traits.rs and bindings_methods.rs.

The person who had the idea of copying the contents of the bindings there was @Waridley, I would like to thank him for helping me get code completion working.

@Waridley
Copy link
Contributor

Here's how I got it working myself by putting the bindings in /gdnative-bindings/src instead of OUT_DIR
Waridley@fcce3df

@ghost ghost added the status: duplicate label Dec 31, 2019
@ghost
Copy link

ghost commented Dec 31, 2019

Duplicate of #140. Please continue discussion in the existing issue!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants