Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361201

Summary: Project rename stuck at "performing changes"
Product: [Eclipse Project] Platform Reporter: Mauro Molinari <mauromol>
Component: ResourcesAssignee: Serge Beauchamp <serge>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: groar, john.arthorne, serge, yevshif
Version: 3.7   
Target Milestone: 3.8 M5   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Dump 1
none
Dump 2
none
Dump 3
none
Dump 4
none
Dump 5
none
.project of the project I try to rename
none
Patch
none
Git Patch, including junit test none

Description Mauro Molinari CLA 2011-10-18 01:27:46 EDT
Build Identifier: M20110909-1335

I have a huge probject. When I try to rename it, the progress rapidly goes up to about 75%, then stays there. I can wait for hours, but it does not go further.

The project is a dynamic web project, with some links in it created using PROJECT_LOC variable. In the file system, this project has some folders containing other projects. 

PHYSICAL LAYOUT:
- MAIN_PROJECT
  - SUBPRJ1
  - SUBPRJ2

These (sub)-projects are "mounted" in the Eclipse workspace as individual projects. Some resource filters are set in the main project to hide those sub-project folders from the main project. So, the workspace layout is flat:

WORKSPACE LAYOUT:
- MAIN_PROJECT
- SUBPRJ1
- SUBPRJ2

I'm going to attach some thread dumps I made.

Reproducible: Always

Steps to Reproduce:
1. press F2 on the project name
2. change the project name
Comment 1 Mauro Molinari CLA 2011-10-18 01:33:00 EDT
Created attachment 205378 [details]
Dump 1

See the ModalContext thread of these dumps.
These dumps have been taken after waiting some hours and after trying to push the cancel button (red square on the right of the progress bar of the "Rename resource" dialog).
Comment 2 Mauro Molinari CLA 2011-10-18 01:33:21 EDT
Created attachment 205379 [details]
Dump 2
Comment 3 Mauro Molinari CLA 2011-10-18 01:33:42 EDT
Created attachment 205380 [details]
Dump 3
Comment 4 Mauro Molinari CLA 2011-10-18 01:34:01 EDT
Created attachment 205381 [details]
Dump 4
Comment 5 Mauro Molinari CLA 2011-10-18 01:34:22 EDT
Created attachment 205382 [details]
Dump 5
Comment 6 Serge Beauchamp CLA 2011-10-18 05:42:03 EDT
Can you provide a list of the path variables in your project?  Or attach the .project file?

Thanks,
Comment 7 Mauro Molinari CLA 2011-10-18 05:52:15 EDT
Created attachment 205403 [details]
.project of the project I try to rename

Here it is the .project file of the project I try to rename (which is the main project in the structure I mentioned).
Comment 8 Serge Beauchamp CLA 2011-10-21 05:07:29 EDT
Created attachment 205701 [details]
Patch

Fix for this bug.
Comment 9 John Arthorne CLA 2011-10-27 10:31:22 EDT
Adding a milestone so this patch doesn't get lost. Serge is this patch ready to go or just a work in progress?
Comment 10 Serge Beauchamp CLA 2011-12-01 11:07:37 EST
setting target to 3.8M5
Comment 11 Serge Beauchamp CLA 2012-01-20 05:54:34 EST
Created attachment 209800 [details]
Git Patch, including junit test

New git patch
Comment 12 Serge Beauchamp CLA 2012-01-20 05:55:26 EST
Now fixed on git's repository, on the master branch.