Godot Version
v4.7.stable.mono.official [5b4e0cb0f]
Question
I have transitioned my desktop and all my godot development away from Windows 10 to Linux Mint 22.3 Cinnamon because Windows 11 was the last straw for me. It’s going well so far except that something has gone wrong with the connection to the external code editor.
For some reason, no matter what I do, I cannot get any C# scripts to open from godot into my external editor which is VSCodium, and I cannot get my gdscripts to open in the internal editor, they always open - entirely correctly I might add - in VSCodium, but of course then they have absolutely no syntax highlighting, they act like regular text files. Once I’ve opened the gdscript I can then navigate to the C# scripts inside VSCodium and they work and the game builds and runs correctly thereafter.
On Windows it behaved the way I assume it is supposed to, which is that C# scripts opened in VSCodium, and gdscripts opened in the internal editor.
When I try to open a C# script, godot throws these errors:
ERROR: /root/godot/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs:397 - Cannot find code editor: Visual Studio Code or VSCodium
ERROR: editor/script/script_editor_plugin.cpp:2217 - Couldn't open script in the overridden external text editor
Then when I try to open a gdscript, even if I open the Scripts tab in godot then use File → Open… and manually select a .gd file, it will STILL open in VSCodium.
What’s really weird is that when I open up Editor Settings → Dotnet → Editor, it doesn’t matter if I have the editor set to “Visual Studio Code and VSCodium” or disabled, or what I enter in those fields, this behaviour does not change at all. C# scripts still throw the error as if they are trying to open in VSCodium, and gdscripts still open in VSCodium, even if I have disabled the external code editor entirely.
I’m afraid I can’t retrace all of the steps I took to get to this point, this issue has been plaguing me for a while since I could still open VSCodium manually and it would work for C# so I didn’t feel the need to address it. Now with gdscripts refusing to work I’ve hit a bit of a wall since I can’t easily develop those scripts without the internal editor. I’ve uninstalled and reinstalled VSCodium to no avail.
This is utterly baffling behaviour and I cannot find anyone else having this problem, every person who’s reported the errors above has been on Windows that I can see.
Does anyone have any ideas about what I can do to troubleshoot this? I have spent a lot of time on linux over the years but I’m by no means an expert.