我想在Scala REPL中禁用截断字符串值.
以下线程建议输入settings.maxPrintString = 0:
不幸的是,这似乎不适用于Scala 2.9:
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_29).
Type in expressions to have them evaluated.
Type :help for more information.
scala> settings.maxPrintString = 0
<console>:10: error: not found: value settings
val $ires0 = settings.maxPrintString
^
<console>:7: error: not found: value settings
settings.maxPrintString = 0
^
Run Code Online (Sandbox Code Playgroud)
我需要导入一些东西吗?
我尝试了:power,这是settings可用的,但它似乎不支持maxPrintString:
scala> :power
** Power User mode enabled - BEEP BOOP SPIZ **
** …Run Code Online (Sandbox Code Playgroud)