You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Godot v4.2.1.stable unknown - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Fri Mar 1 18:16:16 UTC 2024 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti SUPER (nvidia; 550.54.14) - Intel(R) Core(TM) i7-14700KF (28 Threads)
Issue description
It is quite often practice to use self. for recognition class defined
variables usage from local variables usage which are without self prefix.
In current moment in situation like in screenshot autocomplete fail to work .
Working autocomplete (no self ):
Not Working autocomplete (using self ):
Also persist situations in case of usage Enums autocomplete working only for Global scope enums usage
Like in screenshot :
Working enum autocomplete using global enum scope:
But in case if used direct class member Enum define in parameters which is quite logical and predictable . Autocomplete fail to work.
Steps to reproduce
steps to reproduce so simple and do not require anything special
Minimal reproduction project (MRP)
it is not required any project and reproducible even with one node and default binded script.
The text was updated successfully, but these errors were encountered:
The second part I'm unsure about, that's an unusual way to access an enum
Also, please be aware that self isn't necessary, and shouldn't be used unless you need to, using self ignores any safety checks so you lose a lot of code features if you use self all the time, there's no reason to use self unless you need it specifically, I'm not sure where you read that it's a good practice to use it
As mentioned before, the self problem is already fixed on master. Your enum problem is a duplicate of #88858 and would likely be fixed by #89382. So I'd suggest closing this issue as duplicate.
Tested versions
System information
Godot v4.2.1.stable unknown - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Fri Mar 1 18:16:16 UTC 2024 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti SUPER (nvidia; 550.54.14) - Intel(R) Core(TM) i7-14700KF (28 Threads)
Issue description
It is quite often practice to use self. for recognition class defined
variables usage from local variables usage which are without self prefix.
In current moment in situation like in screenshot autocomplete fail to work .
Working autocomplete (no self ):
Not Working autocomplete (using self ):
Also persist situations in case of usage Enums autocomplete working only for Global scope enums usage
Like in screenshot :
Working enum autocomplete using global enum scope:

But in case if used direct class member Enum define in parameters which is quite logical and predictable . Autocomplete fail to work.

Steps to reproduce
steps to reproduce so simple and do not require anything special
Minimal reproduction project (MRP)
it is not required any project and reproducible even with one node and default binded script.
The text was updated successfully, but these errors were encountered: