-
Notifications
You must be signed in to change notification settings - Fork 21
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
Could not launch Scala 2.10.7, 2.11.12 REPL with Java 11 (without -nobootcp -nc
workaround)
#10603
Comments
Workaround (sorry, forgot in release notes!): |
Thanks! |
Thank you very much for testing and reporting. I updated the release notes |
I just realized not only REPL
but |
The spelling of |
same issue when i'm trying to start sbt Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
java.lang.NullPointerException
at scala.reflect.io.JavaToolsPlatformArchive.iterator(ZipArchive.scala:242)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.reflect.io.AbstractFile.foreach(AbstractFile.scala:92)
at scala.tools.nsc.util.DirectoryClassPath.traverse(ClassPath.scala:308)
at scala.tools.nsc.util.DirectoryClassPath.x$16$lzycompute(ClassPath.scala:317)
at scala.tools.nsc.util.DirectoryClassPath.x$16(ClassPath.scala:317)
at scala.tools.nsc.util.DirectoryClassPath.packages$lzycompute(ClassPath.scala:317)
at scala.tools.nsc.util.DirectoryClassPath.packages(ClassPath.scala:317)
at scala.tools.nsc.util.DirectoryClassPath.packages(ClassPath.scala:297)
at scala.tools.nsc.util.MergedClassPath$$anonfun$packages$1.apply(ClassPath.scala:375)
at scala.tools.nsc.util.MergedClassPath$$anonfun$packages$1.apply(ClassPath.scala:375)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.tools.nsc.util.MergedClassPath.packages$lzycompute(ClassPath.scala:375)
at scala.tools.nsc.util.MergedClassPath.packages(ClassPath.scala:370)
at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader.doComplete(SymbolLoaders.scala:243)
at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:194)
at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1231)``` |
@zxxc make sure you're using sbt 0.13.17 or the latest 1.1.x; older versions don't work on Java 9 (I forget exactly when in the 1.x series support started). check |
-nobootcp -nc
workaround)
-nobootcp -nc
workaround)-nobootcp -nc
workaround)
I just ran into this issue while playing with Quick Edit: These are now MODULES and not just libraries that can be included. So slightly more complicated. |
/cc @jvican -- something to consider fixing on the bloop runner side of things? |
For reasons unknown (and perhaps I should find out) this doesn't reproduce with the coursier-based runners ([1]):
|
@er1c Did the error go away with latest Bloop version? I remember you sent some patches to fix Bloop on Java 9+ but I'm not sure if they fixed this particular issue. |
Closing, since 2.10 and 2.11 development have ceased and the problem doesn't exist in later Scala versions. |
Hopefully there is still a ticket to make |
Hi, is this supposed to still be an issue?
I tried this with:
and
|
Yes, we're aware the problem still exists in 2.10.7 and 2.11.12. As I wrote earlier:
We only keep a ticket open if the problem still exists in the HEAD of the current development branch (namely 2.13.x). |
@tacerus The getting started page https://docs.scala-lang.org/getting-started/index.html links to the JDK matrix https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html The somewhat orthogonal issue of coping with classloaders and modules, either from CLI or other environments, is ongoing. |
Ah, apologies @SethTisue, I missed the version issue - I will attempt the latest release! Thanks! Thank you @som-snytt for linking the version matrix, that is very helpful! |
The text was updated successfully, but these errors were encountered: