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

REPL with Yreplclassbased - valueOfTerm returns None #8935

Closed
scabug opened this issue Oct 23, 2014 · 4 comments
Closed

REPL with Yreplclassbased - valueOfTerm returns None #8935

scabug opened this issue Oct 23, 2014 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Oct 23, 2014

After enabling Yreplclassbased, IMain.valueOfTerm() returns None.

    import scala.tools.nsc.interpreter._
    val repl = new IMain
    repl.settings.usejavacp.value = true
    repl.settings.Yreplclassbased.value = true
    repl.interpret("123") match {
      case IR.Success =>
        println(s"${repl.mostRecentVar} = ${repl.valueOfTerm(repl.mostRecentVar)}")
        assert(repl.valueOfTerm(repl.mostRecentVar).get == 123)
    }
@scabug
Copy link
Author

scabug commented Oct 23, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8935?orig=1
Reporter: Marcin Kielar (zorba128)
Affected Versions: 2.11.2

@scabug
Copy link
Author

scabug commented Feb 17, 2015

@som-snytt said:
Reflective access to the value is agnostic about the path to the value:

scala/scala#4311

@scabug
Copy link
Author

scabug commented Jun 17, 2016

@som-snytt
Copy link

The previous two closed PRs were attached to other issues. Now, for the charming third time, this issue gets its own PR. Except the PR has a rider for cleaned-up session tests.

scala/scala#5852

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

3 participants