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 246593 - Switching git branches where there are alot of files corrupts project and removes it from the IDE
Summary: Switching git branches where there are alot of files corrupts project and rem...
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-20 20:46 UTC by stl
Modified: 2015-05-06 07:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (2.62 KB, text/plain)
2014-08-20 20:46 UTC, stl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stl 2014-08-20 20:46:54 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_05
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Comment 1 stl 2014-08-20 20:46:56 UTC
Created attachment 148802 [details]
IDE log
Comment 2 stl 2014-08-20 20:55:42 UTC
As an additional note, no exception is triggered by this.

The work around for this is to close the IDE, and then reattach the project folder to the IDE.

This seems to occur more frequently to the amount of files that are affected by switching git branches. If the new branch has alot more files then the project folder just goes away.
Comment 3 Tomas Hurka 2014-08-21 06:48:35 UTC
This issue has nothing to do with performance - reassigning.
Comment 4 Ondrej Vrabec 2014-08-21 07:15:46 UTC
How do you switch branches, in the IDE? And what is the project type (Java, C++, PHP?)
Maybe Git and Projects could have a similar contract as VCS and Parsing - do not reload project metadata while the git command is in progress.
Comment 5 stl 2014-08-25 18:33:45 UTC
No i am not switching the branches through the ide. It happens with either command line or a 3rd party git client. As stated it happens when there is a large number of changes between 2 branches. It seems to occur more often going from a small file branch to one where you may have added and or modified 70+ files.
Comment 6 stl 2014-08-25 18:35:16 UTC
Project is PHP.
Comment 7 Tomas Stupka 2015-05-05 14:01:36 UTC
reassigning for further evaluation
Comment 8 Tomas Mysik 2015-05-05 18:58:40 UTC
@reporter: So, it means that the "nbproject" folder is deleted? And is the "nbproject" under VCS or not? Usually, nbproject should be versioned except nbproject/private directory. Also, anything "special" about your project setup? E.g. do you use upload-on-save or copy-on-save feature? Anything else we should know? Thanks.

@vriha: Láďo, could you please try to reproduce this issue? And could you please try also another project type? I don't think that this is PHP specific issue. Thanks!
Comment 9 Tomas Mysik 2015-05-06 07:45:02 UTC
@reporter: Are there any changes in NB project metadata between your git branches? E.g. project name, another Source Files etc. One more idea - could you please try to switch your branches from NetBeans and see if the problem occurs as well? Also, please attach the complete IDE log once you reproduce your issue.

In any case, we will try to reproduce this issue but more information would help us, of course.

Simply reopen this issue, thanks.