Aladdin - Scala Bugtracking
[#573] project: compiler priority: high category: bug
submitter assigned to status date submitted
Sean _ noise 2006-04-24 16:23:32.0
subject more presentation compiler crashes
code
package test;


class Foo {
  def myfunc = 10;
  myfunc();
}
what happened
Note that the code is incorrect because myfunc is called is empty params. Exception when presentation compiler i\
s opened on Foo.scala the first time:

scala.MatchError: {
  ((eta$1: scala.Boolean) => scala.this.Predef.boolean2Boolean(eta$1)).apply(new remote)
}.()
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1306)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1606)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1632)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$43.apply(Typers.scala:960)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$43.apply(Typers.scala:950)
	at scala.List$.loop$0(List.scala:232)
	at scala.List$.mapConserve(List.scala:249)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:950)
	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:688)
	at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:626)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1278)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1606)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1632)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$43.apply(Typers.scala:960)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$43.apply(Typers.scala:950)
	at scala.List$.loop$0(List.scala:232)
	at scala.List$.mapConserve(List.scala:249)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:950)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1274)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1606)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1632)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$1.apply(Analyzer.scala:38)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:213)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:202)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:202)
	at scala.Iterator$class.foreach(Iterator.scala:285)
	at scala.collection.mutable.ListBuffer$$anon$0.foreach(ListBuffer.scala:216)
	at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:202)
	at scala.tools.nsc.Global$Run.compileSources(Global.scala:432)
	at ch.epfl.lamp.sdt.build.ScalaCompilerManager$SemanticCompiler.unitFor(ScalaCompilerManager.java:322)
	at ch.epfl.lamp.sdt.build.ScalaCompilerManager$SemanticCompiler.modelFor(ScalaCompilerManager.java:355)
	at ch.epfl.lamp.sdt.core.ScalaProject.outline(ScalaProject.java:143)
	at ch.epfl.lamp.sdt.ui.scalaeditor.ScalaEditor.outline(ScalaEditor.java:155)
	at ch.epfl.lamp.sdt.ui.scalaeditor.ScalaContentOutline.createControl(ScalaContentOutline.java:30)
	at org.eclipse.ui.views.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:133)
	at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:393)
	at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:731)
	at org.eclipse.ui.views.contentoutline.ContentOutline.partBroughtToTop(ContentOutline.java:206)
	at org.eclipse.ui.internal.PartListenerList$2.run(PartListenerList.java:86)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:816)
	at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
	at org.eclipse.ui.internal.PartListenerList.firePartBroughtToTop(PartListenerList.java:84)
	at org.eclipse.ui.internal.PartService.firePartBroughtToTop(PartService.java:87)
	at org.eclipse.ui.internal.WorkbenchPagePartList.firePartBroughtToTop(WorkbenchPagePartList.java:75)
	at org.eclipse.ui.internal.WorkbenchPagePartList.fireActiveEditorChanged(WorkbenchPagePartList.java:51)
	at org.eclipse.ui.internal.PartList.setActiveEditor(PartList.java:143)
	at org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1133)
	at org.eclipse.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1078)
	at org.eclipse.ui.internal.WorkbenchPage.partAdded(WorkbenchPage.java:1425)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:805)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDe5cr1p7-haX0Ror(EditorManager.java:705)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2390)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2325)
	at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2317)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2303)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2298)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2283)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:384)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:347)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:275)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
	at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:181)
	at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:165)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:267)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:243)
	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.jav\
a:296)
	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:650)
	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:780)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:816)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:778)
	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1009)
	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1108)
	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:244)
	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:239)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:278)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1074)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3158)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2838)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417)
	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:99)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
	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)
output from verbose:
lasspath = /home/mcdirmid/programs/java/jre/lib/ext/dnsns.jar:/home/mcdirmid/programs/java/jre/lib/ext/sunpkcs11\
.jar:/home/mcdirmid/programs/java/jre/lib/ext/sunjce_provider.jar:/home/mcdirmid/programs/java/jre/lib/ext/local\
edata.jar:/home/mcdirmid/runtime-workspace/test/bin
[loaded directory path /home/mcdirmid/programs/java/jre/lib/ext/dnsns.jar:::/home/mcdirmid/programs/java/jre/lib\
/ext/sunpkcs11.jar:::/home/mcdirmid/programs/java/jre/lib/ext/sunjce_provider.jar:::/home/mcdirmid/programs/java\
/jre/lib/ext/localedata.jar:::/home/mcdirmid/runtime-workspace/test/bin with_source=/home/mcdirmid/runtime-works\
pace/test/src:::/home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library.jar with_source=/home/m\
cdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar:::/home/mcdirmid/programs/java/jre/lib\
/rt.jar with_source=/home/mcdirmid/programs/java/src.zip:::/home/mcdirmid/programs/java/jre/lib/jsse.jar with_so\
urce=/home/mcdirmid/programs/java/src.zip:::/home/mcdirmid/programs/java/jre/lib/jce.jar with_source=/home/mcdir\
mid/programs/java/src.zip:::/home/mcdirmid/programs/java/jre/lib/charsets.jar with_source=/home/mcdirmid/program\
s/java/src.zip:::/home/mcdirmid/programs/java/jre/lib/ext/dnsns.jar:::/home/mcdirmid/programs/java/jre/lib/ext/s\
unpkcs11.jar:::/home/mcdirmid/programs/java/jre/lib/ext/sunjce_provider.jar:::/home/mcdirmid/programs/java/jre/l\
ib/ext/localedata.jar::: in 809ms]
[loaded directory path /home/mcdirmid/programs/java/jre/lib/rt.jar(java/) with_source=/home/mcdirmid/programs/ja\
va/src.zip(java/)::: with_source=/home/mcdirmid/programs/java/src.zip(java/)::: with_source=/home/mc\
dirmid/programs/java/src.zip(java/)::: with_source=/home/mcdirmid/programs/java/src.zip(java/)::: in 6ms]
\

