Skip to content

Node Inspector does not work: InspectNode Cannot read property of undefined (reading 'get_godot_object') #833

Open
@GustJc

Description

@GustJc

Godot version

4.3.stable, 4.4.stable, 4.4.1-rc2

VS Code version

1.98.2

Godot Tools VS Code extension version

2.5.1

System information

Windows 10

Issue description

I can't inspect any nodes in Debug in vscode.
I can see/request the Active Scene Tree, so it should be properly connected to godot, but when selecting any node, vscode just throws the error:

Error running command godotTools.debugger.inspectNode: Cannot read properties of undefined (reading 'get_godot_object'). This is likely caused by the extension that contributes godotTools.debugger.inspectNode.
vscode_plugin_inspect.mp4

Using godot 4.4, and I made sure to change the default lsp port already.
"godotTools.lsp.serverPort": 6005,

Does this feature work for anyone else? I only discovered this existed now, and it is simply not working for me on the latest version of godot tools.

Steps to reproduce

  • Run game
  • Request active scene tree
  • Click on the eye icon to inspect a node

Result: Error message
Expected: See the node's properties in the Inspector category

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions