godotengine / godotengine/godot-vscode-plugin
Node Inspector does not work: InspectNode Cannot read property of undefined (reading 'get_godot_object')
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
### 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.
```
https://github.com/user-attachments/assets/0e36ffc4-f84e-40e7-9662-108453f172e2
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
Contributor guide
Assessment
This issue has not been assessed yet.