Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#502 inserting a break causes editor to creash when loading

open
nobody
None
5
2008-06-24
2008-06-24
Jon Pastore
No

Inserting a break at line 1083 causes the editor to no longer load the file.

I get the following error:

1.
java.lang.IllegalArgumentException: Argument not valid
2.
at org.eclipse.swt.SWT.error(SWT.java:3358)
3.
at org.eclipse.swt.SWT.error(SWT.java:3297)
4.
at org.eclipse.swt.SWT.error(SWT.java:3268)
5.
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7697)
6.
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:7791)
7.
at org.eclipse.jface.text.TextViewer.applyTextPresentation(TextViewer.java:4235)
8.
at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4287)
9.
at org.eclipse.jface.text.presentation.PresentationReconciler.applyTextRegionCollection(PresentationReconciler.java:573)
10.
at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:562)
11.
at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:558)
12.
at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.inputDocumentChanged(PresentationReconciler.java:118)
13.
at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2458)
14.
at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2507)
15.
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:521)
16.
at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:370)
17.
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:467)
18.
at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:2937)
19.
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2684)
20.
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
21.
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:367)
22.
at org.epic.perleditor.editors.PerlEditor.createPartControl(PerlEditor.java:85)
23.
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
24.
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
25.
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
26.
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
27.
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
28.
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
29.
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
30.
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
31.
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
32.
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
33.
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
34.
at org.eclipse.ui.internal.PartStack.add(PartStack.java:455)
35.
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
36.
at org.eclipse.ui.internal.PartStack.add(PartStack.java:441)
37.
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
38.
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
39.
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
40.
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
41.
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:822)
42.
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:721)
43.
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:682)
44.
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2593)
45.
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
46.
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
47.
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
48.
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
49.
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
50.
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
51.
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
52.
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
53.
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:98)
54.
at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:98)
55.
at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:125)
56.
at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:328)
57.
at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:679)
58.
at org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:434)
59.
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
60.
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
61.
at org.eclipse.core.runtime.Platform.run(Platform.java:858)
62.
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
63.
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
64.
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
65.
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
66.
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
67.
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
68.
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
69.
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
70.
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
71.
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
72.
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3180)
73.
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
74.
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
75.
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
76.
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
77.
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
78.
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
79.
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
80.
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
81.
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
82.
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
83.
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
84.
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
85.
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
86.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
87.
at java.lang.reflect.Method.invoke(Method.java:597)
88.
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
89.
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
90.
at org.eclipse.core.launcher.Main.run(Main.java:977)
91.
at org.eclipse.core.launcher.Main.main(Main.java:952)

file attached

Discussion

  • Jon Pastore
    Jon Pastore
    2008-06-24

    source that crashes editor

     
    Attachments
  • Jon Pastore
    Jon Pastore
    2008-06-24

    Logged In: YES
    user_id=1124823
    Originator: YES

    I was able to fix the problem by breaking up the print statement. I ended the print qq in the middle somewhere and and just started another ...I noticed scrolling down that the syntax highlighting was no longer working properly...

    I'm going to convert this horrible code into TT to avoid this in the future...big block of prints for javascript and html are just no acceptable anymore when we have TT