We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88f6b65 commit 870fae6Copy full SHA for 870fae6
compiler/src/dotty/tools/dotc/transform/Pickler.scala
@@ -62,8 +62,8 @@ class Pickler extends Phase {
62
picklers(cls) = pickler
63
val treePkl = pickler.treePkl
64
treePkl.pickle(tree :: Nil)
65
- treePkl.compactify()
66
val pickledF = Future {
+ treePkl.compactify()
67
if tree.span.exists then
68
new PositionPickler(pickler, treePkl.buf.addrOfTree).picklePositions(tree :: Nil)
69
@@ -86,7 +86,7 @@ class Pickler extends Phase {
86
pickled
87
}(using ExecutionContext.global)
88
def force(): Array[Byte] = Await.result(pickledF, Duration.Inf)
89
- if ctx.settings.YtestPickler.value then force()
+ if ctx.settings.YtestPickler.value || ctx.mode.is(Mode.Interactive) then force()
90
unit.pickled += (cls -> force)
91
}
92
0 commit comments