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

Autocomplete and error reporting does not update for new code changes. Requires restart. #80674

Closed
vibrunazo opened this issue Aug 16, 2023 · 5 comments

Comments

@vibrunazo
Copy link

vibrunazo commented Aug 16, 2023

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

  1. Open the reproduction project from https://github.com/vibrunazo/godot-vector in Godot 4.1.1
  2. Create a new method at the end of grid.gd called my_new_test_method()
  3. Open car.gd and try to call the new method with grid.my_new_test_method() to the end of the _ready() method. Autocomplete will not show the new method.
  4. Close Godot and reopen it. Your new method will now show up fine in autocomplete.

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

@dalexeev
Copy link
Member

@HauntedBees
Copy link

HauntedBees commented Oct 14, 2023

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].

@Nickelvad
Copy link

Happens on v4.2.beta5 as well, using built-in editor and external one.

@Jules5
Copy link

Jules5 commented Mar 4, 2024

Still happening on v4.2.1, this is a bit annoying.

@Calinou
Copy link
Member

Calinou commented Mar 5, 2024

Thanks for the report! Consolidating in #78074, as this is due to the same cause (cyclic reference).

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

6 participants