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 230432 - Cannot create tests
Summary: Cannot create tests
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Localhistory (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 230854 230990 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-29 09:13 UTC by Vladimir Riha
Modified: 2013-06-19 14:47 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (40.20 KB, text/x-log)
2013-05-29 09:13 UTC, Vladimir Riha
Details
sample project (5.44 KB, application/zip)
2013-05-29 09:14 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-05-29 09:13:38 UTC
Created attachment 135052 [details]
IDE log

To reproduce, simply create PHPUnit sample project, open Calculator.php in editor and invoke Tools|Create tests

=> nothing happens, IDE log says

INFO [org.netbeans.modules.php.project.ui.actions.tests.CreateTestsAction]: No visible files for creating tests -> exiting.



Product Version: NetBeans IDE Dev (Build web-main-10647-on-20130529)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-05-29 09:14:53 UTC
Created attachment 135053 [details]
sample project

to be thorough, but the same happens with any project I tried :)
Comment 2 Tomas Mysik 2013-05-29 09:27:04 UTC
The cause is that now VisibilityQuery returns false for root (/) - Tome, do you know anything about this change? Or anyone else from your team?

Thanks.
Comment 3 Tomas Mysik 2013-05-29 09:29:59 UTC
Definitely P2.
Comment 4 Tomas Mysik 2013-05-29 10:19:48 UTC
Work arounded on PHP side.

http://hg.netbeans.org/web-main/rev/04a835b5e0da
Comment 5 Quality Engineering 2013-05-30 01:36:59 UTC
Integrated into 'main-golden', will be available in build *201305292301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/04a835b5e0da
User: Tomas Mysik <tmysik@netbeans.org>
Log: #230432 - Cannot create tests

Workaround, see issue for more information.
Comment 6 Vladimir Riha 2013-05-30 07:58:08 UTC
Thanks for quick fix, v.


Product Version: NetBeans IDE Dev (Build 201305292301)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-44-generic-pae running on i386; UTF-8; en_US (nb)
Comment 7 Tomas Mysik 2013-06-12 08:15:47 UTC
Reverting the workaround in PHP, it does not work reliably.

http://hg.netbeans.org/web-main/rev/c75aafeed1c2

Reopening and reassigning to versioning, the cause is that Local History returns false for isVisible("C:\"). Reassigning and increasing priority, please evaluate.

Thanks.
Comment 8 Tomas Mysik 2013-06-12 08:17:00 UTC
*** Bug 230990 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Stupka 2013-06-12 08:37:26 UTC
fixed in core-main #444636f8fde6
Comment 10 Quality Engineering 2013-06-13 01:17:40 UTC
Integrated into 'main-golden', will be available in build *201306122301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c75aafeed1c2
User: Tomas Mysik <tmysik@netbeans.org>
Log: #230432 cont'd - Cannot create tests

Reverting the workaround, it does not work reliably. Will be fixed properly.
Comment 11 Tomas Mysik 2013-06-13 04:17:13 UTC
*** Bug 230854 has been marked as a duplicate of this bug. ***
Comment 12 Vladimir Riha 2013-06-19 14:47:38 UTC
Thanks, verified


Product Version: NetBeans IDE Dev (Build 201306181109)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)