Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365016 - Can not delete a makefile when open it in a makefile editor.
Summary: Can not delete a makefile when open it in a makefile editor.
Status: CLOSED DUPLICATE of bug 338936
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 20:30 EST by yuyin CLA
Modified: 2011-11-29 02:26 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yuyin CLA 2011-11-28 20:30:38 EST
Build Identifier: 20100617-1415

org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
	at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:125)
	at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:304)
	at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFile(ResourceTree.java:785)
	at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1934)
	at org.eclipse.core.internal.resources.Resource.delete(Resource.java:786)
	at org.eclipse.ltk.core.refactoring.resource.DeleteResourceChange.perform(DeleteResourceChange.java:138)
	at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
	at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
	at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:258)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:306)
	at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:92)
	at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:218)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Reproducible: Sometimes

Steps to Reproduce:
I test it in four computers, two are win7, the other two are winxp
1. create a c project, select makefile project
2. enable generate makefiles automatically
3. create a c file, then bulid the project
4. there will be three makefiles(Makefile sources.mk and subdir.mk) in the folder whose name is "Default"
5. open one of the thress files, than delete it, thress computers failed(include the two win7 computers), only one winxp success.
6. I look for the cdt source code, and maybe this is the problem: org.eclipse.cdt.make.internal.core.makefile.gnu.protected void parse( URI fileURI, MakefileReader reader )  throws IOException, this method did not close the reader, if I close it by reader.close(), the problem dispear.
Comment 1 Anton Leherbauer CLA 2011-11-29 02:26:21 EST

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