-
-
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
4.3.beta3 GDScript errors on load of Zylann hterrain plugin: Parser bug: Mismatched external parser. #94244
Comments
I can reproduce the issue in 4.3-beta3 and 0918fd2. Here's the full log output after installing the Heightmap Terrain plugin from the assetlib, and attempting to enable it in the Project Settings:
I tested and it doesn't seem to be the case (tested with a local revert of that PR).
I can't fully reproduce the fact that 4.3.beta2 has no error though. While I have the full error list pasted above in 4.3.beta3, in 4.3.beta2 and earlier snapshots I get this error:
This one is reproducible all the way down to 4.3.dev6 included. So there's one regression introduced in 4.3.dev6 ("ERROR: Compiler bug: unresolved assign.") and another one introduced in 4.3.beta3. Both would need to be bisected. Reproduction project (empty project with Zylann hterrain installed): |
Bisected the 4.3.beta3 regression (parser bug in GDScriptAnalyzer) to ffc0d09 / #92616, CC @rune-scape. |
For the #92616 regression it comes down to the following:
Not sure what the right solution would be though. Maybe this check shouldn't compare the objects but only the path. |
it does need to have the exact same parser bc it needs to resolve a specific parser node in memory, hence why theres an error i want to clarify what should happen in the last 2 bullet points: i think the problem is that reduce preload does not add the parser to the cache, so if for some reason that parser does get reloaded, it wouldn't have it in the personal cache and would fetch it from it uses working on the fix |
But isn't the problem that it still has the parser ref in its personal cache but the parser was freed due to the same script being loaded through a packed scene? |
the parser isn't getting freed, otherwise this would be a segfault |
it turned out to just be a delicate procedure of looking for the correct parser, as multiple dependant parsers are currently allowed to to be dependant on different parser trees of the same script i have a working fix now |
Reopening as #94617 was reverted. |
Tested versions
4.3.BETA3
System information
WINDOWS 10
Issue description
this plugin can use on godot4.3.beta2 with no error.and when I update my godot to 4.3.beta3.error occur
Zylann/godot_heightmap_plugin#456
Bugsquad edit: Copied from other issue.
Steps to reproduce
add plugin, and open project
Minimal reproduction project (MRP)
add plugin, and open project
The text was updated successfully, but these errors were encountered: