Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » error: overlapping text edits while pyDev rename(using rename from the refactoring menu throws an error)
error: overlapping text edits while pyDev rename [message #1700011] Mon, 29 June 2015 15:52 Go to next message
wim de winter is currently offline wim de winterFriend
Messages: 4
Registered: June 2015
Junior Member
I am afraid I have updated Eclipse too eagerly. I have been working with Eclipse and pyDev for quite some time and often used the rename-refactoring. Last week I updated both (Help|check for updates) and since Rename allows me to enter the new identifier, but doesn't perform the rename for it crashes with an Internal Error (overlapping text edits). Last time I tried I could do just one succesfull rename after starting the IDE.

I don't know which Kepler versions these were, for I expected/hoped to solve the problem bby moving on to Mars, as I did today. However, the problem persisted. How can I get this useful refactoring back?

Now I have

eclipse.buildId=4.5.0.I20150603-2000
java.version=1.7.0_79
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -data file:/D:/Projects/EFIscen/ -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product


and pyDev 4.1.0.201505270

Error track:

java.lang.reflect.InvocationTargetException
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:420)
	at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:331)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:637)
	at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.performFinish(UserInputWizardPage.java:153)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:710)
	at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:455)
	at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:466)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
	at org.eclipse.jface.window.Window.open(Window.java:803)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:187)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:202)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:122)
	at com.python.pydev.refactoring.refactorer.Refactorer.rename(Refactorer.java:104)
	at com.python.pydev.refactoring.actions.PyRename.perform(PyRename.java:37)
	at org.python.pydev.editor.actions.refactoring.PyRefactorAction$Operation.execute(PyRefactorAction.java:68)
	at org.python.pydev.editor.actions.refactoring.PyRefactorAction$1.runInUIThread(PyRefactorAction.java:177)
	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:97)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4155)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3772)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
Caused by: org.eclipse.text.edits.MalformedTreeException: Overlapping text edits
	at org.eclipse.text.edits.TextEdit$InsertionComparator.compare(TextEdit.java:121)
	at java.util.Collections.indexedBinarySearch(Unknown Source)
	at java.util.Collections.binarySearch(Unknown Source)
	at org.eclipse.text.edits.TextEdit.computeInsertionIndex(TextEdit.java:796)
	at org.eclipse.text.edits.TextEdit.internalAdd(TextEdit.java:781)
	at org.eclipse.text.edits.TextEdit.addChildren(TextEdit.java:349)
	at com.python.pydev.refactoring.wizards.rename.TextEditCreation.fillEditsInDocChange(TextEditCreation.java:319)
	at com.python.pydev.refactoring.wizards.rename.TextEditCreation.createOtherFileChanges(TextEditCreation.java:218)
	at com.python.pydev.refactoring.wizards.rename.TextEditCreation.fillRefactoringChangeObject(TextEditCreation.java:157)
	at com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkFinalConditions(PyRenameEntryPoint.java:322)
	at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:224)
	at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:85)
	at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:121)
	at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:209)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
	at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Re: error: overlapping text edits while pyDev rename [message #1700050 is a reply to message #1700011] Mon, 29 June 2015 19:56 Go to previous messageGo to next message
wim de winter is currently offline wim de winterFriend
Messages: 4
Registered: June 2015
Junior Member
NB: I just discovered that the problem is specific to one workspace. Still I really want to solve it!
Re: error: overlapping text edits while pyDev rename [message #1700070 is a reply to message #1700011] Mon, 29 June 2015 23:29 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 06/29/2015 10:06 AM, wim de winter wrote:
> I am afraid I have updated Eclipse too eagerly. I have been working with
> Eclipse and pyDev for quite some time and often used the
> rename-refactoring. Last week I updated both (Help|check for updates)
> and since Rename allows me to enter the new identifier, but doesn't
> perform the rename for it crashes with an Internal Error (overlapping
> text edits). Last time I tried I could do just one succesfull rename
> after starting the IDE.
>
> I don't know which Kepler versions these were, for I expected/hoped to
> solve the problem bby moving on to Mars, as I did today. However, the
> problem persisted. How can I get this useful refactoring back?

PyDev isn't done by Eclipse, but by a third party. It could be that
there is latency in PyDev being updated specifically for Mars.

I know for certain that Luna works fine with PyDev. You could toss your
Mars in favor of Luna for a while. Or you could ask in stackoverflow.com
with appropriate tagging to draw attention to the problem.
Re: error: overlapping text edits while pyDev rename [message #1700105 is a reply to message #1700070] Tue, 30 June 2015 07:38 Go to previous messageGo to next message
wim de winter is currently offline wim de winterFriend
Messages: 4
Registered: June 2015
Junior Member
Thanks, Russell. Only since the problem shows up in both Kepler and Mars, I don't think that the actual version is the problem. After I tried another project and didn't see the problem, for the moment I am inclined to think the workspace must have to do with it.

[Updated on: Tue, 30 June 2015 07:38]

Report message to a moderator

Re: error: overlapping text edits while pyDev rename [message #1700937 is a reply to message #1700105] Wed, 08 July 2015 09:56 Go to previous message
wim de winter is currently offline wim de winterFriend
Messages: 4
Registered: June 2015
Junior Member
To finish this issue: I have found the cause and the solution. In the project properties (PyDev) under Python Path, somehow two source folders had become included, viz. myproject/ and myproject/src/ respectively. Obviously, the second is subfolder to the first one. Deleting the first one solved several problems, o,a. the rename issue and import problems.
Previous Topic:Compiling SCSS to CSS is so slow
Next Topic:Added Mars update site but 'No updates were found'
Goto Forum:
  


Current Time: Fri Apr 19 19:48:32 GMT 2024

Powered by FUDForum. Page generated in 0.09233 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top