Argument not valid opening file in 3.2.0 M4

paragmehta wrote on Thu Mar  2 01:11:15 CET 2006:
Please help, started getting this error after upgrading Eclipse to M4. 
Tried re-installing the plugin.

Attempting to open any .pl or .pm file:

java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:3267)
	at org.eclipse.swt.SWT.error(SWT.java:3206)
	at org.eclipse.swt.SWT.error(SWT.java:3177)
	at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7703)
	at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7798)
	at org.eclipse.jface.text.TextViewer.applyTextPresentation(TextViewer.java:4235)
	at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4287)
	at org.eclipse.jface.text.presentation.PresentationReconciler.applyTextRegionCollection(PresentationReconciler.java:573)
	at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:562)
	at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:558)
	at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.inputDocumentChanged(PresentationReconciler.java:118)
	at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2440)
	at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2489)
	at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:502)
	at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:434)
	at org.epic.perleditor.editors.PerlEditor.createActions(PerlEditor.java:149)
	at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2661)
	at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
	at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:341)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:598)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:374)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:285)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:264)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1140)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1093)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1312)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1278)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:453)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:101)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:440)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:110)
paragmehta wrote on Mon Mar  6 19:04:58 CET 2006:
Possibly related.
Upgraded to 3.2.0 M5 + EPIC 3.0.12:

Preferences -> Perl EPIC -> Editor gives an error: Currently displayed page
contains invalid values.
rthill wrote on Sun Mar 12 20:18:32 CET 2006:
Error in 3.2M5a after upgrade:

Unable to create this part due to an internal error. Reason for the failure:
Argument not valid

java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:3333)
	at org.eclipse.swt.SWT.error(SWT.java:3272)
	at org.eclipse.swt.SWT.error(SWT.java:3243)
	at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7714)
	at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7809)
	at org.eclipse.jface.text.TextViewer.applyTextPresentation(TextViewer.java:4206)
	at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4258)
	at org.eclipse.jface.text.presentation.PresentationReconciler.applyTextRegionCollection(PresentationReconciler.java:573)
	at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:562)
	at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:558)
	at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.inputDocumentChanged(PresentationReconciler.java:118)
	at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2429)
	at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2478)
	at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:521)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:370)
	at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:453)
	at org.epic.perleditor.editors.PerlEditor.createActions(PerlEditor.java:128)
	at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2683)
	at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
	at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:343)
	at org.epic.perleditor.editors.PerlEditor.createPartControl(PerlEditor.java:605)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:591)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:367)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:555)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:285)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:266)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1140)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1093)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1312)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1278)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:453)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:101)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:440)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:110)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:214)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:204)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:805)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:705)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2390)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2325)
	at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2317)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2303)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2298)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2283)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:384)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:347)
	at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:98)
	at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:98)
	at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:120)
	at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:327)
	at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:673)
	at org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:432)
	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:780)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:816)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:778)
	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1009)
	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1108)
	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:244)
	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:239)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:278)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2907)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:99)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
	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.core.launcher.Main.invokeFramework(Main.java:338)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)


I've reinstalled the whole eclipse into a separate folder and downloaded
the plugin again, the above error is the result. I also get the same error
when pointing to Preferences-->Perl EPIC --> Editor.

Thanks for support.
jploski wrote on Thu Mar 16 21:18:24 CET 2006:
This is a known problem, 0.3.12 is not compatible with Eclipse 3.2.x. You
can try your luck with the current CVS version (or wait for the next release):

http://e-p-i-c.sourceforge.net/downloads/epic-devel.zip

Note that 3.2.0M5 has a bug which keeps the EPIC debugger from correctly
opening files located outside of the workspace.
steffancorley wrote on Thu Jun 22 11:56:50 MEST 2006:
I've just tried the latest EPIC build (2006/06/20) with 3.2RC4a.  This combination
has a really annoying bug:

1. Open a Perl script and type "while (<" (or anything else with a "<").
2. If a ">" is automatically inserted, delete it.
3. Eclipse runs out of memory and shuts down.

