MikeSchulze / gdUnit4

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

GD-559: Error when double-clicking directory in test inspector #559

Closed poohcom1 closed 1 month ago

poohcom1 commented 1 month ago

The used GdUnit4 version

4.3.4 (Latest Release)

The used Godot version

v4.3.stable

Operating System

Windows 11

Describe the bug

Double clicking a directory in the test inspector results in the following error in console, and nothing happens:

The object does not have any 'meta' values with the key 'line_number'.
res://addons/gdUnit4/src/ui/parts/InspectorTreeMainPanel.gd:909 - Trying to assign value of type 'Nil' to a variable of type 'int'.

https://github.com/user-attachments/assets/472c2f27-48a8-4b70-a4dc-ecf0df803f96

There are two things I think should be changed:

  1. This error should not appear in the console.
  2. Clicking on a directory should toggle collapse. (opinion)

Steps to Reproduce

  1. Create a gdunit test in a nested directory.
  2. Double click on a directory in the inspector.

Minimal reproduction project

No response

MikeSchulze commented 1 month ago

Thanks for reporting this issue 👍