Skip to content
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 2.0: Alphabetical order of class/file names affects GDScript compiler behavior #63439

Closed
dalexeev opened this issue Jul 25, 2022 · 1 comment

Comments

@dalexeev
Copy link
Member

Godot version

v4.0.alpha12.official [2c11e6d]

System information

Kubuntu 22.04

Issue description

If two classes cyclically refer to each other, then in some cases it works and in others it doesn't. I've found that sometimes it's enough to simply rename the classes to cause an error (the alphabetical order of the scripts must change for the error to occur).

Steps to reproduce

See MRP. Class A is copied to D, class B to C. A and B works, but C and D does not (Error: Could not parse global class "C" from "res://c.gd").

Minimal reproduction project

gd4-gds-cyclic-bug-1.zip

@Calinou Calinou added this to the 4.0 milestone Jul 25, 2022
@Calinou Calinou changed the title Alphabetical order of class/file names affects GDScript compiler behavior GDScript 2.0: Alphabetical order of class/file names affects GDScript compiler behavior Jul 25, 2022
@dalexeev
Copy link
Member Author

The bug no longer reproduced, probably fixed by #67714.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants