Aladdin - Scala Bugtracking
[#544] project: eclipse-plugin priority: low category: bug
submitter assigned to status date submitted
Iulian Sean open 2006-03-10 09:50:02.0
subject null pointer exception when activating view
code
I just open Eclipse, and a dialog box appears saying an error appeared while activatin the view. Might be a bug in the compiler, not the plugin... 
what happened
Here's .metadata/.log:
!ENTRY ch.epfl.lamp.sdt.core 4 4 2006-03-10 09:46:18.892
!MESSAGE Presentation compiler error
!STACK 0
java.lang.Error: head of empty list
        at scala.Predef$.error(Predef.scala:139)
        at scala.Nil$.head(List.scala:1094)
        at scala.Nil$.head(List.scala:1092)
        at scala.tools.nsc.symtab.Types$class.isSubArgs$0(Types.scala:1562)
        at scala.tools.nsc.symtab.Types$class.isSubType0(Types.scala:1566)
        at scala.tools.nsc.symtab.SymbolTable.isSubType0(SymbolTable.scala:10)
        at scala.tools.nsc.symtab.Types$class.isSubType(Types.scala:1531)
        at scala.tools.nsc.symtab.SymbolTable.isSubType(SymbolTable.scala:10)
        at scala.tools.nsc.symtab.Types$Type.$less$colon$less(Types.scala:231)
        at scala.tools.nsc.typechecker.Infer$Inferencer.isCompatible(Infer.scala:258)
        at scala.tools.nsc.typechecker.Typers$Typer.typedImplicit(Typers.scala:1553)
        at scala.tools.nsc.typechecker.Typers$Typer.searchImplicit$0(Typers.scala:1595)
        at scala.tools.nsc.typechecker.Typers$Typer.inferImplicit(Typers.scala:1635)
        at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$inferView(Typers.s\
cala:55)
        at scala.tools.nsc.typechecker.Typers$Typer.inferView(Typers.scala:64)
        at scala.tools.nsc.typechecker.Typers$Typer.adaptToName(Typers.scala:465)
        at scala.tools.nsc.typechecker.Typers$Typer.typedSelect$0(Typers.scala:1016)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1409)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1343)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer.completeParentType(Typers.scala:475)
        at scala.tools.nsc.typechecker.Typers$Typer.parentTypes(Typers.scala:517)
        at scala.tools.nsc.typechecker.Namers$Namer.templateSig(Namers.scala:385)
        at scala.tools.nsc.typechecker.Namers$Namer.classSig(Namers.scala:397)
        at scala.tools.nsc.typechecker.Namers$Namer.liftedTry0$0(Namers.scala:465)
        at scala.tools.nsc.typechecker.Namers$Namer.scala$tools$nsc$typechecker$Namers$Namer$$typeSig(Namers.sca\
la:461)
        at scala.tools.nsc.typechecker.Namers$Namer$$anon$0.complete(Namers.scala:308)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:342)
        at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:415)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1142)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:904)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:894)
        at scala.List$.loop$0(List.scala:244)
        at scala.List$.mapConserve(List.scala:261)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:894)
        at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:804)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1203)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:1529)
        at scala.tools.nsc.typechecker.Namers$Namer.liftedTry0$0(Namers.scala:484)
        at scala.tools.nsc.typechecker.Namers$Namer.scala$tools$nsc$typechecker$Namers$Namer$$typeSig(Namers.sca\
la:461)
        at scala.tools.nsc.typechecker.Namers$Namer$$anon$3.complete(Namers.scala:325)
        at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:342)
        at scala.tools.nsc.symtab.Symbols$Symbol.tpe(Symbols.scala:318)
        at scala.tools.nsc.ast.Trees$class.DefDef(Trees.scala:249)
        at scala.tools.nsc.Global.DefDef(Global.scala:30)
        at scala.tools.nsc.typechecker.Typers$Typer.addGetterSetter(Typers.scala:613)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:651)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:651)
        at scala.List.flatMap(List.scala:933)
        at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:651)
        at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:600)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1154)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1197)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:904)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:894)
        at scala.List$.loop$0(List.scala:244)
        at scala.List$.mapConserve(List.scala:261)
        at scala.List$.loop$0(List.scala:248)
        at scala.List$.mapConserve(List.scala:261)
        at scala.List$.loop$0(List.scala:248)
        at scala.List$.mapConserve(List.scala:261)
        at scala.List$.loop$0(List.scala:248)
        at scala.List$.mapConserve(List.scala:261)
        at scala.List$.loop$0(List.scala:248)
        at scala.List$.mapConserve(List.scala:261)
        at scala.List$.loop$0(List.scala:248)
        at scala.List$.mapConserve(List.scala:261)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:894)
        at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:651)
        at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:589)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1151)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1197)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:904)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:894)
        at scala.List$.loop$0(List.scala:244)
        at scala.List$.mapConserve(List.scala:261)
        at scala.List$.loop$0(List.scala:248)
        at scala.List$.mapConserve(List.scala:261)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:894)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1147)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:904)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:894)
        at scala.List$.loop$0(List.scala:244)
        at scala.List$.mapConserve(List.scala:261)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:894)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1147)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:904)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:894)
        at scala.List$.loop$0(List.scala:244)
        at scala.List$.mapConserve(List.scala:261)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:894)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1147)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:904)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:894)
        at scala.List$.loop$0(List.scala:244)
        at scala.List$.mapConserve(List.scala:261)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:894)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1147)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:904)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:894)
        at scala.List$.loop$0(List.scala:244)
        at scala.List$.mapConserve(List.scala:261)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:894)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1147)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:904)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$41.apply(Typers.scala:894)
        at scala.List$.loop$0(List.scala:244)
        at scala.List$.mapConserve(List.scala:261)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:894)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1147)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1472)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1498)
        at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$1.apply(Analyzer.scala:39)
        at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:207)
        at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:196)
        at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:196)
        at scala.Iterator$class.foreach(Iterator.scala:264)
        at scala.collection.mutable.ListBuffer$$anon$0.foreach(ListBuffer.scala:216)
        at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:196)
        at scala.tools.nsc.Global$Run.compileSources(Global.scala:421)
        at ch.epfl.lamp.sdt.build.ScalaCompilerManager$SemanticCompiler.unitFor(ScalaCompilerManager.java:319)
        at ch.epfl.lamp.sdt.build.ScalaCompilerManager$SemanticCompiler.tokensFor(ScalaCompilerManager.java:335)\

        at ch.epfl.lamp.sdt.core.ScalaProject.refreshTokens(ScalaProject.java:151)
        at ch.epfl.lamp.sdt.ui.actions.HighlightAction.run(HighlightAction.java:91)
        at ch.epfl.lamp.sdt.ui.actions.HighlightAction.run(HighlightAction.java:77)
        at ch.epfl.lamp.sdt.ui.actions.HighlightAction$1.run(HighlightAction.java:61)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:360)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:305)
        at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:453)
        at ch.epfl.lamp.sdt.ui.actions.HighlightAction.run(HighlightAction.java:66)
        at ch.epfl.lamp.sdt.ui.scalaeditor.ScalaEditor$1.focusGained(ScalaEditor.java:194)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:105)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1083)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1064)
        at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2528)
        at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:1937)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1402)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3698)
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5018)
        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1062)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1344)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2741)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1762)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1726)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:397)
        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:109)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:9\
2)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
        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:585)
        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)

!ENTRY ch.epfl.lamp.sdt.core 4 4 2006-03-10 09:46:18.979
!MESSAGE No message
!STACK 0
java.lang.NullPointerException
        at ch.epfl.lamp.sdt.ui.scalaeditor.OverrideIndicatorManager.refresh(OverrideIndicatorManager.java:68)
        at ch.epfl.lamp.sdt.ui.actions.HighlightAction.run(HighlightAction.java:105)
        at ch.epfl.lamp.sdt.ui.actions.HighlightAction.run(HighlightAction.java:77)
        at ch.epfl.lamp.sdt.ui.actions.HighlightAction$1.run(HighlightAction.java:61)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:360)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:305)
        at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:453)
        at ch.epfl.lamp.sdt.ui.actions.HighlightAction.run(HighlightAction.java:66)
        at ch.epfl.lamp.sdt.ui.scalaeditor.ScalaEditor$1.focusGained(ScalaEditor.java:194)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:105)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1083)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1064)
        at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2528)
        at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:1937)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1402)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3698)
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5018)
        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1062)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1344)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2741)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1762)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1726)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:397)
        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:109)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:9\
2)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
        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:585)
        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)
what expected
[back to overview]
Changes of this bug report