[
https://issues.apache.org/jira/browse/NETBEANS-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16561842#comment-16561842
]
Lauri edited comment on NETBEANS-771 at 7/30/18 12:18 PM:
----------------------------------------------------------
This is because of errornous parsing in VersionCommand.java at line 85.
{{ if(string.indexOf("version 0.") > -1 ||}}
{{ string.indexOf("version 1.0") > -1 ||}}
{{ string.indexOf("version 1.1") > -1 ||}}
{{ string.indexOf("version 1.2") > -1 ||}}
{{ string.indexOf("version 1.3") > -1 ||}}
{{ string.indexOf("version 1.4") > -1) {}}
Its visible that all 1.1x versions are treated as 1.1 :(
I've no idea how to submit patches to netbeans, but here is what i did locally
(that is not a fix but a workaround if lack of svn 1.10 support makes you
suffer badly).
1) Fetch the code
git clone --depth=1 [email protected]:apache/incubator-netbeans.git
2) Accept all versions
VersionCommand.java of subversion module
{{ public boolean isUnsupportedVersion() {}}
{{ return false;}}
\{{ }}}
3) Build netbeans
{{ant}}
4) Enjoy
Either freshly built version as a whole (in nbbuild/netbeans).
Or its possible to copy updated subversion module to your installation, i guess
it would be in file ./netbeans/ide/modules/org-netbeans-modules-subversion.jar
(binary from today's 30th July 2018 snapshot of sources is attached) copy it to
ide/modules/ of your installation like sudo cp
./ide/modules/org-netbeans-modules-subversion.jar
/opt/netbeans-9/ide/modules/org-netbeans-modules-subversion.jar
was (Author: lauri):
This is because of errornous parsing in VersionCommand.java at line 85.
{{ if(string.indexOf("version 0.") > -1 ||}}
{{ string.indexOf("version 1.0") > -1 ||}}
{{ string.indexOf("version 1.1") > -1 ||}}
{{ string.indexOf("version 1.2") > -1 ||}}
{{ string.indexOf("version 1.3") > -1 ||}}
{{ string.indexOf("version 1.4") > -1) {}}
Its visible that all 1.1x versions are treated as 1.1 :(
I've no idea how to submit patches to netbeans, but here is what i did locally
(that is not a fix but a workaround if lack of svn 1.10 support makes you
suffer badly).
1) Fetch the code
git clone --depth=1 [email protected]:apache/incubator-netbeans.git
2) Accept all versions
VersionCommand.java of subversion module
{{ public boolean isUnsupportedVersion() {}}
{{ return false;}}
{{ }}}
3) Build netbeans
{{ant}}
4) Enjoy
Either freshly built version as a whole (in nbbuild/netbeans).
Or its possible to copy updated subversion module to your installation, i guess
it would be in file ./netbeans/ide/modules/org-netbeans-modules-subversion.jar
> Support for SubVersion CLI client version 1.10
> ----------------------------------------------
>
> Key: NETBEANS-771
> URL: https://issues.apache.org/jira/browse/NETBEANS-771
> Project: NetBeans
> Issue Type: Wish
> Components: versioncontrol - Subversion
> Affects Versions: 8.2
> Reporter: Petr Hadraba
> Priority: Major
> Attachments: org-netbeans-modules-subversion.jar
>
>
> SubVersion CLI client version 1.10 does not work in NetBeans 8.2.
> The following message appears in NetBeans log when invoking refresh in
> SubVersion panel:
> {{ INFO [org.netbeans.modules.subversion]: Commandline client version: 1.10.0
> (r1827917)}}
> {{ WARNING [org.netbeans.modules.subversion]: Unsupported svn version. You
> need >= 1.5}}
> {{ WARNING [org.netbeans.modules.subversion.client.SvnClientFactory]:
> executable binary path set to /opt/local/bin yet client not available.}}
> The dialog box appears and says:
>
> {{1. Download and Install Subversion 1.8 or later
> ([http://subversion.apache.org/packages.html]). }}
> {{ 2. Add it to PATH. }}
> {{ Test the installation by running 'svn --version' from a command line }}
> {{ 3. Restart the IDE.}}
> My SubVersion is the latest version:
> {{ localhost:~ petr$ which svn}}
> {{ /opt/local/bin/svn}}
> {{ localhost:~ petr$ svn --version}}
> {{ svn, version 1.10.0 (r1827917)}}
> {{ compiled Apr 18 2018, 01:35:41 on x86_64-apple-darwin17.4.0}}
> {{ }}
> {{ Copyright (C) 2018 The Apache Software Foundation.}}
> {{ This software consists of contributions made by many people;}}
> {{ see the NOTICE file for more information.}}
> {{ Subversion is open source software, see [http://subversion.apache.org/]}}
> {{ }}
> {{ The following repository access (RA) modules are available:}}
> {{ }}
> * {{ra_svn : Module for accessing a repository using the svn network
> protocol.}}{{ - with Cyrus SASL authentication}}{{ - handles 'svn'
> scheme}}
> * {{ra_local : Module for accessing a repository on local disk.}}{{ -
> handles 'file' scheme}}
> * {{ra_serf : Module for accessing a repository via WebDAV protocol using
> serf.}}{{ - using serf 1.3.9 (compiled with 1.3.8)}}{{ - handles 'http'
> scheme}}{{ - handles 'https' scheme}}{{ }}{{ The following authentication
> credential caches are available:}}{{ }}
> * {{Plaintext cache in /Users/petr/.subversion}}
> * {{GPG-Agent}}
> * {{Mac OS X Keychain}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists