History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17781
Type: Bug Bug
Status: Open Open
Assignee: Anton Makeev
Reporter: Gaetan Zoritchak
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Local History fail to revert a file in a removed directory

Created: 16 Apr 08 17:18   Updated: 16 Apr 08 17:22
Component/s: Local History

Environment: Windows XP,

Build: 7,757
Severity: High


 Description  « Hide
Due to my mistake of creating a class in a wrong source directory (a generated source directory) and after having completely removed the directory, I wanted to use the Local History to retrieved my code.

The local history showed the removed directories and files but a first "revert" on my file did nothing. The idea.log indicated this :

2008-04-16 14:57:15,093 [ 149704] ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 7.0.3 Build #7757
2008-04-16 14:57:15,093 [ 149704] ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_04
2008-04-16 14:57:15,093 [ 149704] ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2008-04-16 14:57:15,093 [ 149704] ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2008-04-16 14:57:15,093 [ 149704] ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2008-04-16 14:57:15,093 [ 149704] ERROR - com.intellij.ide.IdeEventQueue - Original exception:
java.lang.RuntimeException: entry 'target' already exists in 'D:/dev/watt/gwt'
at com.intellij.history.core.tree.DirectoryEntry.checkDoesNotExist(DirectoryEntry.java:4)
at com.intellij.history.core.tree.DirectoryEntry.addChild(DirectoryEntry.java:59)
at com.intellij.history.core.changes.DeleteChange.revertOn(DeleteChange.java:25)
at com.intellij.history.integration.revertion.ChangeRevertionVisitor.visit(ChangeRevertionVisitor.java:3)
at com.intellij.history.core.changes.DeleteChange.accept(DeleteChange.java:16)
at com.intellij.history.core.changes.SelectiveChangeVisitor.visit(SelectiveChangeVisitor.java:1)
at com.intellij.history.core.changes.ChangeVisitor.visit(ChangeVisitor.java:5)
at com.intellij.history.core.changes.DeleteChange.accept(DeleteChange.java:16)
at com.intellij.history.core.changes.ChangeSet.accept(ChangeSet.java:8)
at com.intellij.history.core.changes.ChangeList.accept(ChangeList.java:36)
at com.intellij.history.core.LocalVcs.accept(LocalVcs.java:41)
at com.intellij.history.core.ThreadSafeLocalVcs.accept(ThreadSafeLocalVcs.java:150)
at com.intellij.history.integration.revertion.DirectoryReverter.doRevert(DirectoryReverter.java:3)
at com.intellij.history.integration.revertion.Reverter$2.doRun(Reverter.java:2)
at com.intellij.history.utils.RunnableAdapter.run(RunnableAdapter.java:1)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:103)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:89)
at com.intellij.history.integration.IdeaGateway.a(IdeaGateway.java:45)
at com.intellij.history.integration.IdeaGateway.access$000(IdeaGateway.java:5)
at com.intellij.history.integration.IdeaGateway$1.run(IdeaGateway.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:98)
at com.intellij.history.integration.IdeaGateway.performCommandInsideWriteAction(IdeaGateway.java:25)
at com.intellij.history.integration.revertion.Reverter.revert(Reverter.java:25)

I then removed the directory indicated in the StackTrace and tried again. The result wasn't better. The Local History window showed a "Loading Files..." box witch never end on a "Scanning files.." task.

I had to kill idea...



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.