justinbangerter / gdscript-repl

Read Eval Print Loop for GDScript
BSD 3-Clause "New" or "Revised" License
20 stars 1 forks source link

Parse error #1

Closed mzwaal closed 4 months ago

mzwaal commented 4 months ago

Hi,

Trying to use the plugin. I get this when adding it to my project:

res://addons/repl/repl_env.gd:339 - Parse Error: Identifier "GodotPhysicsServer3D" not declared in the current scope. res://addons/repl/repl_env.gd:339 - Parse Error: Identifier "GodotPhysicsServer3D" not declared in the current scope. res://addons/repl/repl_parser.gd:-1 - Compile Error: res://addons/repl/control.gd:-1 - Compile Error: modules/gdscript/gdscript.cpp:2726 - Failed to load script "res://addons/repl/control.gd" with error "Compilation failed". (User) res://addons/repl/control.gd:7 - Invalid call. Nonexistent function 'new' in base 'GDScript'.

Running on Godot Engine v4.2.2.stable.mono.official

And installing it via the AssetLib on 4th July 2024

justinbangerter commented 4 months ago

Hey, thanks for letting me know.

I'm guessing you don't have some Physics 3D classes loaded.

I found a way to dynamically load classes from the base environment into the REPL environment. So, this should go away after the next release (just submitted to the asset lib).

Let me know if it resolves the issue for you.

mzwaal commented 4 months ago

It is working, thanks!