-
Notifications
You must be signed in to change notification settings - Fork 21
Regression on importing multiple wildcard in same line while booting Scala REPL #10102
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-10102?orig=1 |
@SethTisue said: In order for this to even be actionable at our end, we'd need a much narrower description of exactly where you think the bug lies. Right now it really isn't clear at all whether the issue is in your sbt, or in Scala, or in your code, or in one of the libraries you're using, or what. |
@SethTisue said: |
@som-snytt said: |
Kazuhiro Sera (seratch) said: initialCommands := """
import _root_.skinny._
import _root_.controller._
import _root_.model._
import _root_.org.joda.time._
import _root_.scalikejdbc._
import _root_.scalikejdbc.config._
DBSettings.initialize()
""", |
@som-snytt said:
|
Kazuhiro Sera (seratch) said: cd skinny-blank-app/
# edit build.sbt
sbt dev/console |
Kazuhiro Sera (seratch) said: skinny-framework/skinny-framework#341 Try the package file which was already released after I will merge the PR. wget https://github.com/skinny-framework/skinny-framework/releases/download/2.3.1/skinny-blank-app.zip
unzip skinny-blank-app.zip
cd skinny-blank-app
# edit build.sbt
cd skinny-blank-app/
sbt dev/console |
@som-snytt said: |
Thomas Dufour (thomas_d) said: Just in case, though, you can start sbt without a project and type the following commands to trigger the issue
Results in
HTH |
@som-snytt said: Normal Here is a view of the error, which occurs when text-based REPL is trying to figure out what is imported by
The fix is to ignore the error when running under sbt.
|
@som-snytt said (edited on Jan 23, 2017 7:16:39 AM UTC): |
I found sbt's initialCommands doesn't work for Scala 2.12. Affected versions are 2.12.0, 2.12.1.
The
initialCommands
is a feature by sbt but the same one works with Scala 2.11 and 2.10.I'm afraid it is due to some issue on Scala 2.12. This is a blocker issue for us when upgrading to 2.12. I hope the issue will be fixed in the next patch release.
Procedure to reproduce the situation:
Manually edit
build.sbt
.In the project, sbt invokes the Scala REPL with the following initialCommands:
skinny console
just doessbt dev/console
internally. Thedev
is an sbt sub project../skinny console
It fails to run initialCommands and the REPL aborts after that.
The text was updated successfully, but these errors were encountered: