-
Notifications
You must be signed in to change notification settings - Fork 121
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
Bloop compile to correct JVM version #217
Bloop compile to correct JVM version #217
Conversation
cbacb77
to
94d283c
Compare
I'd like to somehow cleaup and organize this code now. I have no idea what's the right way. Should I just extend Should I download a newer jvm via couriser lib and spawn bloop with it in that case in |
Something along those lines, yes. Maybe by adding a field like |
ca2c15e
to
4ca8668
Compare
I'll be honest, I haven't really dug into the JNI/JNA issues, so I'm unsure if there is a better more appropriate to get domain sockets to work on FreeBSD in this scenario, but when testing it with --bloop-bsp-protocol being set to tcp it worked. So this is just a quick fix to ensure that the default for FreeBSD for now is tcp. Closes VirtusLab#217
2b0b45f
to
474572f
Compare
Still known limitation: no way to enforce JVM |
738d02d
to
ec68d63
Compare
modules/bloop-rifle/src/main/scala/scala/build/bloop/BloopServer.scala
Outdated
Show resolved
Hide resolved
modules/bloop-rifle/src/main/scala/scala/build/bloop/VersionOps.scala
Outdated
Show resolved
Hide resolved
modules/bloop-rifle/src/main/scala/scala/build/bloop/VersionOps.scala
Outdated
Show resolved
Hide resolved
modules/bloop-rifle/src/main/scala/scala/build/blooprifle/BloopRifle.scala
Outdated
Show resolved
Hide resolved
modules/bloop-rifle/src/main/scala/scala/build/blooprifle/BloopRifle.scala
Outdated
Show resolved
Hide resolved
modules/bloop-rifle/src/main/scala/scala/build/blooprifle/BloopRifle.scala
Outdated
Show resolved
Hide resolved
modules/bloop-rifle/src/main/scala/scala/build/blooprifle/BloopRifle.scala
Outdated
Show resolved
Hide resolved
fe1cd83
to
3edc01e
Compare
For example the code may call java.util.Optional.isEmpty, which came in JVM11. If bloop has been spawned under JDK8, it uses JDK8's `javac` command which does not allow using this function. On the other hand execution `scala-cli --jvm 11`, if bloop is newer could lead to a false positive compilation result. Therefore we now use release flags in scalac/javac to manipulate api restrictions.
3edc01e
to
52cc2ce
Compare
No description provided.