Closed Florian3k closed 1 month ago
Minimized reproduction:
@main def main() =
println(s""" ${1} ${2} """)
Put cursor in the middle, between two spaces and type "
and $
[Error - 3:00:28 PM] Request textDocument/codeAction failed.
Message: Internal error.
Code: -32603
org.scalameta.UnreachableError: this code path should've been unreachable
where curr = {token = 1007, position = [43,45), strVal = " , base = 10}
Describe the bug
Reproduction repository (scala3 fork): https://github.com/Florian3k/scala3/tree/metals-crash-repro Switch build server to sbt In file
scaladoc/src/dotty/tools/scaladoc/tasty/SymOps.scala
put cursor in line 84 at column 87 Type"
(two"
should appear) and then$
Metals server crashes with:Expected behavior
Doesn't crash
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
1.3.5+142-fe3dc071-SNAPSHOT
Extra context or search terms
No response