Google Groups

Re: [sbt] ILoop.break


Mark Harrah Mar 24, 2012 9:50 AM
Posted in group: simple-build-tool
On Fri, 23 Mar 2012 21:26:46 -0700 (PDT)
schone <downwi...@gmail.com> wrote:

> 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!

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
>