Bug 163720 - [projection] Editor broken in 3.3M3
Summary: [projection] Editor broken in 3.3M3
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-11-07 16:44 EST by Joerg Hohwiller CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments
Screenshot (170.39 KB, image/png)
2006-11-07 16:44 EST, Joerg Hohwiller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Hohwiller CLA 2006-11-07 16:44:13 EST
The editor seems to be broken in 3.3M3. This may or may not be a platform-specific issue. I am using linux-x68-gtk. From the stacktrace it has to do something with code-folding. The bug is reproduceable and occurs for every java-editor but not for other editors. I could not find a workaround. Even with a fresh workspace the error remained.
The problem did not go away when I switched back to 3.3M2 that was running okay before. I had to switch back to 3.2 which is affected by this issue at all.
Comment 1 Joerg Hohwiller CLA 2006-11-07 16:44:58 EST
Created attachment 53416 [details]
Screenshot
Comment 2 Joerg Hohwiller CLA 2006-11-07 16:45:31 EST
org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:84)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:72)
	at org.eclipse.jdt.internal.ui.text.folding.JavaFoldingStructureProviderRegistry.getCurrentFoldingProvider(JavaFoldingStructureProviderRegistry.java:100)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createSourceViewer(JavaEditor.java:1849)
	at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2801)
	at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
	at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:370)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:2836)
	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1563)
	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.PartPane.setVisible(PartPane.java:290)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
	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:1156)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1109)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1335)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:458)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:444)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:61)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:818)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:717)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:678)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2569)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2504)
	at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2496)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2481)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2476)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2461)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:295)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:169)
	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:195)
	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:176)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:268)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:244)
	at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart$6.open(JavaBrowsingPart.java:980)
	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:819)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:850)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:817)
	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1072)
	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1171)
	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1095)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3205)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2881)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1924)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1888)
	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:104)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:348)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:165)
	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.invokeFramework(Main.java:341)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:285)
	at org.eclipse.core.launcher.Main.run(Main.java:987)
	at org.eclipse.core.launcher.Main.main(Main.java:962)
Comment 3 Dani Megert CLA 2006-11-08 02:46:58 EST
Does it work with a fresh workspace? I suspect you installed a plug-in that installed a folding provider which is now missing.
Comment 4 Dani Megert CLA 2006-11-08 03:18:37 EST
Please check the .log for errors and attach it here. Did you install other plug-ins on-top of M3 that could cause this?

How did you install M3? Please try again by installing into a fresh location. If this doesn't fix the problem then zip and attach your workspace here. If you don't want to share your code then you can:
1. copy the workspace
2. delete all projects
3. delete history: .metadata\.plugins\org.eclipse.core.resources\.history
4. create a dummy Java project with a dummy CU
5. verify that the error is still there
6. zip and attach the workspace here
Comment 5 Dani Megert CLA 2006-11-09 02:08:53 EST
waiting for more info.
Comment 6 Joerg Hohwiller CLA 2006-11-19 17:17:53 EST
As I already told, the problem occured with a fresh workspace as well.
I will dig in my log the other day and reopen the issue when I find more details.
Comment 7 Dani Megert CLA 2007-06-22 09:59:36 EDT
Get rid of deprecated state.
Comment 8 Dani Megert CLA 2007-06-22 10:04:47 EDT
.