Steffan
steffancorley wrote on Thu Jun 22 12:23:06 MEST 2006:
Correction - it seems to be the sequence (<, without a following >.

Steffan
jploski wrote on Thu Jun 22 23:12:44 MEST 2006:
Thanks for reporting. This bug is not related to the used version of Eclipse.
It is fixed in the 06/22 build of epic-devel (now online).
steffancorley wrote on Wed Jul 12 18:08:09 MEST 2006:
I am still having a lot of trouble with the current development build (2006-07-07).
 Basically, the construct "print <<" often leads to problems.  Sometimes
Eclipse freezes completely immediately after I type the second "<".  Sometimes,
while in typing the name following the "<<", the cursor keeps moving back
one letter after each letter I type (I think this is normally when the name
is enclosed in double quotes).

Unfortunately, I haven't managed to narrow down when this happens, though
if I see this it is repeatable (i.e. if I quit Eclipse, restart and type
"print <<" in the same place in the same file, the problem will recur).

I don't use any of the Smart Typing options.

Steffan
jploski wrote on Thu Jul 13 08:12:55 MEST 2006:
I think I found the source of the freezing problem: the sequence print <<"
at the end of file would cause an infinite loop in the parser.

I cannot reproduce the other one with the jumping caret. Have you checked
your Error Log?

I committed the fixes to CVS and will upload an updated version of epic-devel
when sf.net shell service becomes available again.
steffancorley wrote on Thu Jul 13 12:42:40 MEST 2006:
Brilliant - thanks a lot for looking at this.

I'm not sure where my error log is.

I'm afraid I've got one more bug to report (I think I'm finding all these
bugs because EPIC is absolutely essential to my work - thanks again for
a brilliant plug-in).

The latest bug is that the EPIC editor will not open older revisions from
the SubVersion history - it will only open current revisions (i.e. those
that are actually on the file system).  I can open older revisions of non-perl
files in the text editor.  The detailed error message is:

java.lang.NullPointerException
	at org.epic.perleditor.editors.OccurrencesUpdater.markText(OccurrencesUpdater.java:225)
	at org.epic.perleditor.editors.OccurrencesUpdater.updateAnnotations(OccurrencesUpdater.java:386)
	at org.epic.perleditor.editors.OccurrencesUpdater.install(OccurrencesUpdater.java:76)
	at org.epic.perleditor.editors.PerlEditor.installAnnotationListener(PerlEditor.java:647)
	at org.epic.perleditor.editors.PerlEditor.createPartControl(PerlEditor.java:93)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2588)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
	at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2470)
	at org.tigris.subversion.subclipse.ui.actions.OpenRemoteFileAction$1.run(OpenRemoteFileAction.java:57)
	at org.tigris.subversion.subclipse.ui.repository.RepositoryManager.run(RepositoryManager.java:373)
	at org.tigris.subversion.subclipse.ui.actions.SVNAction$1.run(SVNAction.java:228)
	at org.tigris.subversion.subclipse.ui.actions.SVNAction$2.run(SVNAction.java:237)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:234)
	at org.tigris.subversion.subclipse.ui.actions.OpenRemoteFileAction.execute(OpenRemoteFileAction.java:37)
	at org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:58)
	at org.tigris.subversion.subclipse.ui.history.HistoryView$12.run(HistoryView.java:434)
	at org.tigris.subversion.subclipse.ui.history.HistoryView$28.handleEvent(HistoryView.java:789)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3164)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	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.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
steffancorley wrote on Thu Jul 13 12:47:29 MEST 2006:
I should mention that I'm using the subclipse plug-in to access the SubVersion
repository.  I have just tried this with a CVS repository and the built
in CVS tools and I get the same error.
jploski wrote on Thu Jul 13 19:23:45 MEST 2006:
This is now fixed as well, but I still can't upload to sf.net...
jploski wrote on Fri Jul 14 22:15:01 MEST 2006:
The version with fixes is now uploaded.
rondorn wrote on Sat Mar 18 01:49:15 CET 2006:
This is actually a rather pressing issue for me. I have a new MacBook Pro
Duo (intel Mac) and MUST run 3.2.0M5 in order to have a working Elipse on
my Mac. I will try the CVS tree, but any fixes would be GREATLY appreciated.

Thanks
rondorn wrote on Sat Mar 18 01:57:14 CET 2006:
Actually, yesterdays 3/16 build appears to resolve the problem.

Thanks for the suggestion.
rthill wrote on Sat Mar 18 18:10:32 CET 2006:
The devel build from 16/03/06 seems to be working on WinXP SP2 with Eclipse
3.2M5a.

Thanks for the great work on EPIC!
steffancorley wrote on Thu Jun 15 10:44:06 MEST 2006:
Is it possible to make a 3.2.0-compatible build available through the testing
site (or even update the stable version)?  Now 3.2.0 is nearly ready I'd
like to start using it, but would prefer to keep my plug-in management simple.

BTW, thank you for a brilliant plug-in - I use EPIC in my job on a daily
basis.

Steffan
walaci wrote on Tue Jul 11 05:59:55 MEST 2006:
I am still getting this same error with the zipped dev build posted above,
and Eclipse Version: 3.2.0
Build id: M20060629-1905. Windows XP SP2.

I am using Java 1.4.2_08.

Has anyone got a fix?
jploski wrote on Tue Jul 11 08:14:44 MEST 2006:
You cannot be getting the exact same error in epic-devel because the line
PerlEditor.java:149 (mentioned in the above stack trace) is no longer a
call to setDocument. I suspect that you did not install epic-devel properly
(follow the included README.txt). If you think otherwise, post your current
stack trace here.

Note: The above is an archived snapshot of a forum thread. Use the original thread at sf.net to post comments.