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

Tool scripts don't work if they're using inner classes #92448

Closed
passivestar opened this issue May 27, 2024 · 2 comments
Closed

Tool scripts don't work if they're using inner classes #92448

passivestar opened this issue May 27, 2024 · 2 comments

Comments

@passivestar
Copy link
Contributor

Tested versions

v4.3.dev6.official [89850d5]

System information

Godot v4.3.dev6 - macOS 14.4.1 - Vulkan (Forward+) - integrated Apple M1 Max - Apple M1 Max (10 Threads)

Issue description

A tool script code isn't executed when the project is opened if that script is using an inner class. Adding script to the scene results in an error Cannot get class''.

Opening it in script editor, making any change (even adding an empty line) and saving the script solves the problem. Until the next editor restart

Screen.Recording.mp4

Steps to reproduce

MRP

Minimal reproduction project (MRP)

MRP_tool_inner_class.zip

@dalexeev
Copy link
Member

It looks like the bug is not reproducible on the current master. Probably, it is fixed by #90601. Please test the master branch if you can or wait for 4.3 beta 1.

@passivestar
Copy link
Contributor Author

Indeed this doesn't happen in master, closing

@github-project-automation github-project-automation bot moved this from Needs further info to Done in GDScript Issue Triage May 28, 2024
@dalexeev dalexeev added this to the 4.3 milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants