-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Autocompletion doesn't work for generated files #40
Comments
This problem is also present on CLion, and I agree we should do something about it. Good that we have this issue now 🙂 The location where code is generated is indeed rather hacky at the moment. The problem is that not one, but two crates need code generation:
I could let both directly depend on An alternative would be to split generated classes into their own crate (like it's done with Maybe in the short term I could undo the change I made to generate everything inside the |
In the absence of documentation, the best way to figure things out is IDE autocompletion. Sadly, for generated files it doesn't work (at least in vscode on windows).
I've opened the issue here, please check it out:
rust-lang/rust-analyzer#13711
Long story short, generated files are located in a different package from where they are included (
godot-codegen
vsgodot-core
). And that makes them invisible as far as autocompletion is concerned.Not sure if it's intentional or not on the part of
rust-analyzer
, so opening an issue on both places.The text was updated successfully, but these errors were encountered: