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.

Bug 247181 - Can't run PHPUnit since 8.0.1
Summary: Can't run PHPUnit since 8.0.1
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-16 17:51 UTC by pdelre
Modified: 2014-09-18 05:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (61.06 KB, text/plain)
2014-09-16 17:51 UTC, pdelre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pdelre 2014-09-16 17:51:19 UTC
I cannot run PHPUnit for my project any longer. After upgrading to 8.0.1, PHP Tools all seemed disabled/removed. I was able to reenable them for the project and I have PHPUnit selected as the test runner, but when I try to run a directory or file, the project properties just opens instead.

Is there a resolution for this or do I have to wait for a new version to fix the issue? This is a critical issue for me and has broken my workflow.

Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Comment 1 pdelre 2014-09-16 17:51:22 UTC
Created attachment 149268 [details]
IDE log
Comment 2 Vladimir Riha 2014-09-17 07:20:00 UTC
Will try it asap.
Comment 3 Tomas Mysik 2014-09-17 07:46:00 UTC
From the IDE log:

java.lang.ArrayIndexOutOfBoundsException: 0
	at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368)
	at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377)
	at org.netbeans.modules.php.api.ui.options.FrameworksPanel.getSelectedOption(FrameworksPanel.java:208)

Will fix it. Not sure this is related to NB 8.0.1... Is it broken for all your PHP projects?

Thanks.
Comment 4 Tomas Mysik 2014-09-17 07:54:15 UTC
The exception is weird, seems like your NB installation is somehow broken...

I suggest:
- delete your NB cachedir [1];
- start NB with a new/clean usedir [2];
- open your existing PHP project;
- run its test.

Please, let us know if it works for you or not.

Thanks.
[1] http://wiki.netbeans.org/FaqWhatIsUserdir
[2] http://wiki.netbeans.org/FaqAlternateUserdir
Comment 5 pdelre 2014-09-17 15:31:06 UTC
I had downloaded and installed 8.0.1 fresh and now the old installation (8.0 updated to 8.0.1) also works, so I'm guessing it was likely related to Tomas's comments.
Comment 6 Vladimir Riha 2014-09-17 16:39:39 UTC
Thanks @pdelre for confirmation.

I'm sorry for delay, I've tried to update 8.0 to 8.0.1 and haven't been able to reproduce it. 


Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 8 version 6.2 running on amd64; Cp1252; en_US (nb)
Comment 7 Tomas Mysik 2014-09-18 05:49:12 UTC
Thanks a lot for letting us know! And great to hear that it works for you now!