Hi,
I tried to compile the test in the godot-cpp repos.
After some trials, I was able to build all the code correctly and run the Demo using the Godot 4 beta 3.

Then I updated the repos and tried to build again and I got this error when the project loads:

SCRIPT ERROR: Parse Error: Identifier "Example" not declared in the current scope.
          at: GDScript::reload (res://main.gd:17)
SCRIPT ERROR: Parse Error: Identifier "Example" not declared in the current scope.
          at: GDScript::reload (res://main.gd:18)
SCRIPT ERROR: Parse Error: "Example" was not found in the current scope.
          at: GDScript::reload (res://main.gd:28)
SCRIPT ERROR: Parse Error: Identifier "ExampleRef" not declared in the current scope.
          at: GDScript::reload (res://main.gd:35)
ERROR: FATAL: Condition "!exists" is true.
   at: operator[] (./core/templates/hash_map.h:504)

I don't know how to solve and what can be the cause of the issue.

Thank you

You need to clone godot-cpp, then switch into the directory, build godot-cpp with template-debug, then switch into the demo/test directory (or so) and build the demo with template-debug. The demo is not built automatically with godot-cpp.

Works for me (edit though I am still on beta 2).

  • Sox replied to this.

    Pixophir I did it, but updating with the last version of the godot-cpp repos it does not working.
    I reverted to the yesterday godot-cpp git changelist and it works.

    But it sounds me strange.

    Yeah, looks like something is borked after updating to beta 3. The Editor ctds after opening the test-project, but the test-project itself runs and is responsive to mouse input. I have the feeling that the editor itself has a problem.

    But no time right now to dig deeper, probably best to wait until it is finally done ...