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 241029 - Inspect and Transform does not work when custom scope is specified
Summary: Inspect and Transform does not work when custom scope is specified
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 250921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-28 03:17 UTC by brettryan
Modified: 2016-10-04 15:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2014-01-28 03:17:50 UTC
Applying a custom scope to the inspect and transform results in the feature not performing inspection. Reproducing notes below use the migrate to JDK8 feature though other inspection options also behave the same.

Steps to Reproduce:

- Open multiple projects.
- Select Refactor > Inspect and Transform
- Select Configuration > Migrate to JDK 8
- Click ellipse and select multiple projects to transform.
- Click Inspect.

Expected Result:

- Dialog should show progress bar of searching

Actual Result:

- Dialog closes and a message box appears with the text "No Patterns Found".


* You can also try this on a project with test packages and deselecting the test packages.



Product Version: NetBeans IDE Dev (Build 201401260001)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Mac OS X version 10.9.1 running on x86_64; UTF-8; en_AU (nb)
User directory: /Users/bryan/Library/Application Support/NetBeans/dev
Cache directory: /Users/bryan/Library/Caches/NetBeans/dev
Comment 1 Jiri Prox 2015-03-09 16:01:15 UTC
*** Bug 250921 has been marked as a duplicate of this bug. ***
Comment 2 Martin Balin 2016-07-07 07:17:33 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 3 brettryan 2016-07-08 12:35:57 UTC
Nope, this is still a problem. What seems to be a possible cause is that if one of the selected projects is a multi-project parent.


Product Version: NetBeans IDE Dev (Build 201607070002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Mac OS X version 10.11.4 running on x86_64; UTF-8; en_AU (nb)
User directory: /Users/bryan/Library/Application Support/NetBeans/dev
Cache directory: /Users/bryan/Library/Caches/NetBeans/dev
Comment 4 brettryan 2016-07-08 12:43:02 UTC
Actually, that's not the cause, the user can't select parent maven projects.
Comment 5 kalle1 2016-10-04 15:21:38 UTC
The example for steps to reproduce in #250921 still apply in 8.2 and the current development release (201610040002). The (sub-)issues are:

  * A multi-selection of projects which contains one project which would return results for an "Inspect and transform" task doesn't return any results/"No patterns found". This is severe and plainly wrong imo.
  * Parent projects which contain projects/modules which would return results for a "Inspect and transform" task don't return any results for the same task. This might be interpreted as a missing recurse function for "Inspect and transform" which is very unintuitive and has been reported at #250922.