MikeSchulze / gdUnit4

A Godot Unit Test Framework. Support for GDScript and C# unit testing
MIT License
565 stars 30 forks source link

GD-529: Cannot call method 'get_meta' on a null value #529

Closed JoelCreatesGames closed 3 months ago

JoelCreatesGames commented 3 months ago

The used GdUnit4 version

4.3.3 (Pre Release/Master branch)

The used Godot version

v4.2.1.stable.official [b09f793f5]

Operating System

Windows 11

Describe the bug

In the GdUnit Dock sometimes when right clicking on a test to run/debug it won't work and result in an error in the output. If I select something else, and then try again it will work. It doesn't always happen, but I have a suspicion its related to saving the test script

image

image

Steps to Reproduce

  1. Open the application to the GdUnit dock.
  2. Right click a test and debug.
  3. Make some changes to the test script and save with ctrl+s.
  4. Right click a test and debug.
  5. Observe the error in the console (sometimes, not always).

Minimal reproduction project

No response

MikeSchulze commented 3 months ago

Hi, thanks for reporting, but I'm not able to reproduce.

Can you please describe in more detail: a) your gdunit4 settings

The error should never actually occur, as an element is always selected when using the context menu. very strange image

JoelCreatesGames commented 3 months ago

That didn't actually fix it, just changed the error. It seems related to the tree view and selecting it fresh between test runs.

2024_07_04_0.webm

GdUnitBugReproduction.zip

MikeSchulze commented 3 months ago

It occurs only in Godot v4.2.1 and seems to be related to https://github.com/godotengine/godot/pull/88917