Intellijk 14 - Not able to use org.tmatesoft.svn.core.SVNURL

Hi -
My plugin has dependency on subversion and i am using this dependency in my plugin.xml
     <depends>Subversion</depends>

However when i use the below code to get repository url for a project, i get NoSuchMethodError. I am making changes to support Intelij 14. The plugin worked and continues to work on Intellij 13.


SVNURL repositoryRootURL = SvnVcs.getInstance(project).getInfo(new File(project.getBasePath())).getRepositoryRootURL();
return repositoryRootURL.toString();


Error:
NoSuchMethodError: org.jetbrains.idea.svn.SvnUtil.getStatus(Lorg/jetbrains/idea/svn/SvnVcs;Ljava/io/File;)Lorg/tmatesoft/svn/core/wc/SVNStatus

Looks like svnkit.jar is not getting loaded? Should i explicity add some dependency for Intellij 14?

Please let me know. Its quite urgent.

3 comments
Comment actions Permalink

The signature of the getStatus() method was changed between IntelliJ IDEA 13 and 14. Note that the Subversion plugin does not have any supported APIs, and JetBrains does not make any effort to maintain compatibility for third-party plugins that depend on the Subversion plugin.

0
Comment actions Permalink

Any suggestions on how to get SVN repository URL from the Idellij Open API please? Also SVNStatus for any files in the project? for Intellij 14 that would be compatible with 13 too

Thanks in advance

0
Comment actions Permalink

There is no OpenAPI for working with concepts specific to a single version control plugin, such as the SVN repository URL. To get the version control status of a file, you can use FileStatusManager.getStatus(VirtualFile).

0

Please sign in to leave a comment.