paddy-exe / GDExtensionSummator

The Summator Example from Custom Modules made with the GDExtension system in Godot 4
The Unlicense
173 stars 19 forks source link

Identifier "Summator" not declared in the current scope #2

Closed CarlCochet closed 2 years ago

CarlCochet commented 2 years ago

Description:

The Summator example class is not recognized inside GDScript after compiling Godot 4, godot-cpp and the GDExtensionSummator.

Platform: Windows 10, 64 bits Godot commit version: 622806397 godot-cpp commit version: c4f12ccc3cd19b8fd535d179efd0471386c7f8e9

Steps:

Result:

In the GDScript editor, we can see that Summator is not recognized:

  res://Player.gd:5 - Parse Error: Identifier "Summator" not declared in the current scope.
  modules\gdscript\gdscript.cpp:874 - Method/function failed. Returning: ERR_PARSE_ERROR

gdextension_error

Running the scene does not help, it fails at the line where I try to instanciate the Summator object. I also tried building the release versions for all components and got the same issue.

paddy-exe commented 2 years ago

@CarlCochet Would you mind running the project with the new Alpha 5 again? And with the latest version of godot-cpp. I tried it on both Mac and Windows and it works for me without any flaws.

CarlCochet commented 2 years ago

I tried again this morning, removed every Godot instances from my computer and cloned the newest master branch along with the newest godot-cpp + the extension, I followed the same steps again and it seems to work now! Thanks for the help

paddy-exe commented 2 years ago

Good to hear👍🏻