Search code examples
intellij-ideasvnflatpak

Flatpak Intellij Idea - problem with subversion executable


After installing Intellij Idea using flatpak on Clear Linux I'm not able to make it run svn executable. I added ---filesystem=host to flatpak permissions and tried to set executable path to /run/host/usr/bin/svn but with no luck (path is available/exists, though Intellij keeps complain)

svn command is normally available from system terminal. When I try to run /run/host/usr/bin/svn command via Intellij Idea built-in terminal, I've got error that library is not available:

sh-5.0$ /run/host/usr/bin/svn /run/host/usr/bin/svn: error while loading shared libraries: libsvn_client-1.so.0: cannot open shared object file: No such file or directory

I also tried set flatpak-spawn. Following command works perfectly fine in Intellij Idea built-in terminal:

/usr/bin/flatpak-spawn --host /usr/bin/svn, though when set as path to svn executable still gives me Intellij Idea error: "The path to Subversion executable is probably wrong"

Could anybody please help with making it work?


Solution

  • TLDR: You probably need to add the path to svn into your IntelliJ terminal Path.

    Details: It looks like you are having a path issue. I had a similar problem running kubectl running PyCharm installed from a flatpak on Pop_Os.

    If I try to run kubectl I see the following:

    enter image description here

    I have kubectl installed in /usr/local/bin. This is a screenshot from my 'normal' terminal.

    enter image description here

    In the PyCharm terminal this location is mounting under /run/host/usr/local/bin/.

    enter image description here

    If I look at my path in the PyCharm terminal, it is not there.

    enter image description here

    So I'll add the /run/host/usr/local/bin/ to my path and I can then run kubectl:

    enter image description here

    To make sure this comes up all the time, I need to add the PATH to the Terminal settings:

    enter image description here

    I can now execute any of the commands in my /usr/local/bin dir.