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

Cannot view properties of an object extending Resource type during debugging. #660

Open
zarstensen opened this issue May 20, 2024 · 2 comments · May be fixed by #662
Open

Cannot view properties of an object extending Resource type during debugging. #660

zarstensen opened this issue May 20, 2024 · 2 comments · May be fixed by #662

Comments

@zarstensen
Copy link
Contributor

Godot version

4.2.stable

VS Code version

1.89.1

Godot Tools VS Code extension version

2.0.0

System information

Windows 10

Issue description

Resource variables only show the resource id instead of all the resources properties, when inspecting variables during debugging.

Expected:

CustomResource extends from Object, properties are displayed as expected.
image

Actual:

CustomResource extends from Resource, only an "id" property is displayed.
image

Steps to reproduce

  • Create a script which contains properties and extends from Resource.
  • Inspect a script instance in the vscode debugger, only the id property is displayed.

Below is the code used to generate the above screenshots:

root_node.gd

extends Node

func _ready() -> void:
    var custom_resource: CustomResource = CustomResource.new()
    
    custom_resource.resource_variable = 42

    breakpoint

custom_resource.gd

class_name CustomResource
extends Resource

@export
var resource_variable := -9999
@zarstensen zarstensen added the bug label May 20, 2024
zarstensen added a commit to zarstensen/godot-vscode-plugin that referenced this issue Jun 5, 2024
zarstensen added a commit to zarstensen/godot-vscode-plugin that referenced this issue Jun 5, 2024
zarstensen added a commit to zarstensen/godot-vscode-plugin that referenced this issue Jun 5, 2024
@zarstensen zarstensen linked a pull request Jun 5, 2024 that will close this issue
DaelonSuzuka pushed a commit to DaelonSuzuka/godot-vscode-plugin that referenced this issue Jun 24, 2024
DaelonSuzuka added a commit that referenced this issue Jun 24, 2024
* Fix id being decoded as an signed integer instead of an unsigned integer. (#660)

---------

Co-authored-by: karstensensensen <simonblsoerensen@gmail.com>
@dubstep-coast
Copy link

Godot version
4.3.stable

VS Code version
1.92.2

Godot Tools VS Code extension version
2.1.0

System information
Windows 10

I encounter the same issue when running same code as described in this issue :(

@p10tr3k
Copy link

p10tr3k commented Oct 2, 2024

I have the same with Nodes. Only ID in debugger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants