Godot Version
Godot 4.1.3.stable.official
Question
Hello,
I’m suddenly having a problem with godot autocomplete, where it won’t autocoplete any new function or variables. This only gets fixed after restarting or reloading the project. Which is unbearable.
I haven’t had this issue until now.
What is going on? How to fix this?
Thanks
Godot 4.1.3.stable.official
3 Likes
I would recommend updating to latest version of godot.
There are special cases where it might not auto complete.
- Type isnt known
- Error in current script
- Error in instance script
- Using self (for some reason never works)
Hey, the scripts are fine, everything works but only after restarting / rebuilding the project manually…
I tried updating to newest version, but unfortunatelly it didnt help 
Hey there,
I’ve been having this issue as well, I’m on the current latest stable (at time of writing this), so v4.2.2
What happens is that I modify a class I made, adds a function or a variable for example, save the script and then try to access it in another class, but the completion doesn’t recognize it although my variable is typed to the proper type, and then an error is thrown.
If I reload the project, then everything is fine, so the method obviously is recognized then and works, but it just that it seems the completion or code evaluation doesn’t update and stays stuck in the previous state of the object?
This only happens if the Unsafe Method Access parameters in the Debug>GDScript settings of the project is set to Error, so there is obviously a workaround, but if you’re like me and try to follow strict typing rules, this is very annoying.
2 Likes
It wasn’t working for me either, but then I manually activated it by hitting ctrl+space which gave me the autocomplete options. It then seems to have kicked it back in action, so it’s working again now!