From d0d8b498b81e32506876079683489a7a219cee39 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 6 Jul 2011 15:51:21 +0000 Subject: Fixing two problems in Global.scala: crashes du... Fixing two problems in Global.scala: crashes during logs of import completions + interruprts at possibly inconsistent states. Review by dotta. --- src/compiler/scala/tools/nsc/interactive/Global.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/scala/tools/nsc/interactive/Global.scala b/src/compiler/scala/tools/nsc/interactive/Global.scala index 9e61e880c3..f89001c1fe 100644 --- a/src/compiler/scala/tools/nsc/interactive/Global.scala +++ b/src/compiler/scala/tools/nsc/interactive/Global.scala @@ -409,7 +409,7 @@ class Global(settings: Settings, reporter: Reporter, projectName: String = "") // ensure all loaded units are parsed for (s <- allSources; unit <- getUnit(s)) { - checkForMoreWork(NoPosition) + // checkForMoreWork(NoPosition) // disabled, as any work done here would be in an inconsistent state if (!unit.isUpToDate && unit.status != JustParsed) reset(unit) // reparse previously typechecked units. parseAndEnter(unit) serviceParsedEntered() @@ -609,7 +609,7 @@ class Global(settings: Settings, reporter: Reporter, projectName: String = "") debugLog("at pos "+pos+" was found: "+tree.getClass+" "+tree.pos.show) tree match { case Import(expr, _) => - debugLog("import found"+expr.tpe+" "+expr.tpe.members) + debugLog("import found"+expr.tpe+(if (expr.tpe == null) "" else " "+expr.tpe.members)) case _ => } if (stabilizedType(tree) ne null) { -- cgit v1.2.3