[loaded directory path /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library.jar(scala/) with\
_source=/home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/)::: in 38ms]
[loaded directory path /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/) with_source=/home/mcdirmid/progra\
ms/java/src.zip(java/lang/)::: with_source=/home/mcdirmid/programs/java/src.zip(java/lang/)::: with_\
source=/home/mcdirmid/programs/java/src.zip(java/lang/)::: with_source=/home/mcdirmid/programs/java/src.zi\
p(java/lang/)::: in 80ms]
[loaded directory path /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library.jar(scala/runtim\
e/) with_source=/home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/runtime/)\
::: in 8ms]
[loaded directory path /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library.jar(scala/reflec\
t/) with_source=/home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/reflect/)\
::: in 12ms]
[loaded directory path /home/mcdirmid/programs/java/jre/lib/rt.jar(java/io/) with_source=/home/mcdirmid/programs\
/java/src.zip(java/io/)::: with_source=/home/mcdirmid/programs/java/src.zip(java/io/)::: with_source\
=/home/mcdirmid/programs/java/src.zip(java/io/)::: with_source=/home/mcdirmid/programs/java/src.zip(java/i\
o/)::: in 28ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Object.class) in 59ms]
[loaded directory path /home/mcdirmid/programs/java/jre/lib/rt.jar(java/util/) with_source=/home/mcdirmid/progra\
ms/java/src.zip(java/util/)::: with_source=/home/mcdirmid/programs/java/src.zip(java/util/)::: with_\
source=/home/mcdirmid/programs/java/src.zip(java/util/)::: with_source=/home/mcdirmid/programs/java/src.zi\
p(java/util/)::: in 62ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/String.class) in 130ms]
[loaded class file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library.jar(scala/Predef.cla\
ss) in 52ms]
[loaded directory path /home/mcdirmid/programs/java/jre/lib/rt.jar(java/rmi/) with_source=/home/mcdirmid/program\
s/java/src.zip(java/rmi/)::: with_source=/home/mcdirmid/programs/java/src.zip(java/rmi/)::: with_sou\
rce=/home/mcdirmid/programs/java/src.zip(java/rmi/)::: with_source=/home/mcdirmid/programs/java/src.zip(ja\
va/rmi/)::: in 9ms]
[parsing Foo.scala]
[parser in 104ms]
[loaded directory path /home/mcdirmid/runtime-workspace/test/bin/test with_source=/home/mcdirmid/runtime-workspa\
ce/test/src/test::: in 10ms]
[namer in 60ms]
[parsing ScalaObject.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Scala\
Object.scala) in 8ms]
[parsing Function1.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Funct\
ion1.scala) in 20ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Integer.class) in 29ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Number.class) in 1ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/io/Serializable.class) in 0ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Comparable.class) in 1ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/CharSequence.class) in 0ms]
[parsing Tuple9.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Tuple\
9.scala) in 17ms]
[parsing CaseClass.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/CaseC\
lass.scala) in 3ms]
[parsing Tuple8.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Tuple\
8.scala) in 7ms]
[parsing Tuple7.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Tuple\
7.scala) in 9ms]
[parsing Tuple6.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Tuple\
6.scala) in 5ms]
[parsing Tuple5.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Tuple\
5.scala) in 4ms]
[parsing Tuple4.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Tuple\
4.scala) in 5ms]
[parsing Tuple3.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Tuple\
3.scala) in 4ms]
[parsing Tuple2.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Tuple\
2.scala) in 4ms]
[parsing Array.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Array\
.scala) in 51ms]
[parsing Seq.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Seq.s\
cala) in 80ms]
[parsing PartialFunction.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Parti\
alFunction.scala) in 3ms]
[parsing Iterable.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Itera\
ble.scala) in 31ms]
[parsing Ordered.scala]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/Order\
ed.scala) in 6ms]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/remot\
e.scala) in 0ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Boolean.class) in 3ms]
[loaded source file /home/mcdirmid/workspace-new/ch.epfl.lamp.sdt.compiler/lib/scala-library-src.jar(scala/refle\
ct/Code.scala) in 0ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Double.class) in 12ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Float.class) in 5ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Long.class) in 31ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Character.class) in 38ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Short.class) in 6ms]
[loaded class file /home/mcdirmid/programs/java/jre/lib/rt.jar(java/lang/Byte.class) in 3ms]
what expected
[back to overview]
Changes of this bug report
Sean  edited on  2006-04-25 15:11:15.0
Sean  edited on  2006-04-25 15:11:30.0
Simplification
Sean  edited on  2006-04-25 15:14:12.0
Martin  edited on  2006-04-25 17:24:20.0