This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 8.0.1 (Build 201408251540) VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13 OS: Windows 8 User Comments: jmfernandez-ctmam: I updated cordova to latest version and since then i can not clean or build my cordova project. GUEST: Cordova Plugin Error occured after upgrading cordova version acs1000: This has happened since I updated to version 8.0.1, and noticed when trying to compile my project. GUEST: Cordova installed. Git installed GUEST: Can't build and run a Cordova Application on IOS Simulator, get this error, nothing happens after. GUEST: <Please provide a description of the problem or the steps to reproduce GUEST: clean or trying to build a cordova project GUEST: cordova build GUEST: Upgraded to Cordova 3.7 and tried to run application on Android Emulator. Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1954) at org.netbeans.modules.cordova.CordovaPlatform$Version.<init>(CordovaPlatform.java:162) at org.netbeans.modules.cordova.CordovaPlatform.getVersion(CordovaPlatform.java:93) at org.netbeans.modules.cordova.CordovaPlatform.isReady(CordovaPlatform.java:122) at org.netbeans.modules.cordova.CordovaPerformer.perform(CordovaPerformer.java:176) at org.netbeans.modules.cordova.platforms.android.AndroidActionProvider.invokeAction(AndroidActionProvider.java:129)
Created attachment 150038 [details] stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=208606
Patch candidate. Latest cordova returns $ cordova -v 4.0.0 Which causes the SOOBE.
FYI, looking at $ npm view cordova versions the change happened with v. 3.7.0
*** Bug 247692 has been marked as a duplicate of this bug. ***
*** Bug 248025 has been marked as a duplicate of this bug. ***
*** Bug 248112 has been marked as a duplicate of this bug. ***
Out of curiosity, why would the output of 4.0.0 cause this exception? The version matches the pattern that it's looking for. (In reply to Vladimir Riha from comment #3) > Patch candidate. Latest cordova returns > > $ cordova -v > 4.0.0 > > Which causes the SOOBE.
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=208606
(In reply to hamil10 from comment #8) > Out of curiosity, why would the output of 4.0.0 cause this exception? The > version matches the pattern that it's looking for. Because it expects "-" as it used to be until 3.7.0, the source code looks like assert version.contains("-"); api = new SubVersion(version.substring(0, version.indexOf("-"))); cli = new SubVersion(version.substring(version.indexOf("-")+1)); and since there is no "-" now, it throws errors. Cordova used to have versioning like "3.0.0" but last year in October it has changed to "3.1.0-x.x." and now it is back to "4.0.0"
Should be fixed now http://hg.netbeans.org/web-main/rev/d86ff9d12c83
transplanted to releases http://hg.netbeans.org/releases/rev/6bf15a0ac758 http://hg.netbeans.org/releases/rev/f76b924b0fd3
*** Bug 248191 has been marked as a duplicate of this bug. ***
*** Bug 248228 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201410290913* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d86ff9d12c83 User: Vladimir Riha <vriha@netbeans.org> Log: #248087 - StringIndexOutOfBoundsException: String index out of range: -1
Integrated into 'releases/release801', will be available in build *201410291735* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/6bf15a0ac758 User: Vladimir Riha <vriha@netbeans.org> Log: #248087 - StringIndexOutOfBoundsException: String index out of range: -1
*** Bug 248268 has been marked as a duplicate of this bug. ***
Untill the stable version will be released, is there any way to workaround this bug?
Wow! I love Netbeans! You guys Rock! Few minutes ago I've found an update of Cordova plugin in Options-> plugins -> Check for update! It works now!
Yep, the patch was released today :-)
I have upgraded the Cordova Support Plugin to 1.26.2 org.netbeans.modules.cordova.platforms [1.32.1 201408251540] org.netbeans.modules.cordova.platforms.ios [1.24.1 201408251540] org.apache.tools.ant.module/3 [3.76.1.2 2 201408251540] org.netbeans.modules.cordova.platforms.android [1.24.1 201408251540] org.netbeans.modules.cordova [1.26.2 201410291735] However, I am still facing the Cordova or Git was missing dialog. Here are my spec: $ which git /usr/local/bin/git $ git --version git version 1.9.1 $ which cordova /usr/local/bin/cordova $ cordova --version 4.0.0 OS: Mac OS X 10.9.5 NetBeans IDE 8.0.1 Folk, any suggestions?
Could you please file a new bug and attach your IDE log (see http://wiki.netbeans.org/FaqLogMessagesFile ) from moment when you see the messages? The cause will be different than the one in this issue so it is better to track it separately. Thank you
Verified in patch Product Version: NetBeans IDE 8.0.2 (Build 201411102027) Java: 1.8.0_25; Java HotSpot(TM) Client VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
*** Bug 254114 has been marked as a duplicate of this bug. ***