-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Autocomplete and error reporting does not update for new code changes. Requires restart. #80674
Comments
I run into this issue regularly, too, but I've found that you can save a few seconds by just selecting Reload Current Project instead of fully closing and reopening Godot to resolve this. Also, this is still reproducible in v4.2.beta1.official [b137180]. |
Happens on v4.2.beta5 as well, using built-in editor and external one. |
Still happening on v4.2.1, this is a bit annoying. |
Thanks for the report! Consolidating in #78074, as this is due to the same cause (cyclic reference). |
Godot version
v4.1.1.stable.official [bd6af8e]
System information
Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Compatibility) - GeForce MX110 () - Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 Threads)
Issue description
On some projects, when first opening Godot, both gdscript autocomplete and the text editor error reporting will work ok. But they will not update on one class if you add new methods or change the code to another class. After adding a new method to a second class, this new method will not show up on autocomplete for the first class. Restarting Godot fixes the issue and the new method will now show up again on autocomplete. But then any new methods that requires referencing a different class won't show up on autocomplete again and another Godot restart will be necessary. Happens on any code update.
The issue is easily reproducible 100% of the time in my project.
Steps to reproduce
grid.gd
calledmy_new_test_method()
car.gd
and try to call the new method withgrid.my_new_test_method()
to the end of the_ready()
method. Autocomplete will not show the new method.Minimal reproduction project
https://github.com/vibrunazo/godot-vector
I've tested and reproduced it in this specific commit: https://github.com/vibrunazo/godot-vector/tree/061202c04b46eaca9dcaa399dfa56ecc7d02adc2
The text was updated successfully, but these errors were encountered: