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 256364 - Projects open in a corrupt way when changing type
Summary: Projects open in a corrupt way when changing type
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-04 15:53 UTC by michbarsinai
Modified: 2016-04-06 11:19 UTC (History)
0 users

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 michbarsinai 2015-11-04 15:53:45 UTC
Here's the situation:
1. There's a netbeans project, under version control (git)
2. There's a branch where I try to convert the project to maven

Reproduce:
1. checkout nbproject branch
2. open the project
3. close project
4. checkout maven branch
5. try to open project - opens in a corrupt way (as a normal project, not mvn).

Same thing when opening the nbproject after opening maven.

After IDE restart all is good.

Thanks!
Comment 1 Tomas Stupka 2016-04-06 11:19:16 UTC
For various reasons - netbeans is caching the project metadata in memory even after a project was closed in a session (e.g. it might be reopened again during the same netbeans run). What typically does not happen (virtually never) is that the project type (metadata) would change. 

Doing the branch switch as described breaks this expectation. Even though valid, but this being a extremely seldom use case im going to resolve this as wontfix. 

not sure is this is liable for you, but did you consider to have both branches in separate checkout on your disk? 

thanks for understanding.