Presentation Compiler should not fail fast #22217
Labels
area:presentation-compiler
Related to the presentation compiler module used by Metals and possibly other tools
itype:enhancement
Compiler version
All
Minimized code
Currently, when crash happens during completions calculation, no results are returned.
In my case, the failure happened in
The crash was encountered during extension member's completion calculation, and all other results were discarded or not computed. This is not ideal, as sometimes crashes are not related strictly to presentation compiler implementation.
The correct output should be a list of completions without extension members (ideally only those that actually crashed)
Reproduction
I tried completing
in https://github.com/scala/scala3/blob/main/presentation-compiler/src/main/dotty/tools/pc/completions/NamedArgCompletions.scala
With a crash:
The crash above is not part of this issue, just a fact that presentation compiler should not fail fast.
The text was updated successfully, but these errors were encountered: