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
First off, this bug doesn't seem to be triggered in small projects. I tried to create a MRP, but can't get the bug to trigger there. I've had this happen on multiple bigger projects, which I unfortunately can't share as MRP here.
When having both a parent class and child class, where the child class inherits from the parent class, I keep getting the error "Parse Error: The function signature doesn't match the parent. Parent signature is [...]" after adding/removing a parameter to/from both parent and child functions. Specifically, the editor seems to cache the parent signature and then doesn't update until I reload my or rename the parent class to break the inheritance (wait for the error "class not found" in child) and then renaming it back which seems to clear the cached function signature.
Test case 1 (no error when there should be):
Parent:
Child:
Notice that the child does have the little override symbol in the padding on the left
Test case 2 (error where there shouldn't be):
Parent:
Child:
This function started out with a single parameter, following the function signature you see in the error of test case 2. So it's still expecting the original function signature rather than the updated (two parameter) version.
Steps to reproduce
Create a function in a parent class, and override it in a child class
Add a parameter to the parent function
Notice that the child script doesn't throw any errors even though it should
Add the same parameter to the child function
Notice the error, even though it should be there
Minimal reproduction project (MRP)
N/A, seems to require a large project (all under NDAs) and I don't know the exact cause. If there's anything I can do on my end to help debug this let me know.
The text was updated successfully, but these errors were encountered:
Tested versions
Reproduced in both 4.2.1 and 4.2.2
System information
Godot v4.2.2.stable - Windows 10.0.22631 - GLES3 (Compatibility) - AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.; 31.0.14057.2005) - AMD Ryzen 7 5700U with Radeon Graphics (16 Threads)
Issue description
First off, this bug doesn't seem to be triggered in small projects. I tried to create a MRP, but can't get the bug to trigger there. I've had this happen on multiple bigger projects, which I unfortunately can't share as MRP here.
When having both a parent class and child class, where the child class inherits from the parent class, I keep getting the error "Parse Error: The function signature doesn't match the parent. Parent signature is [...]" after adding/removing a parameter to/from both parent and child functions. Specifically, the editor seems to cache the parent signature and then doesn't update until I reload my or rename the parent class to break the inheritance (wait for the error "class not found" in child) and then renaming it back which seems to clear the cached function signature.
Test case 1 (no error when there should be):
Parent:
Child:
Notice that the child does have the little override symbol in the padding on the left
Test case 2 (error where there shouldn't be):
Parent:
Child:
This function started out with a single parameter, following the function signature you see in the error of test case 2. So it's still expecting the original function signature rather than the updated (two parameter) version.
Steps to reproduce
Minimal reproduction project (MRP)
N/A, seems to require a large project (all under NDAs) and I don't know the exact cause. If there's anything I can do on my end to help debug this let me know.
The text was updated successfully, but these errors were encountered: