-
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
java exception during first attempt to do REPL completion by TAB in sbt console on Scala 3.4.1 #20421
Comments
Same as this issue cross-posted here on request by @smarter : As the root cause might be here and not in sbt. |
|
So scala-cli has some smarter loading logic here? Or why does 3.4.1 work when REPL from scala-cli? |
It has to do with how classpaths are setup but I don't know where the difference comes from. Running with |
|
Indeed more information... Sorry for spamming many lines here. |
@smarter can you reproduce it on your machine? |
@bishabosha is it possible this has to do with the pipelining changes somehow...? didn't "module-info" come up in that context not long ago? |
Yes. |
The only workaround I have found so far: Revert to Scala version 3.3.3 It does not seem to help to revert to older sbt such as 1.9.7, because with scala 3.4.2 the repl craches jline with |
Thanks for the investigation so far! The information is all here, but just as a brief summary for users who found this issue and are just looking for a quick&dirty workaround: A minified reproduction of the issue without sbt: git clone https://github.com/mpollmeier/scala-repl-pp.git
cd scala-repl-pp
sbt stage
./srp --dep org.projectlombok:lombok:1.18.32
scala> Seq.<TAB> n.b.1) scala-repl-pp wraps the stock repl Looking ahead: +1 for @smarter's comment to simply ignore anything |
on stage: remove module-info.class from dependency jars - a hacky workaround for a scala3 compiler bug: scala/scala3#20421 Fixes #4625
on stage: remove module-info.class from dependency jars - a hacky workaround for a scala3 compiler bug: scala/scala3#20421 Fixes #4625
In case anyone else is in dire need for a hacky workaround: in joern's sbt build we post-process the staged dependencies and remove all |
Compiler version
Use Scala 3.4.1 and any sbt of version 1.9.8, 1.9.9, 1.10.0.
Minimized code
Start the console and type Seq. and press TAB for completion.
Output
Expectation
no exception
The text was updated successfully, but these errors were encountered: