Open armanbilge opened 2 years ago
On temurin11 it fails as well:
$ java -version
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment Temurin-11.0.15+10 (build 11.0.15+10)
OpenJDK 64-Bit Server VM Temurin-11.0.15+10 (build 11.0.15+10, mixed mode)
Aha, thanks for that. I was able to reproduce with temurin 11 on linux. We should add that to CI and fix it :)
And which JDK is it currently working on? Did you have it succeeding on any JVM locally?
It works on the JDK 8 and JDK 17 temurins used in CI.
Huh. Locally it fails for me even with temurin 17. Ok, this is pretty bizarre.
FWIW I have been seeing this intermittently on sbt-tpolecat too when running scripted tests
sbt:sbt-tpolecat> scripted
[info] Wrote /Users/davidgregory/Repos/sbt-tpolecat/plugin/target/scala-2.12/sbt-1.0/sbt-tpolecat-0.4.1+31-2f9e1eda+20220728-1550-SNAPSHOT.pom
[info] Main Scala API documentation to /Users/davidgregory/Repos/sbt-tpolecat/plugin/target/scala-2.12/sbt-1.0/api...
[info] compiling 1 Scala source to /Users/davidgregory/Repos/sbt-tpolecat/plugin/target/scala-2.12/sbt-1.0/classes ...
model contains 17 documentable templates
[error] /Users/davidgregory/Repos/sbt-tpolecat/plugin/src/main/scala/io/github/davidgregory084/ScalacOptions.scala:409:3: Could not find any member to link for "java.lang.Runtime#availableProcessors".
[error] /** Configures the number of worker threads for the compiler backend.
[error] ^
[error] one error found
@DavidGregory084 sure, but does sbt-tpolecat have something like this in its settings? It's a known issue but supposedly we solved it 😅
Uhhhhh no 😆 I'm still confused that it's intermittent though in both cases
I put a dogfood test for this inside the site plugin.