ILoop.break

114 views
Skip to first unread message

schone

unread,
Mar 24, 2012, 12:26:46 AM3/24/12
to simple-b...@googlegroups.com
Hello,

I'm using ILoop.break method from within my App object and for some reason the REPL thats invoked hangs.  I issue the first command and it does nothing.

Any ideas?

import scala.tools.nsc.interpreter.ILoop
import scala.tools.nsc.interpreter.NamedParam

Object MyConsole Extends App {
  class MyType { }

  ILoop.break[MyType](List())
}

Thanks!

-schone

Mark Harrah

unread,
Mar 24, 2012, 12:50:10 PM3/24/12
to simple-b...@googlegroups.com

Thanks for the self-contained example. This is probably related to the class of REPL bugs that can be worked around by passing the -Yrepl-sync option. Unfortunately, I don't think there is a way to modify the settings used by ILoop.break. I don't think this particular issue has been raised, so you should open a bug on the Scala issue tracker (but still check that it isn't covered by an existing bug).

-Mark

> -schone
>

Reply all
Reply to author
Forward
0 new messages