Merge 2.12 to 2.13 [ci: last-only]#9532
Conversation
lrytz
commented
Mar 5, 2021
Add missing @serialversionuid on collections
[2.12] Remove trailing references to icode
Silent parsing, then normal reporting when compiling template. For silence, use method that restores settings when done.
Fix regression in repl printing
Store suspended warnings per compilation unit and report them in `typerPhase.apply(unit)` instead of `typerPhase.run` - the latter is not invoked when using the presentation compiler.
Backport fix for detecting jar
Index suspended warnings by SourceFile. Test case for issue 12308.
Reported in scala-parallel-collections 152.
No test case because JDK 11...
[backport] Follow JDK 11+ spec for signature polymorphic methods
[nomerge] Reuse `tasksupport` in CombinerFactory
|
Parser warnings no longer show in the repl. When evaluationg a fresh line ( The parsed tree is stored in the compilation unit's Then a new run (with a fresh Before the change, After this patch we have @som-snytt do you know why a new |
|
In my recent PR to fix the 2.12 backport, I noticed snippet is parsed, reparsed with I don't remember how I fixed parser messaging on 2.13. Is this it? #7756 (comment) |
|
Looking at the repl code, I think the fix I implemented here is the best way forward. The parser is once called through JLine and once through the interpreter, this seems intended. The complication is that the interpreter potentially calls the parser multiple times (incomplete input), so it would require some logic to avoid creating a new Run each time. On complete input, it calls So overall I'd go ahead with the current fix in this PR. |