These are chat archives for ceylon/ceylon-ide-eclipse

24th
Jun 2016
Bastien Jansen
@bjansen
Jun 24 2016 12:36
suddenly my editor became all white, except for line numbers which scroll as expected
I see this in the logs, but I'm not sure it's related
!MESSAGE Exception while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/ElementContainer/children/ADD] {ChangedElement=org.eclipse.e4.ui.model.application.ui.menu.impl.PopupMenuImpl@6e3d86a0 (elementId: #TextEditorContext, tags: [menuContribution:popup, popup:#TextEditorContext, popup:com.redhat.ceylon.eclipse.ui.editor.EditorContext, popup:#AbstractTextEditorContext], contributorURI: null) (widget: Menu {Navigate     ⌥⌘V, Open W&ith, Sho&w In       ⌥⌘W, |, Find    ⌥⌘F, |, Source  ⌥⌘S, |, Wa&tch, Retrieve Context, Explore, I&mport from Repository..., |, Pre&ferences...}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer@15a6a91f, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (label: null, iconURI: null, tooltip: null, mnemonics: null) (enabled: true) (context: popup:#TextEditorContext, variables: null), org.eclipse.e4.data={ChangedElement=org.eclipse.e4.ui.model.application.ui.menu.impl.PopupMenuImpl@6e3d86a0 (elementId: #TextEditorContext, tags: [menuContribution:popup, popup:#TextEditorContext, popup:com.redhat.ceylon.eclipse.ui.editor.EditorContext, popup:#AbstractTextEditorContext], contributorURI: null) (widget: Menu {Navigate        ⌥⌘V, Open W&ith, Sho&w In       ⌥⌘W, |, Find    ⌥⌘F, |, Source  ⌥⌘S, |, Wa&tch, Retrieve Context, Explore, I&mport from Repository..., |, Pre&ferences...}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer@15a6a91f, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (label: null, iconURI: null, tooltip: null, mnemonics: null) (enabled: true) (context: popup:#TextEditorContext, variables: null), AttName=children, EventType=ADD, Position=21, Widget=Menu {Navigate   ⌥⌘V, Open W&ith, Sho&w In       ⌥⌘W, |, Find    ⌥⌘F, |, Source  ⌥⌘S, |, Wa&tch, Retrieve Context, Explore, I&mport from Repository..., |, Pre&ferences...}, NewValue=org.eclipse.e4.ui.model.application.ui.menu.impl.MenuSeparatorImpl@5afb094d (elementId: sep9, tags: [], contributorURI: null) (widget: null, renderer: org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer@15a6a91f, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (label: null, iconURI: null, tooltip: null, mnemonics: null)}, AttName=children, EventType=ADD, Position=21, Widget=Menu {Navigate ⌥⌘V, Open W&ith, Sho&w In       ⌥⌘W, |, Find    ⌥⌘F, |, Source  ⌥⌘S, |, Wa&tch, Retrieve Context, Explore, I&mport from Repository..., |, Pre&ferences...}, NewValue=org.eclipse.e4.ui.model.application.ui.menu.impl.MenuSeparatorImpl@5afb094d (elementId: sep9, tags: [], contributorURI: null) (widget: null, renderer: org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer@15a6a91f, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (label: null, iconURI: null, tooltip: null, mnemonics: null)} to handler org.eclipse.e4.ui.internal.di.UIEventObjectSupplier$UIEventHandler@20e9cc60
!STACK 0
com.redhat.ceylon.compiler.java.language.EnumeratedTypeError: Supposedly exhaustive switch was not exhaustive
        at com.redhat.ceylon.ide.common.util.nodes_.nameProposals$canonical$(nodes.ceylon:656)
        at com.redhat.ceylon.ide.common.util.nodes_.nameProposals(nodes.ceylon:640)
        at com.redhat.ceylon.eclipse.util.Nodes.nameProposals(Nodes.java:347)
        at com.redhat.ceylon.eclipse.util.Nodes.nameProposals(Nodes.java:344)
        at com.redhat.ceylon.eclipse.code.refactor.EclipseExtractFunctionRefactoring.<init>(EclipseExtractFunctionRefactoring.java:67)
        at com.redhat.ceylon.eclipse.code.refactor.refactorJ2C.newExtractFunctionRefactoring(refactorJ2C.java:27)
        at com.redhat.ceylon.eclipse.code.refactor.RefactorMenuItems.getItems(RefactorMenuItems.java:94)
        at com.redhat.ceylon.eclipse.code.refactor.RefactorMenuItems.getContributionItems(RefactorMenuItems.java:48)
        at org.eclipse.ui.actions.CompoundContributionItem.getContributionItemsToFill(CompoundContri
Gavin King
@gavinking
Jun 24 2016 12:42
yes this has been happening lately
Bastien Jansen
@bjansen
Jun 24 2016 12:43
also with blank editors?
Gavin King
@gavinking
Jun 24 2016 12:43
i believe it’s because ceylon-common tends to throw AssertionErrors for conditions which previously resulted in caught NPEs