-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
GDScript editor autocompletion is displaying the wrong type for a defined variable #92566
Comments
#85224 should have fixed that but I made an oversight. We use the analyzer logic to test whether the assigned type is compatible. The analyzer allows assigning variant types to everything, and Edit: Just to clarify this any icon is used for all local variables at the moment. The type of the variable has no influence on it. I consider the scope of this issue to be the not working autocompletion. |
Not sure if related, but I realise that type hints are not working (also giving me "any", which I see is not an issue here). But for example. var mesh: MeshInstance3D = get_child(0)
mesh.get_surface_override_material(0) # this gives no autocompletion I find that I am needing to use the |
As long as you are still on 4.2 no need to worry, #85224 should've fixed that. If you are using 4.3 please open an issue with an MRP about it. |
Tested versions
System information
Apple M1 Pro - macOS 14.5 (23F79)
Issue description
I already defined my
npc
variable as aPackedScene
in the line 6, but for some reason, the editor IntelliSense in the suggestions shows its type asany
, and I couldn't see the actual methods related to thePackedScene
.npc.instantiate()
method is working fine but the method is not shown in the auto-complete list,Steps to reproduce
To reproduce the steps, simply create a script as follows:
Minimal reproduction project (MRP)
Archive.zip
The text was updated successfully, but these errors were encountered: