godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.47k stars 148 forks source link

Cannot read properties of undefined (reading ‘startsWith’) #673

Closed schuberty closed 1 week ago

schuberty commented 1 week ago

Godot version

v4.2.2.stable.official [15073afe3]

VS Code version

1.90.2 5437499feb04f7a586f677b155b039bc2b3669eb x64

Godot Tools VS Code extension version

2.0.0

System information

Nobara Linux 38 (KDE Plasma) x86_64

Issue description

My current setup is based in Linux (Fedora/Nobara) using Godot with VSCode, I did the recommended setup (GitHub - godotengine/godot-vscode-plugin: Godot development tools for VSCode 3, etc) but when I try to run the project it only shows a dialog with the following:

“Cannot read properties of undefined (reading ‘startsWith’)”

image

My launch.json is:

    {
      "name": "Launch",
      "type": "godot",
      "request": "launch"
    }

And my godotTools.editorPath.godot4 are point to the correct executable.

And in the output of Godot Debugger at VSCode I get:

2024-05-03 20:55:17.894 [info] Creating debug session
2024-05-03 20:55:17.940 [info] Project version identified as undefined

Anyone have a clue of what might be the issue?

Steps to reproduce

I just have the extension downloaded and the setup description in the README Configuration part.

DaelonSuzuka commented 1 week ago

I can't point to a particular commit, but I vaguely remember fixing this error. You could download and install the dev build from the readme, if you want to try that out. (Fair warning, master currently has a fairly bad bug in the GDScript formatter, which I should have fixed in a day or so.)

DaelonSuzuka commented 1 week ago

Awesome, I'm glad that fixed it!

edit 2 days later: wierd, I deleted a comment by @schuberty because it was doubleposted, but now I don't see ANY comments from him. Maybe it wasn't a double post but just a display glitch, and I deleted the single comment? If so, that wasn't my intent, and I'll make sure to refresh before the next time I clean up a thread....

schuberty commented 4 days ago

@DaelonSuzuka it was just my thanking you, them you responded and I saw it was deleted and I was 😵‍💫

But no problem I just thought it was some bugged bot hehe