Intellij idea subversion checkout error: `Cannot run program “svn”`

匿名 (未验证) 提交于 2019-12-03 01:12:01

问题:

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?

回答1:

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.



回答2:

Check my solution, It will work.

Solutions:

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

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:

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

Apply -> Ok

Restart your android studio now.

Happy Coding!



回答3:

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:



回答4:

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



回答5:

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



回答6:

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...

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

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

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



回答7:

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.



回答8:

Seems related to this issue IDEA-117518



回答9:

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

# aptitude install subversion subversion-tool 


回答10:

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



回答11:

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.

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



回答12:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!