Skip to content

Conversation

@allanrenucci
Copy link
Contributor

When using the repl through "sbt console", we used to use the class
loader sbt give us. But we need a class loader that has the output
directory of the compiler on the classpath

@allanrenucci
Copy link
Contributor Author

Can I write sbt scipted tests that test the console?

@felixmulder
Copy link
Contributor

I'll defer that to @smarter :)


/** the compiler's classpath, as URL's */
val compilerClasspath: Seq[URL] = ctx.platform.classPath(ctx).asURLs
private var _classLoader: ClassLoader = _
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private[this]. Also we usuallly call these variables myFoo instead of _foo.

When using the repl through "sbt console", we used to use the class
loader sbt give us. But we need a class loader that has the output
directory of the compiler on the classpath
We need to support "initialCommands" in the repl, otherwise this
tests nothing...
@allanrenucci allanrenucci merged commit 7ca9ac3 into scala:master Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants