Skip to content

Fix #3279 #3297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 10, 2017
Merged

Fix #3279 #3297

merged 2 commits into from
Oct 10, 2017

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