Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing Set() and press tab makes the REPL crash #5860

Closed
scabug opened this issue Jun 1, 2012 · 1 comment
Closed

Typing Set() and press tab makes the REPL crash #5860

scabug opened this issue Jun 1, 2012 · 1 comment
Assignees

Comments

@scabug
Copy link

scabug commented Jun 1, 2012

Open up the REPL type Set(), and press tab gives the following error.

Welcome to Scala version 2.10.0-M3 (OpenJDK 64-Bit Server VM, Java 1.7.0-u4-b228).
Type in expressions to have them evaluated.
Type :help for more information.

scala> Set()exception when typing $line2.$read.$iw.$iw.$intp()
exception when typing scala.runtime.ScalaRunTime.replStringOf($line2.$read.$iw.$iw.$intp(), 1000)
exception when typing "$intp: scala.tools.nsc.interpreter.IMain = ".+(scala.runtime.ScalaRunTime.replStringOf($line2.$read.$iw.$iw.$intp(), 1000))
exception when typing {
$read.$iw.$iw;
"$intp: scala.tools.nsc.interpreter.IMain = ".+(scala.runtime.ScalaRunTime.replStringOf($line2.$read.$iw.$iw.$intp(), 1000))
}
exception when typing private[this] val $print: String = {
$read.$iw.$iw;
"$intp: scala.tools.nsc.interpreter.IMain = ".+(scala.runtime.ScalaRunTime.replStringOf($line2.$read.$iw.$iw.$intp(), 1000))
}
exception when typing object $eval extends Object {
def (): $line2.$eval.type = {
$eval.super.();
()
};
lazy private[this] var $result: scala.tools.nsc.interpreter.IMain = _;
lazy def $result(): scala.tools.nsc.interpreter.IMain = {
$eval.this.$result = $line2.$read.$iw.$iw.$intp();
$eval.this.$result
};
private[this] val $print: String = {
$read.$iw.$iw;
"$intp: scala.tools.nsc.interpreter.IMain = ".+(scala.runtime.ScalaRunTime.replStringOf($line2.$read.$iw.$iw.$intp(), 1000))
};
def $print(): String = $eval.this.$print
}
exception when typing package $line2 {
object $eval extends Object {
def (): $line2.$eval.type = {
$eval.super.();
()
};
lazy private[this] var $result: scala.tools.nsc.interpreter.IMain = _;
lazy def $result(): scala.tools.nsc.interpreter.IMain = {
$eval.this.$result = $line2.$read.$iw.$iw.$intp();
$eval.this.$result
};
private[this] val $print: String = {
$read.$iw.$iw;
"$intp: scala.tools.nsc.interpreter.IMain = ".+(scala.runtime.ScalaRunTime.replStringOf($line2.$read.$iw.$iw.$intp(), 1000))
};
def $print(): String = $eval.this.$print
}
}

 while compiling:  <console>
   current phase:  erasure
 library version:  version 2.10.0-M3
compiler version:  version 2.10.0-M3

reconstructed args:

unhandled exception while transforming
error:
while compiling:
current phase: erasure
library version: version 2.10.0-M3
compiler version: version 2.10.0-M3
reconstructed args:

uncaught exception during compilation: java.lang.NullPointerException

@scabug
Copy link
Author

scabug commented Jun 1, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5860?orig=1
Reporter: Soren Mathiasen (sorenmat)
Affected Versions: 2.10.0-M3
Duplicates #6299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants