[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: Troubles loading source into the editor

I think I may have resolved my problem...

I found some php tags without a space between the start tag and the code:

<?if()...?>

I added a space and the editor loaded these files ok, syntax coloring is good:

<? if() ... ?>

Funny thing is that apache/php on my server was interpreting the code rejected by the editor correctly.




Richard Geddes wrote:
Hi,

I'm using PDT with Eclipse Version: 3.4.0 Build id: I20080617-2000 on Ubuntu Linux AMD64.

Originally, while stepping through code in the the debugger, sometimes an included/required file would not load giving the following message:

Could not open the editor: Argument not valid

the details***(see bottom of email):

I would close the tab and hit the "step" button once more, and the file would generally load ok.

Now, I'm getting this message more frequently, and sometimes, that little trick about closing the tab, does not work, and I'm spending more time trying to get the file to load than I'm spending debugging my code.

Also, the syntax coloring on the troublesome pages disappears, and the pages that won't load are consistent... ie, if the editor has a problem with a file, it does so consistently.

I have the Update set to update automatically, so I should have the latest. Any help with this problem would be greatly appreciated.

Regards,
Richard



***
java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:3761)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7914)
at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:6376)
at org.eclipse.jface.text.TextViewer.addPresentation(TextViewer.java:4442)
at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4521)


at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.applyTextRegionCollection(StructuredPresentationReconciler.java:1086)

at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.processDamage(StructuredPresentationReconciler.java:1061)

at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler$InternalListener.textChanged(StructuredPresentationReconciler.java:613)

at org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2650)
at org.eclipse.jface.text.TextViewer.invalidateTextPresentation(TextViewer.java:3270)


at org.eclipse.jface.text.TextViewer.initializeWidgetContents(TextViewer.java:3317)

at org.eclipse.jface.text.TextViewer.setVisibleDocument(TextViewer.java:3356)
at org.eclipse.jface.text.source.projection.ProjectionViewer.setVisibleDocument(ProjectionViewer.java:709)


at org.eclipse.jface.text.source.projection.ProjectionViewer.executeReplaceVisibleDocument(ProjectionViewer.java:770)

at org.eclipse.jface.text.source.projection.ProjectionViewer.replaceVisibleDocument(ProjectionViewer.java:758)

at org.eclipse.jface.text.source.projection.ProjectionViewer.reinitializeProjection(ProjectionViewer.java:1238)

at org.eclipse.jface.text.source.projection.ProjectionViewer.catchupWithProjectionAnnotationModel(ProjectionViewer.java:952)

at org.eclipse.jface.text.source.projection.ProjectionViewer.processCatchupRequest(ProjectionViewer.java:870)

at org.eclipse.jface.text.source.projection.ProjectionViewer$AnnotationModelListener.processModelChanged(ProjectionViewer.java:117)

at org.eclipse.jface.text.source.projection.ProjectionViewer$AnnotationModelListener.modelChanged(ProjectionViewer.java:109)

at org.eclipse.jface.text.source.AnnotationModel.fireModelChanged(AnnotationModel.java:614)

at org.eclipse.jface.text.source.AnnotationModel$InternalModelListener.modelChanged(AnnotationModel.java:261)

at org.eclipse.jface.text.source.AnnotationModel.fireModelChanged(AnnotationModel.java:614)

at org.eclipse.jface.text.source.AnnotationModel.fireModelChanged(AnnotationModel.java:580)

at org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations(ProjectionAnnotationModel.java:184)

at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP.update(Unknown Source)
at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP.initialize(Unknown Source)
at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP.handleProjectionEnabled(Unknown Source)
at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP$ProjectionListener.projectionEnabled(Unknown Source)
at org.eclipse.jface.text.source.projection.ProjectionViewer.fireProjectionEnabled(ProjectionViewer.java:480)


at org.eclipse.jface.text.source.projection.ProjectionViewer.enableProjection(ProjectionViewer.java:528)

at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1413)

at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation(StructuredTextViewer.java:595)

at org.eclipse.php.internal.ui.editor.PHPStructuredTextViewer.doOperation(Unknown Source)
at org.eclipse.wst.sse.ui.StructuredTextEditor.installProjectionSupport(StructuredTextEditor.java:2709)


at org.eclipse.wst.sse.ui.StructuredTextEditor.initializeSourceViewer(StructuredTextEditor.java:2653)

at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1587)

at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.createPartControl(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)


at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)

at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)

at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)


at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)

at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643)
at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:409)


at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:189)

at org.eclipse.dltk.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:44)

at org.eclipse.dltk.ui.actions.OpenAction.run(OpenAction.java:235)
at org.eclipse.dltk.ui.actions.OpenAction.run(OpenAction.java:216)
at org.eclipse.dltk.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:259)


at org.eclipse.dltk.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:235)

at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerActionGroup.handleOpen(ScriptExplorerActionGroup.java:295)

at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerPart$5.open(ScriptExplorerPart.java:660)

at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)


at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)

at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)

at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)


at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)


at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

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:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1212)