-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Prepare REPL for dotty-bridge #1299
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
Prepare REPL for dotty-bridge #1299
Conversation
initialCommands
and cleanupCommands
to REPL393ebe1
to
3e7c144
Compare
3e7c144
to
05d4322
Compare
* field `value`. The value is then set via Java reflection. | ||
* | ||
* Example: We want to bind a value `List(1,2,3)` to identifier `list` from | ||
* SBT. The bind method accomplishes this by creating the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's called sbt, not SBT ;)
05d4322
to
11b5a2a
Compare
@@ -65,6 +65,9 @@ object REPL { | |||
*/ | |||
val cleanupCommands: List[String] = Nil | |||
|
|||
/** We also allow binding initial values */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description should not start with "We also allow ..." but just explains what bound values are and maybe give an example.
fd5a5c6
to
7e1cdbf
Compare
@smarter: fixed your feedback 👍 |
method.invoke(resObj, value) == null | ||
} | ||
} catch { | ||
case _: Throwable => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import scala.util.control.NonFatal
then case NonFatal(_) =>
instead?
Otherwise LGTM |
LGTM needs to be at the beginning of the line otherwise dotty-bot is unhappy :) |
514feca
to
5c29e0a
Compare
LGTM |
This PR is preparing the REPL for #1293 being completed