Print out Scala worksheet results in interactive mode in IntelliJ -


for reason, intermediate values aren't being printed out in repl console (right hand side of worksheet)

for instance, have:

object test {   val obj = new myobject(1)   obj.value  }  class myobject(x: int) {   def value = x } 

in repl results, following:

defined module test . . . defined class myobject 

however, don't of intermediate results, such when evaluate x.value

i expect like:

> myobject@14254345 > 1  

after x.value

any reason why isn't printing out?

what ended working me in case (and might particular intellij 14, since i've seen working other way in eclipse) added class inside object block, this:

object test {   val obj = new myobject(1)   obj.value     class myobject(x: int) {    def value = x   } } 

this forced repl instance inside worksheet auto-evalute result , print them out on right hand side.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -