-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
MissingType crash for code completions #16228
Comments
This also affects metals |
It seems the error doesn't occur if there's at least one character after the dot, e.g. scala> import sttp.client3.q<TAB> |
On the other hand this does crash import sttp.client3.H<TAB> This might be more specifically connected with the |
Also it seems that there's no crash if I set the java version to at least 11 (I'm using 8 by default). However in scala 3.1.3 this worked for any java version |
Nothing obvious comes to mind when looking at the stacktraces. I think the best way forward would be a bisect. |
Fixes scala#16228 (hopefully)
I tried to bisect this and it looks like the regression was introduced in this commit ee22b6a by incrementing TASTy minor version. I have no idea how this could have caused the bug but indeed, when I checked out to this branch, publishLocal'ed the compiler and used this version to run the REPL via scala-cli I got the error as in the bug report. When I downgraded |
I see no way a TASTY minor version could influence this. I think we should merge #16287 then since it fixes the problem. |
scala-cli seems partially to blame here, it seems? Using Coursier launch on Java 8 doesn't seem to fail for me:
|
@dwijnand when running coursier you set the scala version only for cs fetch -p com.softwaremill.sttp.client3::core:3.8.3 seems to resolve dependencies for scala 2.13 by default. cs launch --jvm 8 scala3:3.2.0 -- -cp $(cs fetch --scala 3.2.0 -p com.softwaremill.sttp.client3::core:3.8.3) the completion crashes as it does with scala-cli |
Ah, thank you. Nice one, man. |
Fixes scala#16228 (hopefully)
Compiler version
Breaks with: 3.2.0, 3.nightly
Used to work with: 3.1.3
Minimized code
scala-cli repl --dep "com.softwaremill.sttp.client3::core:3.8.3" -S 3.2.0
Output (click arrow to expand)
Output with
-Ydebug-unpickling
:The text was updated successfully, but these errors were encountered: