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 215437 - Duplicated Structure of Project, also leads to some Classes to be marked as duplicated (has workaround)
Summary: Duplicated Structure of Project, also leads to some Classes to be marked as d...
Status: RESOLVED DUPLICATE of bug 197983
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-12 03:37 UTC by scgm11
Modified: 2013-01-04 08:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (53.72 KB, text/plain)
2012-07-12 03:37 UTC, scgm11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scgm11 2012-07-12 03:37:47 UTC
Product Version = NetBeans IDE 7.2 RC1 (Build 201206272359)
Operating System = Mac OS X version 10.7.4 running on x86_64
Java; VM; Vendor = 1.6.0_33
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.8-b03-424


After making some cherry picks of git, seems like the IDE is broken, it shows project structure duplicated and some classes marked as duplicated as well altough they are not, compile and works just fine but not the correct beheavior, 


WORKAROUND:

Clear Netbeans Cache on /Users/USER/Library/Caches/NetBeans/7.2rc1

Then at restart the structure is right again.
Comment 1 scgm11 2012-07-12 03:37:53 UTC
Created attachment 121953 [details]
IDE log
Comment 2 Ondrej Vrabec 2012-07-22 18:51:48 UTC
> After making some cherry picks of git
You did this on commandline, right? Cherry-picking is not supported inside the IDE by the Git plugin => not git related. I assume a parsing/scanning issue?
Comment 3 scgm11 2012-07-22 19:02:50 UTC
I did the cherry pick with sourcetree
Comment 4 Jan Lahoda 2012-07-24 12:23:43 UTC
(In reply to comment #0)
> After making some cherry picks of git, seems like the IDE is broken, it shows
> project structure duplicated and some classes marked as duplicated as well

Sorry, but this is not very clear to me - what exactly means "project structure duplicated"?

> altough they are not, compile and works just fine but not the correct
> beheavior, 

If there would be some steps to reproduce, that would be give us much better chance to fix the bug.

Thanks.
Comment 5 scgm11 2012-07-24 12:46:19 UTC
(In reply to comment #4)
> (In reply to comment #0)
> > After making some cherry picks of git, seems like the IDE is broken, it shows
> > project structure duplicated and some classes marked as duplicated as well
> 
> Sorry, but this is not very clear to me - what exactly means "project structure
> duplicated"?
> 
> > altough they are not, compile and works just fine but not the correct
> > beheavior, 
> 
> If there would be some steps to reproduce, that would be give us much better
> chance to fix the bug.
> 
> Thanks.


At the Project tab on the left, after make a cherry pick I can see 

(WebProject)
Web Pages
Source Packages
Test Packages
Libraries
Test Libraries
RESTFull Web Services
Configuration Files


All this items shows duplicated after a cherry pick done with source tree for example and moving to that branch, if I go back to the branch I was, I still see the duplicated structure and some clases are mark like duplicated.

Example:

(WebProject)
Web Pages
Source Packages
Test Packages
Libraries
Test Libraries
RESTFull Web Services
Configuration Files
Source Packages
Test Packages
Libraries
Test Libraries
RESTFull Web Services
Configuration Files



This is how I see the project structure after that, the workaround as I said is 
Clear Netbeans Cache on /Users/USER/Library/Caches/NetBeans/7.2rc1
and restart netbeans so I go back to the structure as it should be


(WebProject)
Web Pages
Source Packages
Test Packages
Libraries
Test Libraries
RESTFull Web Services
Configuration Files


tell me if I'm not clear enough,

thanks
Comment 6 Jan Lahoda 2013-01-04 08:50:00 UTC
Hopefully fixed by a fix for bug #197983 - could you please try a build with that bug fixed, and reopen if the fix is not sufficient to fix this? Ideally with as many details on how to reproduce as possible. Thank you very much.

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