147

I am using intellij idea 13.0. When I am trying to checkout from subversion I am getting error

Cannot load supported formats: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified

How do I fix this?

bahrep
  • 29,961
  • 12
  • 103
  • 150
JULIIncognito
  • 1,875
  • 2
  • 15
  • 15

14 Answers14

282

I solved this by uncheking the "Use command-line client" option from Subversion settings.

This works with version 1.6 and 1.7 only. See @Vic's answer for SVN version 1.8.

Lorenz Meyer
  • 19,166
  • 22
  • 75
  • 121
Razvan
  • 2,929
  • 1
  • 11
  • 4
  • That error is because you need to install a svn client. It tries to run the command using the terminal instead of his internal client by default. It solves my problem, thanks. – LTroya May 11 '17 at 18:20
  • that setting no longer exists – Ev0oD Oct 24 '22 at 09:16
82

Check my solution, It will work.

Solutions:

First Download Subversion 1.8.13 ( 1.8 ) Download link ( https://www.visualsvn.com/downloads/ )

enter image description here

Then unzipped in a folder. There will have one folder "bin".

Then

Go to settings - > Version control -> Subversion

Copy the url of your downloaded svn.exe that is in bin folder that you have downloaded.

follow the pic:

enter image description here

Don't forget to give the end name like svn.exe last as per image.

Apply -> Ok

Restart your android studio now.

Happy Coding!

Manoj Behera
  • 2,736
  • 22
  • 13
37

If you're using IntelliJ 13 with SVN 1.8, you have to install SVN command line client. Please see more information here:

Unlike its earlier versions, Subversion 1.8 support uses the native command line client instead of SVNKit to run commands. This approach is more flexible and makes the support of upcoming versions much easier. Now, IntelliJ IDEA offers different integration options for each specific Subversion:

1.6 – SVNKit only

1.7 – SVNKit and command line client

1.8 – Command line client only

Vic
  • 21,473
  • 11
  • 76
  • 97
  • 6
    Installing svn command line client is the right answer here. Note that on windows default selections for installation of TortoisSVN do not include the command line client. – dbrin Oct 03 '14 at 20:55
19

Disabling Use command-line client from the settings worked well form me on IntelliJ Ultimate 14.0.

user3666197
  • 1
  • 6
  • 50
  • 92
ErmannoS
  • 318
  • 2
  • 6
11

In IntelliJ Idea 2017.1 you can use the embedded SVN client that sadly is not enabled by default. Here's how you can activate it.

1) Open IntelliJ Idea

2) Menu Help > Find Actions...

enter image description here

3) Type subversion to gain access to the subversion related settings. Choose the item Subversion Settings as highlighted in the following picture.

enter image description here

4) Finally, be sure to uncheck the option Use command line client.

enter image description here

From now on, in the current project, you'll use the embedded subversion.

danidemi
  • 4,404
  • 4
  • 34
  • 40
9

Under settings ->verison control -> Subversion, uncheck use command line client. It will work.

Krishna Gollapudi
  • 1,609
  • 16
  • 13
8

Basically, what IntelliJ needs is svn.exe. You will need to install Subversion for Windows. It automatically adds svn.exe to PATH environment variable. After installing, please restart IntelliJ.

Note - Tortoise SVN doesn't install svn.exe, at least I couldn't find it in my TortoiseSVN bin directory.

Gaurav B
  • 661
  • 8
  • 9
  • 2
    Tortoise SVN default installation does not install command line tools. Once you reinstall and check the command line tools, it will install a bin folder with svn.exe. Then in Intellij settings -> subversion give the path to this svn.exe. – BrownRecluse May 02 '18 at 21:17
  • Update 2020: I just installed Tortoise and there was a checkbox in the installer (initially unchecked) to install Command Line Tools. Check that and you're good to go – kioleanu Mar 23 '20 at 07:40
2

Seems related to this issue IDEA-117518

Meo
  • 12,020
  • 7
  • 45
  • 52
2

IntelliJ needs the subversion command(svn) added into Subversion settings. Here are the steps: 1. Download and Install subversion. 2. check on the command line prompt on windows(cmd) for the same command - svn.

enter image description here

  1. Validate svn command added to File --> settings --> Version Control --> subversion enter image description here

  2. Exit IntelliJ studio and relaunch

san242
  • 127
  • 1
  • 1
  • 4
1

Fix of this problem is add SVN directory(C:\Program Files\TortoiseSVN\bin) to Path system property

v.budennyy
  • 11
  • 1
1

For me, on Debian GNU / Linux, installing the subversion package was the solution

# aptitude install subversion subversion-tool
0

Disabling Use command-line client from the settings on IntelliJ Ultimate 14.0.3 works for me.

I checked IDEA's document, IDEA don't need a SVN client software anymore. see below description from https://www.jetbrains.com/idea/help/using-subversion-integration.html

=================================================================

Prerequisites

IntelliJ IDEA comes bundled with Subversion plugin. This plugin is turned on by default. If it is not, make sure that the plugin is enabled. IntelliJ IDEA's Subversion integration does not require a standalone Subversion client. All you need is an account in your Subversion repository. Subversion integration is enabled for the current project root or directory.

==================================================================

Frank Wu
  • 53
  • 2
0

If you're going with Manoj's solution (https://stackoverflow.com/a/29509007/2024713) and still having the problem try switching off "Enable interactive mode" if available in your version of IntelliJ. It worked for me

Community
  • 1
  • 1
Kuba
  • 372
  • 4
  • 8
0

If you are still stuck with errors like this one on Windows or you have one of the following errors :

  • Cannot run program "svn"
  • No appropriate protocol
  • Cannot run 'C:\Program'

Execute the following steps.

  • Install your SVN client with command lines tools (probably already done if you are reading this).
  • Add your SVN client bin directory (which contains the executable svn.exe) to the path of your SYSTEM environment variables.

Then in IntelliJ, go to Settings -> Version Control -> Subversion and do the following :

  • Path to Subversion executable : svn (since you added it to your SYSTEM path you don't have to put the full path to your executable, moreover if you do this it will produce the error #3 mentioned above).
  • Enable interactive mode : checked.
  • Network -> Use IDEA general proxy settings as default for Subversion : checked.

Hope this answer will save time for some users.

Paul
  • 1,410
  • 1
  • 14
  • 30