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

Extending a class(A) from class(B) from a GDExtension(C) defined class results in Could not found(B) #1414

Open
Ughuuu opened this issue Mar 14, 2024 · 0 comments

Comments

@Ughuuu
Copy link

Ughuuu commented Mar 14, 2024

Godot version

4.2

godot-cpp version

4.2

System information

macos m1

Issue description

I have a GDExtension that defines a class(C).
I then have a GDScript, B that extends C.(This works)
Then I have a GDScript A that extends B.(This doesn't work).

If I change the name of class B and rename it back, it works in editor. No more errors
If I export, it doesn't work.

Error is always:

SCRIPT ERROR: Parse Error: Could not resolve class "StreamToText".
          at: GDScript::reload (res://addons/godot_whisper/capture_stream_to_text.gd:0)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://samples/godot_whisper/StartButton.gd:-1)
ERROR: Failed to load script "res://samples/godot_whisper/StartButton.gd" with error "Compilation failed".

Workaround, which I will do, only extend once. Extending multiple times seems to cause issue.

Steps to reproduce

Download the godot whisper(v1.0.3) and run sample
https://github.com/V-Sekai/godot-whisper/releases/tag/v1.0.3

Minimal reproduction project

https://github.com/V-Sekai/godot-whisper/releases/tag/v1.0.3

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

No branches or pull requests

1 participant