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

Random errors related to inner classes #67163

Closed
KoBeWi opened this issue Oct 9, 2022 · 1 comment · Fixed by #68374
Closed

Random errors related to inner classes #67163

KoBeWi opened this issue Oct 9, 2022 · 1 comment · Fixed by #68374

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Oct 9, 2022

Godot version

4.0 ca25c6e

System information

Windows 10 x64

Issue description

When you open a scene that has a script with an inner class, you will sometimes get this error:

Attempt to open script '' resulted in error 'Can't open file'.

It's triggered in specific circumstances, but prints every time the scene is opened.

Seems like the script has to be built-in and the class has to be used as an array type. Not sure if it's the only case that triggers the error.

Steps to reproduce

  1. Create a new scene
  2. Add any node and attach a new built-in script
  3. Put this in the script
var arr: Array[Inner]

class Inner:
	pass
  1. Save and reload the scene

Minimal reproduction project

No response

@rune-scape
Copy link
Contributor

issue-67439.zip
i just checked that this was an issue in beta 3 but is fixed as of #68374 @akien-mga
yes, the inner class had to be used as a type for the error to happen.
i think paths of inner classes were not being set correctly in builtin scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants