Error when trying to run code editor: JetBrains Rider or Fleet. Could not find path to the editor

Godot Version

4.2.1

Question

I followed the instructions according to https://docs.godotengine.org/en/latest/tutorials/scripting/c_sharp/c_sharp_basics.html#jetbrains-rider, but whenever I try to open a .cs file to edit it, I get this:

/root/godot/modules/mono/editor/GodotTools/GodotTools/Ides/Rider/RiderPathManager.cs:114 - Error when trying to run code editor: JetBrains Rider or Fleet. Could not find path to the editor.

I even configured Editor Settings > Dotnet > Editor > Custom Exec Path to point to Rider’s startup.sh file, but to no avail.
It should be noted that when I set Editor Settings > Dotnet > Editor to Custom, but with Editor Settings > Dotnet > Editor > Custom Exec Path pointing to Rider’s startup.sh file, it works fine.

I ran into the same problem and looked it up. In order for Godot to open files on Rider it needs to find where it’s installed. There are multiple ways to install Rider, so Godot accounts for the most probable paths.

If it doesn’t work just by following the tutorial you linked, one can to this:

  1. Create the file /home/{user}/.local/share/applications/jetbrains-rider.desktop
    with the following content:
[Desktop Entry]
Name=Rider
Exec="/path/to/rider.sh"
Type=Application
Categories=Development;

It must be exactly named “jetbrains-rider.desktop”. Godot will search for this file and use the Exec path as a hint. You can also add a line with Icon=path/to/icon.png

  1. Set Editor Settings>Dotnet>Editor>External Editor to “JetBrans Rider and Fleet”.
  2. No need to use CustomExecPath so leave it empty.
2 Likes