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

GD-707: Replace deprecated functions #707

Open
MikeSchulze opened this issue Mar 11, 2025 · 0 comments
Open

GD-707: Replace deprecated functions #707

MikeSchulze opened this issue Mar 11, 2025 · 0 comments
Assignees
Labels
refactoring Mark to refactoring a implementation
Milestone

Comments

@MikeSchulze
Copy link
Owner

MikeSchulze commented Mar 11, 2025

Describe What
GdUnit4 uses deprecated functions, and we should replace it by suggested functions.

Describe Why
A user reports script errors when building Godot without deprecated functions, and we should replace them sooner rather than later.

  • inst_to_dict
  • dict_to_inst
  • convert

Dev hints

Loading GdUnit4 Plugin success
  ERROR: res://addons/gdUnit4/src/core/GdUnitRunnerConfig.gd:66 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdUnitRunnerConfig.gd:103 - Parse Error: Function "dict_to_inst()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:163 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:163 - Parse Error: Cannot infer the type of "d" variable because the value doesn't have a set type.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:555 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:555 - Parse Error: Cannot infer the type of "clazz_info" variable because the value doesn't have a set type.
  ERROR: res://addons/gdUnit4/src/doubler/GdFunctionDoubler.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:163 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:163 - Parse Error: Cannot infer the type of "d" variable because the value doesn't have a set type.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:555 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:555 - Parse Error: Cannot infer the type of "clazz_info" variable because the value doesn't have a set type.
  ERROR: res://addons/gdUnit4/src/doubler/CallableDoubler.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:163 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:163 - Parse Error: Cannot infer the type of "d" variable because the value doesn't have a set type.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:555 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:555 - Parse Error: Cannot infer the type of "clazz_info" variable because the value doesn't have a set type.
  ERROR: res://addons/gdUnit4/src/doubler/GdUnitClassDoubler.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/execution/stages/GdUnitTestSuiteAfterStage.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:163 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:163 - Parse Error: Cannot infer the type of "d" variable because the value doesn't have a set type.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:555 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdObjects.gd:555 - Parse Error: Cannot infer the type of "clazz_info" variable because the value doesn't have a set type.
  ERROR: res://addons/gdUnit4/src/core/parse/GdUnitExpressionRunner.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/execution/stages/fuzzed/GdUnitTestCaseFuzzedTestStage.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/execution/stages/fuzzed/GdUnitTestCaseFuzzedExecutionStage.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/execution/stages/GdUnitTestCaseExecutionStage.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/execution/stages/GdUnitTestSuiteExecutionStage.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/GdUnitTestSuiteScanner.gd:170 - Parse Error: Function "convert()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdUnitTestSuiteScanner.gd:180 - Parse Error: Function "convert()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdUnitTestSuiteScanner.gd:182 - Parse Error: Function "convert()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/execution/GdUnitTestSuiteExecutor.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/runners/GdUnitBaseTestRunner.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/network/rpc/RPC.gd:13 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/network/rpc/RPC.gd:17 - Parse Error: Function "dict_to_inst()" not found in base self.
  ERROR: res://addons/gdUnit4/src/network/rpc/RPC.gd:21 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/network/rpc/RPC.gd:37 - Parse Error: Function "dict_to_inst()" not found in base self.
  ERROR: res://addons/gdUnit4/src/network/rpc/RPCClientConnect.gd:2 - Parse Error: Could not resolve class "RPC".
  ERROR: res://addons/gdUnit4/src/network/GdUnitTcpClient.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/runners/GdUnitTestRunner.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: modules/gdscript/gdscript.cpp:3022 - Failed to load script "res://addons/gdUnit4/src/core/runners/GdUnitTestRunner.gd" with error "Parse error".
  ERROR: res://addons/gdUnit4/src/core/writers/GdUnitCSIMessageWriter.gd:112 - Parse Error: Function "Color8()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/writers/GdUnitCSIMessageWriter.gd:121 - Parse Error: Function "Color8()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdUnitRunnerConfig.gd:66 - Parse Error: Function "inst_to_dict()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdUnitRunnerConfig.gd:103 - Parse Error: Function "dict_to_inst()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdUnitTestSuiteScanner.gd:170 - Parse Error: Function "convert()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdUnitTestSuiteScanner.gd:180 - Parse Error: Function "convert()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/GdUnitTestSuiteScanner.gd:182 - Parse Error: Function "convert()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/runners/GdUnitTestCIRunner.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/bin/GdUnitCmdTool.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/src/core/writers/GdUnitCSIMessageWriter.gd:112 - Parse Error: Function "Color8()" not found in base self.
  ERROR: res://addons/gdUnit4/src/core/writers/GdUnitCSIMessageWriter.gd:121 - Parse Error: Function "Color8()" not found in base self.
  ERROR: res://addons/gdUnit4/bin/GdUnitCopyLog.gd:0 - Compile Error: Failed to compile depended scripts.
  ERROR: res://addons/gdUnit4/test/cmd/runtestDebug.tscn::GDScript_54n73:0 - Compile Error: Failed to compile depended scripts.
  WARNING: core/io/resource_format_binary.cpp:1094 - 'res://addons/gdUnit4/test/core/resources/scenes/simple_scene.scn': In external resource #1, invalid UID: 'uid://mdg54o4ynxsl' - using text path instead: 'res://addons/gdUnit4/test/core/resources/scenes/icon.png'.
  WARNING: scene/resources/resource_format_text.cpp:447 - res://addons/gdUnit4/test/core/resources/scenes/simple_scene.tscn:4 - ext_resource, invalid UID: uid://mdg54o4ynxsl - using text path instead: res://addons/gdUnit4/test/core/resources/scenes/icon.png
@MikeSchulze MikeSchulze added the refactoring Mark to refactoring a implementation label Mar 11, 2025
@MikeSchulze MikeSchulze self-assigned this Mar 11, 2025
@MikeSchulze MikeSchulze added this to the 5.0.0 milestone Mar 11, 2025
@MikeSchulze MikeSchulze changed the title GD-XXX: Replace deprecated functions GD-707: Replace deprecated functions Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Mark to refactoring a implementation
Projects
Status: No status
Development

No branches or pull requests

1 participant