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 237129

Summary: Find usages items duplication
Product: cnd Reporter: igor_nikiforov <igor_nikiforov>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Sources to reproduce the issue

Description igor_nikiforov 2013-10-15 10:50:52 UTC
Created attachment 141090 [details]
Sources to reproduce the issue

1. Unpack attached sources and start NetBeans.
2. Create project basing on the sources
  a. Select .../src as sources directory on first wizard step;
  b. Select .../build.sh as path to Makefile.
  c. Build Command - build.sh, Clean Command - rm -rf build.
3. The project configuration will fail, as build command is "build.sh" instead of "./build.sh" (without quotes).
4. Correct this in project properties and clean&build the project.
5. Open memory.h from src folder in project view.
6. Click Find Usages on GetType method, select all checkboxes and start the search.
7. Two possible problems can appear in Usages view:
   - Two absolutely equivalent result could appear: editor will be opened by clicking one of them, and error message "Error opening Source Editor" will be shown if clicked on another.
   - The project node will be shown two times, each containing some found elements. In this case duplicates will in this different nodes.
Comment 1 igor_nikiforov 2013-10-15 11:55:51 UTC
Additional test case:
  1. Configure project properly.
  2. Open memory.h from src.
  3. Open memory.cc from src.
  4. Click Find Usages on GetType from memory.h and select all checkboxes in the dialog.
  5. Click on usage from memory.cc -> error message "Error opening Source Editor" will be shown.
Comment 2 tkellerer 2014-02-11 21:19:43 UTC
I have the same problem with Java (Ant based) projects.

It also happens when using the "Go to Type" dialog. Classes are shown twice (from the same project) and clicking on one works, but clicking on the other entry does not work.
Comment 3 Alexander Simon 2014-02-13 18:57:11 UTC
it looks like duplicate of bug #241692
Comment 4 Vladimir Voskresensky 2014-02-14 13:15:54 UTC

*** This bug has been marked as a duplicate of bug 241692 ***