Home » Eclipse Projects » Eclipse Platform » Unable to delete/move files after opening(Helios (and also Ganymede) - after opening an XML file, cannot delete it)
Unable to delete/move files after opening [message #550287] |
Thu, 29 July 2010 18:56 |
Gerry Kaplan Messages: 8 Registered: July 2010 |
Junior Member |
|
|
This most frequently occurs with XML files but I don't think it is limited to just them. I've even removed Oxygen XML editor from my configuration thinking that perhaps it was holding a lock, but it had no effect.
Using Helios for JEE on Windows 7.
1. Under WEB-INF, I will right click, create a new XML file.
2. In the XML editor, I just add a root element <hello/>
3. Save the file and then close it.
4. Try and delete it. FAIL.
5. Close the project, and re-open; try to delete. FAIL.
6. Close the project and delete from Windows: FAIL.
7. Open the project and delete from Windows: SUCCEED
Does anyone know about this problem? It is VERY troublesome, as often files cannot be refactored/renamed, moved, or deleted.
On step 4, here is the error details:
An exception has been caught while processing the refactoring 'Delete'.
Reason: Problems encountered while deleting resources.
From Error Log:
Thu Jul 29 14:48:14 EDT 2010
Could not delete 'C:\Users\gkaplan\Documents\Workspace\TestProject\WebContent \WEB-INF\NewFile.xml'.
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.internalDel eteFile(ResourceTree.java:304)
at org.eclipse.core.internal.resources.ResourceTree.standardDel eteFile(ResourceTree.java:785)
at org.eclipse.core.internal.resources.Resource.unprotectedDele te(Resource.java:1934)
at org.eclipse.core.internal.resources.Resource.delete(Resource .java:786)
at org.eclipse.ltk.core.refactoring.resource.DeleteResourceChan ge.perform(DeleteResourceChange.java:138)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com positeChange.java:278)
at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV alidationStateChange.access$0(DynamicValidationStateChange.j ava:1)
at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV alidationStateChange$1.run(DynamicValidationStateChange.java :98)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio n(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1975)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV alidationStateChange.perform(DynamicValidationStateChange.ja va:101)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com positeChange.java:278)
at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV alidationStateChange.access$0(DynamicValidationStateChange.j ava:1)
at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV alidationStateChange$1.run(DynamicValidationStateChange.java :98)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio n(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1975)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV alidationStateChange.perform(DynamicValidationStateChange.ja va:101)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com positeChange.java:278)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.ru n(PerformChangeOperation.java:258)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1975)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.exec uteChange(PerformChangeOperation.java:306)
at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOpera tion.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.WorkbenchRunnableAda pter.run(WorkbenchRunnableAdapter.java:87)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
Contains: Could not delete: C:\Users\gkaplan\Documents\Workspace\TestProject\WebContent\ WEB-INF\NewFile.xml.
|
|
|
Re: Unable to delete/move files after opening [message #550716 is a reply to message #550287] |
Wed, 04 August 2010 07:59 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
Gerry Kaplan wrote:
> This most frequently occurs with XML files but I don't think it is
> limited to just them. I've even removed Oxygen XML editor from my
> configuration thinking that perhaps it was holding a lock, but it had
> no effect.
>
> Using Helios for JEE on Windows 7.
>
> 1. Under WEB-INF, I will right click, create a new XML file.
> 2. In the XML editor, I just add a root element <hello/>
> 3. Save the file and then close it.
> 4. Try and delete it. FAIL.
> 5. Close the project, and re-open; try to delete. FAIL.
> 6. Close the project and delete from Windows: FAIL.
> 7. Open the project and delete from Windows: SUCCEED
>
> Does anyone know about this problem? It is VERY troublesome, as often
> files cannot be refactored/renamed, moved, or deleted.
You should file a bug report against the XML Editor provider.
Dani
>
> On step 4, here is the error details:
>
> An exception has been caught while processing the refactoring 'Delete'.
>
> Reason: Problems encountered while deleting resources.
>
> From Error Log:
>
> Thu Jul 29 14:48:14 EDT 2010
> Could not delete
> 'C:\Users\gkaplan\Documents\Workspace\TestProject\WebContent
> \WEB-INF\NewFile.xml'.
>
> 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.internalDel
> eteFile(ResourceTree.java:304)
> at org.eclipse.core.internal.resources.ResourceTree.standardDel
> eteFile(ResourceTree.java:785)
> at org.eclipse.core.internal.resources.Resource.unprotectedDele
> te(Resource.java:1934)
> at org.eclipse.core.internal.resources.Resource.delete(Resource
> .java:786)
> at org.eclipse.ltk.core.refactoring.resource.DeleteResourceChan
> ge.perform(DeleteResourceChange.java:138)
> at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com
> positeChange.java:278)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange.access$0(DynamicValidationStateChange.j ava:1)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange$1.run(DynamicValidationStateChange.java :98)
> at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio
> n(BatchOperation.java:39)
> at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod
> elOperation.java:728)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.
> java:1975)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange.perform(DynamicValidationStateChange.ja va:101)
> at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com
> positeChange.java:278)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange.access$0(DynamicValidationStateChange.j ava:1)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange$1.run(DynamicValidationStateChange.java :98)
> at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio
> n(BatchOperation.java:39)
> at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod
> elOperation.java:728)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.
> java:1975)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange.perform(DynamicValidationStateChange.ja va:101)
> at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com
> positeChange.java:278)
> at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.ru
> n(PerformChangeOperation.java:258)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.
> java:1975)
> at org.eclipse.ltk.core.refactoring.PerformChangeOperation.exec
> uteChange(PerformChangeOperation.java:306)
> at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOpera
> tion.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.WorkbenchRunnableAda
> pter.run(WorkbenchRunnableAdapter.java:87)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.
> run(ModalContext.java:121)
> Contains: Could not delete:
> C:\Users\gkaplan\Documents\Workspace\TestProject\WebContent\
> WEB-INF\NewFile.xml.
>
|
|
| |
Re: Unable to delete/move files after opening [message #550819 is a reply to message #550807] |
Wed, 04 August 2010 12:35 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
Go to https://bugs.eclipse.org/bugs/ , get an account, file a bug.
Remember to check if this is a known bug first.
Cheers,
Steffen
On 04/08/2010 13:10, Gerry Kaplan wrote:
> This is happening with HTML files too. Yesterday, I created an empty
> HTML file, opened it up, then attempted to delete it - same error.
> Then, I closed the file and tried to delete it - failed. Then I closed
> the project, re-opened the project, and was able to delete it.
>
> I don't know how to file a bug report for Eclipse. If you can point me
> in the right direction, I will file the bug report. This problem has
> existed for several versions of Eclipse - definitely in Ganymede as
> well, because I remember that this was one of my main motivators for
> upgrading each time. I've also read on the net that some others have
> had this problem too.
>
> Thanks.
|
|
|
Re: Unable to delete/move files after opening [message #550820 is a reply to message #550819] |
Wed, 04 August 2010 12:42 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
Steffen Zschaler wrote:
> Go to https://bugs.eclipse.org/bugs/ , get an account, file a bug.
That's the wrong URL to report bugs for the Oxygen editor.
Dani
> Remember to check if this is a known bug first.
>
> Cheers,
>
> Steffen
>
> On 04/08/2010 13:10, Gerry Kaplan wrote:
>> This is happening with HTML files too. Yesterday, I created an empty
>> HTML file, opened it up, then attempted to delete it - same error.
>> Then, I closed the file and tried to delete it - failed. Then I
>> closed the project, re-opened the project, and was able to delete it.
>>
>> I don't know how to file a bug report for Eclipse. If you can point
>> me in the right direction, I will file the bug report. This problem
>> has existed for several versions of Eclipse - definitely in Ganymede
>> as well, because I remember that this was one of my main motivators
>> for upgrading each time. I've also read on the net that some others
>> have had this problem too.
>>
>> Thanks.
|
|
|
Re: Unable to delete/move files after opening [message #550859 is a reply to message #550820] |
Wed, 04 August 2010 14:02 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
Sorry, must have missed the bit were it said that this is Oxygen specific.
Steffen
On 04/08/2010 13:42, Daniel Megert wrote:
> Steffen Zschaler wrote:
>> Go to https://bugs.eclipse.org/bugs/ , get an account, file a bug.
> That's the wrong URL to report bugs for the Oxygen editor.
>
> Dani
>> Remember to check if this is a known bug first.
>>
>> Cheers,
>>
>> Steffen
>>
>> On 04/08/2010 13:10, Gerry Kaplan wrote:
>>> This is happening with HTML files too. Yesterday, I created an empty
>>> HTML file, opened it up, then attempted to delete it - same error.
>>> Then, I closed the file and tried to delete it - failed. Then I
>>> closed the project, re-opened the project, and was able to delete it.
>>>
>>> I don't know how to file a bug report for Eclipse. If you can point
>>> me in the right direction, I will file the bug report. This problem
>>> has existed for several versions of Eclipse - definitely in Ganymede
>>> as well, because I remember that this was one of my main motivators
>>> for upgrading each time. I've also read on the net that some others
>>> have had this problem too.
>>>
>>> Thanks.
|
|
| | | |
Re: Unable to delete/move files after opening [message #550884 is a reply to message #550865] |
Wed, 04 August 2010 14:32 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
Gerry Kaplan wrote:
> Just created a TestProject, added an HTML file,
Normally, adding a new file opens an editor. Is that the case here too?
If so, which editor (it's the one with the bullet in the 'Open With'
context menu)?
Dani
> then immediately tried to delete it, and got the same problem. The
> project is not under source code control, and this has nothing to with
> XML>
>
>
> Problems encountered while deleting resources.
> Could not delete
> 'C:\Users\gkaplan\Documents\Workspace\TestProject\WebContent \Test.html'.
> Problems encountered while deleting files.
> Could not delete:
> C:\Users\gkaplan\Documents\Workspace\TestProject\WebContent\ Test.html.
>
> eclipse.buildId=I20100608-0911
> java.version=1.6.0_21
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.jee.product
> Command-line arguments: -os win32 -ws win32 -arch x86 -product
> org.eclipse.epp.package.jee.product
>
>
> Error
> Wed Aug 04 10:15:12 EDT 2010
> Could not delete
> 'C:\Users\gkaplan\Documents\Workspace\TestProject\WebContent \Test.html'.
>
> 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.internalDel
> eteFile(ResourceTree.java:304)
> at org.eclipse.core.internal.resources.ResourceTree.standardDel
> eteFile(ResourceTree.java:785)
> at org.eclipse.core.internal.resources.Resource.unprotectedDele
> te(Resource.java:1934)
> at org.eclipse.core.internal.resources.Resource.delete(Resource
> .java:786)
> at org.eclipse.ltk.core.refactoring.resource.DeleteResourceChan
> ge.perform(DeleteResourceChange.java:138)
> at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com
> positeChange.java:278)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange.access$0(DynamicValidationStateChange.j ava:1)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange$1.run(DynamicValidationStateChange.java :98)
> at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio
> n(BatchOperation.java:39)
> at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod
> elOperation.java:728)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.
> java:1975)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange.perform(DynamicValidationStateChange.ja va:101)
> at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com
> positeChange.java:278)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange.access$0(DynamicValidationStateChange.j ava:1)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange$1.run(DynamicValidationStateChange.java :98)
> at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio
> n(BatchOperation.java:39)
> at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod
> elOperation.java:728)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.
> java:1975)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
> at org.eclipse.jdt.internal.corext.refactoring.changes.DynamicV
> alidationStateChange.perform(DynamicValidationStateChange.ja va:101)
> at org.eclipse.ltk.core.refactoring.CompositeChange.perform(Com
> positeChange.java:278)
> at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.ru
> n(PerformChangeOperation.java:258)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.
> java:1975)
> at org.eclipse.ltk.core.refactoring.PerformChangeOperation.exec
> uteChange(PerformChangeOperation.java:306)
> at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOpera
> tion.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.WorkbenchRunnableAda
> pter.run(WorkbenchRunnableAdapter.java:87)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.
> run(ModalContext.java:121)
> Contains: Could not delete:
> C:\Users\gkaplan\Documents\Workspace\TestProject\WebContent\ Test.html.
>
>
>
|
|
| | | |
Goto Forum:
Current Time: Sat Oct 19 16:42:13 GMT 2024
Powered by FUDForum. Page generated in 0.04100 seconds
|