[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Reproduction recipe for failing package rename

From: Gerco Ballintijn <Gerco.Ballintijn_at_cwi.nl>
Date: 2004-04-03 14:55:57 CEST

I also tried the same recipe on Win XP and it gave the same result.
Has anybody else seen this behavior?

Gerco.

Gerco Ballintijn wrote:

> McClain Looney wrote:
>
>> ignore my previous email, i failed to notice the "package" bit, was
>> thinking of individual files. do log a bug on this, with a
>> reproduction recipe.
>>
>
> Scenario
> ========
>
> > cd /tmp
> > svnadmin create repo
> > mkdir testing
> > cd testing
> > eclipse
>
> Window -> Open Perspective -> Other -> SVN Repository Exploring -> OK
> New -> Repository Location -> Url=file:///tmp/repo -> Finish
> Window -> Open Perspective -> Other -> Java -> OK
> New -> Project -> Java -> Next -> Project name=RenameTest -> Finish
> RenameTest -> New -> Package -> Name=nl.cwi.sen.pkg -> Finish
> nl.cwi.sen.pkg -> New -> Class -> Name=hw -> main stub=1 -> Finish
>
> [add "hello world" println]
>
> Run -> Run as -> Java Application
>
> [program print "hello world"]
>
> RenameTest -> Team -> Share Project -> SVN -> Next -> Finish
> RenameTest -> Team -> Commit -> [add 3 resources] Yes -> \
> commit comment=project import -> OK
> nl.cwi.sen.pkg -> Refactor -> Rename -> new
> name=nl.cwi.sen.deliver.pkg -> \
> OK -> \
> [ Dialog box with "Problems encountered while moving resources."
> and Undo and Abort (don't work). Exit eclipse.
> ]
>
> > cat workspace/.metadata/.log
> !SESSION Apr 02, 2004 14:10:15.116
> ---------------------------------------------
> java.version=1.4.1_01
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> !ENTRY org.tigris.subversion.subclipse.core 4 4 Apr 02, 2004 14:10:15.116
> !MESSAGE Project {0} does not contain SVN folder meta-information.
> !ENTRY org.eclipse.jdt.core 4 966 Apr 02, 2004 14:15:27.664
> !MESSAGE Problems encountered while moving resources.
> !STACK 1
> org.eclipse.core.internal.resources.ResourceException: Problems
> encountered while moving resources.
> at
> org.eclipse.core.internal.resources.Resource.move(Resource.java:1135)
> at
> org.eclipse.core.internal.resources.Resource.move(Resource.java:1092)
> at
> org.eclipse.jdt.internal.core.CopyResourceElementsOperation.processPackageFragmentResource(CopyResourceElementsOperation.java:404)
>
> at
> org.eclipse.jdt.internal.core.CopyResourceElementsOperation.processElement(CopyResourceElementsOperation.java:339)
>
> at
> org.eclipse.jdt.internal.core.MultiOperation.processElements(MultiOperation.java:160)
>
> at
> org.eclipse.jdt.internal.core.CopyResourceElementsOperation.processElements(CopyResourceElementsOperation.java:353)
>
> at
> org.eclipse.jdt.internal.core.MultiOperation.executeOperation(MultiOperation.java:90)
>
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1567)
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:744)
>
> at org.eclipse.jdt.internal.core.JavaModel.rename(JavaModel.java:304)
> at
> org.eclipse.jdt.internal.core.PackageFragment.rename(PackageFragment.java:386)
>
> at
> org.eclipse.jdt.internal.corext.refactoring.changes.RenamePackageChange.doRename(RenamePackageChange.java:73)
>
> at
> org.eclipse.jdt.internal.corext.refactoring.AbstractJavaElementRenameChange.perform(AbstractJavaElementRenameChange.java:69)
>
> at
> org.eclipse.jdt.internal.corext.refactoring.CompositeChange.perform(CompositeChange.java:251)
>
> at
> org.eclipse.jdt.internal.corext.refactoring.changes.ValidationStateChange.access$1(ValidationStateChange.java:1)
>
> at
> org.eclipse.jdt.internal.corext.refactoring.changes.ValidationStateChange$2.run(ValidationStateChange.java:174)
>
> at
> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
>
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1567)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1586)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3164)
> at
> org.eclipse.jdt.internal.corext.refactoring.changes.ValidationStateChange.perform(ValidationStateChange.java:177)
>
> at
> org.eclipse.jdt.internal.corext.refactoring.CompositeChange.perform(CompositeChange.java:251)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:192)
>
> at
> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
>
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1567)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1586)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3164)
> at
> org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:222)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:159)
>
> at
> org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
>
> at
> org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1567)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1586)
> at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3164)
> at
> org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:42)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
> at
> org.eclipse.jdt.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:271)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.PerformRefactoringUtil.performRefactoring(PerformRefactoringUtil.java:35)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:410)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.UserInputWizardPage.performFinish(UserInputWizardPage.java:118)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:473)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:395)
>
> at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:263)
> at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:402)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:956)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1871)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1649)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:647)
> at org.eclipse.jface.window.Window.open(Window.java:627)
> at
> org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(RefactoringStarter.java:57)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.UserInterfaceStarter.activate(UserInterfaceStarter.java:112)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.reorg.RenameUserInterfaceStarter.activate(RenameUserInterfaceStarter.java:111)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.UserInterfaceStarter.run(UserInterfaceStarter.java:68)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.UserInterfaceStarter.run(UserInterfaceStarter.java:46)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.reorg.RenameRefactoringAction.run(RenameRefactoringAction.java:73)
>
> at
> org.eclipse.jdt.ui.refactoring.RenameSupport.openDialog(RenameSupport.java:94)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run(RenameJavaElementAction.java:156)
>
> at
> org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run(RenameJavaElementAction.java:78)
>
> at org.eclipse.jdt.ui.actions.RenameAction.run(RenameAction.java:116)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:212)
>
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:188)
>
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:536)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:956)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1871)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1649)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1550)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:257)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:104)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
> at org.eclipse.core.launcher.Main.run(Main.java:742)
> at org.eclipse.core.launcher.Main.main(Main.java:581)
> !ENTRY org.eclipse.core.resources 1 4 Apr 02, 2004 14:15:27.681
> !MESSAGE Problems encountered while moving resources.
> !SUBENTRY 1 org.eclipse.core.resources 1 4 Apr 02, 2004 14:15:27.682
> !MESSAGE Resource is out of sync with the file system:
> /RenameTest/nl/cwi/sen/pkg.
Received on Sat Apr 3 22:55:57 2004

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.