Skip to content

GUT broken in Godot 4.5 dev3 #709

@mosquitobird11

Description

@mosquitobird11

Versions

(list all versions where you have replicated the bug)

The Bug

  • I get many errors on load, like:
  ERROR: res://addons/gut/utils.gd:101 - Parse Error: The member "Logger" shadows a native class.
  ERROR: res://addons/gut/gui/OutputText.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: modules/gdscript/gdscript.cpp:3023 - Failed to load script "res://addons/gut/gui/OutputText.gd" with error "Compilation failed".
  ERROR: res://addons/gut/utils.gd:101 - Parse Error: The member "Logger" shadows a native class.
  ERROR: res://addons/gut/utils.gd:101 - Parse Error: The member "Logger" shadows a native class.
  ERROR: res://addons/gut/gut_to_move.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gut/utils.gd:101 - Parse Error: The member "Logger" shadows a native class.
  ERROR: res://addons/gut/gut.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gut/test.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: modules/gdscript/gdscript.cpp:3023 - Failed to load script "res://addons/gut/test.gd" with error "Parse error".
  ERROR: res://addons/gut/utils.gd:101 - Parse Error: The member "Logger" shadows a native class.
  ERROR: res://addons/gut/gui/gut_config_gui.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: modules/gdscript/gdscript.cpp:3023 - Failed to load script "res://addons/gut/gui/gut_config_gui.gd" with error "Parse error".
  ERROR: res://addons/gut/utils.gd:101 - Parse Error: The member "Logger" shadows a native class.
  ERROR: res://addons/gut/gut_config.gd:0 - Compile Error: Failed to compile depended scripts.

I believe this is due to this PR now merged to godot master branch: godotengine/godot#91006

Additionally, added a custom Logger class to allow users intercept the internal messages

Steps To Reproduce

  • Load the addon
  • Try to do anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions