-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #9227: Do not suspend REPL compilation unit #9232
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
Conversation
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.
Otherwise, LGTM
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.
Thanks!
@@ -146,7 +146,7 @@ class ReplCompiler extends Compiler { | |||
val objectTermName = ctx.source.file.toString.toTermName | |||
objectNames.update(defs.state.objectIndex, objectTermName) | |||
|
|||
val unit = CompilationUnit(ctx.source) | |||
val unit = new ReplCompilationUnit(ctx.source) |
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.
Nit: I would use an anonymous class
val unit = new ReplCompilationUnit(ctx.source) | |
val unit = new CompilationUnit(ctx.source) { | |
override def isSuspendable: Boolean = false | |
} |
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.
I wanted to make it possible to identify a REPL compilation unit simply. I remember seeing places where we identify them by the name of the file which we could simplify with this scheme.
No description provided.