-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Fixed wrong base class when using extends Base.Subclass
#66781
Fixed wrong base class when using extends Base.Subclass
#66781
Conversation
inner-classes-refcount-errors.zip @rune-scape could you try out this project? On current master branch it gives me this error: as it is unable to detect that ParentClass is a base class of SubClass |
changed find_subclass to a helper method
Thanks for the input! |
The latest commit of this PR now gives me a different error: @rune-scape are you saying that once #65752 is merged that your PR should work without any issues in this regard? Otherwise I might write up a different issue after both the PRs are being merged. |
Ah, yes, I minced my words. That is a separate issue that should (hopefully) be resolved after #65752 is merged AND the fix I mentioned in my last comment is applied. |
@rune-scape looks like the formatting is failing at the moment: https://github.com/godotengine/godot/actions/runs/3185280223/jobs/5194668640 |
Ya, but... its messed up, the formatting isn't wrong like it says. I didn't change any of the code its crying about. |
@rune-scape I suggest you run |
There also seems to be 1 or 2 more places where extending an inner class is not taken into account. godot/modules/gdscript/gdscript_analyzer.cpp Line 370 in 880a017
I feel like anything else is just chasing bugs as they pop up. I'm working on it and figuring out whether or not it needs #65752. |
Fixes #65953
Also prevents a crash on startup when opening this project, which has weird almost cyclic inheritance.
godot-rune-wrong-subclass-base-proj.zip
Edit: no longer prevents the crash on startup