Comments (37)
I reproduced the issue with sbt 1.10.0-RC2. I also ran debug but the additional output doesn't seem all that useful.
I had to redact some paths / class names due to this happening in a proprietary code base.
Output
[root] $ test
[debug] Other repositories:
[debug] Copy resource mappings:
[debug] (/project-path/test/resources/logback.xml,/project-path/target/scala-3.4.1/test-classes/logback.xml)
[debug] Default repositories:
[debug] Using inline dependencies specified in Scala.
[debug] Other repositories:
[debug] Default repositories:
[debug] Using inline dependencies specified in Scala.
[debug] Copy resource mappings:
[debug]
[debug] Copy resource mappings:
[debug] (/project-path/conf/logback.xml,/project-path/target/scala-3.4.1/classes/logback.xml)
[debug] (/project-path/conf/application-local.conf,/project-path/target/scala-3.4.1/classes/application-local.conf)
[debug] (/project-path/conf/application.conf,/project-path/target/scala-3.4.1/classes/application.conf)
[debug] (/project-path/conf/routes,/project-path/target/scala-3.4.1/classes/routes)
[debug] (/project-path/conf/db/migration/V008__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V008__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V003__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V003__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V011__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V011__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V006__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V006__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V002__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V002__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V007__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V007__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V010__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V010__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V005__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V005__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V004__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V004__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V012__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V012__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V001__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V001__REMOVED.sql)
[debug] (/project-path/conf/db/migration/V009__REMOVED.sql,/project-path/target/scala-3.4.1/classes/db/migration/V009__REMOVED.sql)
[debug] [zinc] IncrementalCompile -----------
[debug] IncrementalCompile.incrementalCompile
[debug] previous = Stamps for: 8 products, 1 sources, 4 libraries
[debug] current source = Set(${BASE}/modules/slick/src/main/scala/DatabaseCodegen.scala)
[debug] > initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())
[debug] No changes
[debug] Created transactional ClassFileManager with tempDir = /project-path/modules/slick/target/scala-3.4.1/classes.bak
[debug] Removing the temporary directory used for backing up class files: /project-path/modules/slick/target/scala-3.4.1/classes.bak
[debug] Copy resource mappings:
[debug] (/project-path/modules/api/target/scala-3.4.1/resource_managed/main/META-INF/smithy/REMOVED.smithy,/project-path/modules/api/target/scala-3.4.1/classes/META-INF/smithy/REMOVED.smithy)
// List of resources shortened for brevity
[debug] [zinc] IncrementalCompile -----------
[debug] IncrementalCompile.incrementalCompile
[debug] previous = Stamps for: 996 products, 317 sources, 2 libraries
[debug] current source = Set(${BASE}/modules/api/target/scala-3.4.1/src_managed/main/scala/project/api/SomeOutput.scala)
// Above Set shortened for brevity
[debug] > initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())
[debug] No changes
[debug] Created transactional ClassFileManager with tempDir = /project-path/modules/api/target/scala-3.4.1/classes.bak
[debug] Removing the temporary directory used for backing up class files: /project-path/modules/api/target/scala-3.4.1/classes.bak
[debug] [zinc] IncrementalCompile -----------
[debug] IncrementalCompile.incrementalCompile
[debug] previous = Stamps for: 1184 products, 250 sources, 55 libraries
[debug] current source = Set()
// Above Set shortened for brevity
[debug] > initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())
[debug] No changes
[debug] Created transactional ClassFileManager with tempDir = /project-path/target/scala-3.4.1/classes.bak
[debug] Removing the temporary directory used for backing up class files: /project-path/target/scala-3.4.1/classes.bak
[debug] [zinc] IncrementalCompile -----------
[debug] IncrementalCompile.incrementalCompile
[debug] previous = Stamps for: 355 products, 18 sources, 34 libraries
[debug] current source = Set()
// Above Set shortened for brevity
[debug] > initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())
// Above Set "added" shortened for brevity
[debug]
[debug] Initial source changes:
[debug] removed: Set()
[debug] added: Set()
[debug] modified: Set()
// Above Set shortened for brevity
[debug] Invalidated products: Set()
[debug] External API changes: API Changes: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated classes: Set(controller.SomeControllerSpec)
[debug] Sources indirectly invalidated by:
[debug] product: Set()
[debug] binary dep: Set()
[debug] external source: Set()
[debug] All initially invalidated classes: Set(controller.SomeControllerSpec)
[debug] All initially invalidated sources:Set()
// Above Set shortened for brevity
[debug] Created transactional ClassFileManager with tempDir = /project-path/target/scala-3.4.1/test-classes.bak
[debug] Initial set of included nodes: controller.SomeControllerSpec
[debug] About to delete class files:
[debug] SomeControllerSpec$$anon$1.class
[debug] SomeControllerSpec$$anon$2.class
[debug] SomeControllerSpec.class
[debug] SomeControllerSpec$$anon$1.tasty
[debug] SomeControllerSpec$$anon$2.tasty
[debug] SomeControllerSpec.tasty
[debug] We backup class files:
[debug] SomeControllerSpec$$anon$1.class
[debug] SomeControllerSpec$$anon$2.class
[debug] SomeControllerSpec.class
[debug] SomeControllerSpec$$anon$1.tasty
[debug] SomeControllerSpec$$anon$2.tasty
[debug] SomeControllerSpec.tasty
[debug] compilation cycle 1
[info] compiling 1 Scala source to /project-path/target/scala-3.4.1/test-classes ...
[debug] Returning already retrieved and compiled bridge: /Users/devnico/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.1/scala3-sbt-bridge-3.4.1.jar.
[debug] [zinc] Running cached compiler 97964d5 for Scala Compiler version 3.4.1
[debug] Rolling back changes to class files.
[debug] Removing generated classes:
[debug] Restoring class files:
[debug] SomeControllerSpec.tasty
[debug] SomeControllerSpec$$anon$1.class
[debug] SomeControllerSpec.class
[debug] SomeControllerSpec$$anon$2.class
[debug] Removing the temporary directory used for backing up class files: /project-path/target/scala-3.4.1/test-classes.bak
[error] ## Exception when compiling 18 sources to /project-path/target/scala-3.4.1/test-classes
[error] java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
[error] scala.collection.convert.JavaCollectionWrappers$JPropertiesWrapper$$anon$6.next(JavaCollectionWrappers.scala:623)
[error] scala.collection.convert.JavaCollectionWrappers$JPropertiesWrapper$$anon$6.next(JavaCollectionWrappers.scala:618)
[error] scala.collection.IterableOnceOps.find(IterableOnce.scala:634)
[error] scala.collection.IterableOnceOps.find$(IterableOnce.scala:631)
[error] scala.collection.AbstractIterator.find(Iterator.scala:1300)
[error] dotty.tools.dotc.config.PathResolver$Environment$.searchForBootClasspath(PathResolver.scala:40)
[error] dotty.tools.dotc.config.PathResolver$Environment$.javaBootClassPath(PathResolver.scala:49)
[error] dotty.tools.dotc.config.PathResolver$Defaults$.javaBootClassPath(PathResolver.scala:75)
[error] dotty.tools.dotc.config.CommonScalaSettings.$init$(ScalaSettings.scala:100)
[error] dotty.tools.dotc.config.ScalaSettings.<init>(ScalaSettings.scala:18)
[error] dotty.tools.dotc.core.Contexts$ContextBase.<init>(Contexts.scala:865)
[error] dotty.tools.dotc.Driver.initCtx(Driver.scala:60)
[error] dotty.tools.xsbt.CompilerBridgeDriver.run(CompilerBridgeDriver.java:125)
[error] dotty.tools.xsbt.CompilerBridge.run(CompilerBridge.java:22)
[error] sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:91)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$7(MixedAnalyzingCompiler.scala:194)
[error] scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
[error] sbt.internal.inc.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:249)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$4(MixedAnalyzingCompiler.scala:184)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$4$adapted(MixedAnalyzingCompiler.scala:164)
[error] sbt.internal.inc.JarUtils$.withPreviousJar(JarUtils.scala:239)
[error] sbt.internal.inc.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:164)
[error] sbt.internal.inc.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:212)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1(IncrementalCompilerImpl.scala:534)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1$adapted(IncrementalCompilerImpl.scala:534)
[error] sbt.internal.inc.Incremental$.$anonfun$apply$3(Incremental.scala:178)
[error] sbt.internal.inc.Incremental$.$anonfun$apply$3$adapted(Incremental.scala:176)
[error] sbt.internal.inc.Incremental$$anon$2.run(Incremental.scala:454)
[error] sbt.internal.inc.IncrementalCommon$CycleState.next(IncrementalCommon.scala:117)
[error] sbt.internal.inc.IncrementalCommon$$anon$1.next(IncrementalCommon.scala:56)
[error] sbt.internal.inc.IncrementalCommon$$anon$1.next(IncrementalCommon.scala:52)
[error] sbt.internal.inc.IncrementalCommon.cycle(IncrementalCommon.scala:265)
[error] sbt.internal.inc.Incremental$.$anonfun$incrementalCompile$8(Incremental.scala:409)
[error] sbt.internal.inc.Incremental$.withClassfileManager(Incremental.scala:496)
[error] sbt.internal.inc.Incremental$.incrementalCompile(Incremental.scala:396)
[error] sbt.internal.inc.Incremental$.apply(Incremental.scala:170)
[error] sbt.internal.inc.IncrementalCompilerImpl.compileInternal(IncrementalCompilerImpl.scala:534)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileIncrementally$1(IncrementalCompilerImpl.scala:488)
[error] sbt.internal.inc.IncrementalCompilerImpl.handleCompilationError(IncrementalCompilerImpl.scala:332)
[error] sbt.internal.inc.IncrementalCompilerImpl.compileIncrementally(IncrementalCompilerImpl.scala:425)
[error] sbt.internal.inc.IncrementalCompilerImpl.compile(IncrementalCompilerImpl.scala:137)
[error] sbt.Defaults$.compileIncrementalTaskImpl(Defaults.scala:2423)
[error] sbt.Defaults$.$anonfun$compileIncrementalTask$2(Defaults.scala:2373)
[error] sbt.internal.server.BspCompileTask$.$anonfun$compute$1(BspCompileTask.scala:41)
[error] sbt.internal.io.Retry$.apply(Retry.scala:47)
[error] sbt.internal.io.Retry$.apply(Retry.scala:29)
[error] sbt.internal.io.Retry$.apply(Retry.scala:24)
[error] sbt.internal.server.BspCompileTask$.compute(BspCompileTask.scala:41)
[error] sbt.Defaults$.$anonfun$compileIncrementalTask$1(Defaults.scala:2371)
[error] scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:63)
[error] sbt.std.Transform$$anon$4.work(Transform.scala:69)
[error] sbt.Execute.$anonfun$submit$2(Execute.scala:283)
[error] sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
[error] sbt.Execute.work(Execute.scala:292)
[error] sbt.Execute.$anonfun$submit$1(Execute.scala:283)
[error] sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
[error] java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[error] java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
[error] java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[error] java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[error] java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[error] java.base/java.lang.Thread.run(Thread.java:1583)
[error]
[error] stack trace is suppressed; run last Test / compileIncremental for the full output
[error] (Test / compileIncremental) java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
[error] Total time: 0 s, completed 19 Apr 2024, 18:30:22
[root] $
from sbt.
You are using Scala 3.4.1, can you try Scala 3.3.3?
from sbt.
I tried switching to 3.3.3 but now the exception even throws when running reload
.
Output
[info] welcome to sbt 1.10.0-RC2 (Amazon.com Inc. Java 21.0.2)
[info] loading settings for project root-build from plugins.sbt ...
[info] loading project definition from /project-path/project
[debug] not up to date. inChanged = true, force = false
[debug] Updating ProjectRef(uri("file:/project-path/project/"), "root-build")...
[debug] Done updating ProjectRef(uri("file:/project-path/project/"), "root-build")
[error] ## Exception when compiling 0 sources to /project-path/project/target/scala-2.12/sbt-1.0/classes
[error] java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
[error] scala.collection.convert.Wrappers$JPropertiesWrapper$$anon$6.next(Wrappers.scala:444)
[error] scala.collection.convert.Wrappers$JPropertiesWrapper$$anon$6.next(Wrappers.scala:439)
[error] scala.collection.TraversableOnce.collectFirst(TraversableOnce.scala:180)
[error] scala.collection.TraversableOnce.collectFirst$(TraversableOnce.scala:167)
[error] scala.collection.AbstractIterator.collectFirst(Iterator.scala:1431)
[error] sbt.internal.inc.CompilerArguments.findBoot$1(CompilerArguments.scala:108)
[error] sbt.internal.inc.CompilerArguments.$anonfun$createBootClasspath$2(CompilerArguments.scala:113)
[error] scala.Option.getOrElse(Option.scala:189)
[error] sbt.internal.inc.CompilerArguments.createBootClasspath(CompilerArguments.scala:113)
[error] sbt.internal.inc.CompilerArguments.bootClasspath(CompilerArguments.scala:134)
[error] sbt.internal.inc.CompilerArguments.bootClasspathFor(CompilerArguments.scala:137)
[error] sbt.internal.inc.MixedAnalyzingCompiler$.withBootclasspath(MixedAnalyzingCompiler.scala:461)
[error] sbt.internal.inc.MixedAnalyzingCompiler$.searchClasspathAndLookup(MixedAnalyzingCompiler.scala:423)
[error] sbt.internal.inc.MixedAnalyzingCompiler$.searchClasspathAndLookup(MixedAnalyzingCompiler.scala:402)
[error] sbt.internal.inc.MixedAnalyzingCompiler$.apply(MixedAnalyzingCompiler.scala:436)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileIncrementally$1(IncrementalCompilerImpl.scala:488)
[error] sbt.internal.inc.IncrementalCompilerImpl.handleCompilationError(IncrementalCompilerImpl.scala:332)
[error] sbt.internal.inc.IncrementalCompilerImpl.compileIncrementally(IncrementalCompilerImpl.scala:425)
[error] sbt.internal.inc.IncrementalCompilerImpl.compile(IncrementalCompilerImpl.scala:137)
[error] sbt.Defaults$.compileIncrementalTaskImpl(Defaults.scala:2423)
[error] sbt.Defaults$.$anonfun$compileIncrementalTask$2(Defaults.scala:2373)
[error] sbt.internal.server.BspCompileTask$.$anonfun$compute$1(BspCompileTask.scala:41)
[error] sbt.internal.io.Retry$.apply(Retry.scala:47)
[error] sbt.internal.io.Retry$.apply(Retry.scala:29)
[error] sbt.internal.io.Retry$.apply(Retry.scala:24)
[error] sbt.internal.server.BspCompileTask$.compute(BspCompileTask.scala:41)
[error] sbt.Defaults$.$anonfun$compileIncrementalTask$1(Defaults.scala:2371)
[error] scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:63)
[error] sbt.std.Transform$$anon$4.work(Transform.scala:69)
[error] sbt.Execute.$anonfun$submit$2(Execute.scala:283)
[error] sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
[error] sbt.Execute.work(Execute.scala:292)
[error] sbt.Execute.$anonfun$submit$1(Execute.scala:283)
[error] sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
[error] java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[error] java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
[error] java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[error] java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[error] java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[error] java.base/java.lang.Thread.run(Thread.java:1583)
[error]
[error] stack trace is suppressed; run last Compile / compileIncremental for the full output
[error] (Compile / compileIncremental) java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
I then deleted all target dirs and restarted sbt shell. That made it work again and I was able to compile and run the tests. Changed some code and recompiled which also worked. Then I tried running reload
again which resulted in the same exception as in the above Output (the first one).
from sbt.
Do you have scalacOptions
and/or javacOptions
defined in build.sbt
(or in a .scala
file in the project/
folder?
Also is this a fresh project or an existing one? When did the problem start to appear? Can you roll back to project to a git commit so it works?
from sbt.
Thanks for the report! I don't think I've seen this. Does this happen only with Play?
@mkurz Do you know what's happening here?
from sbt.
@eed3si9n are there maybe some commandline options or anything for more verbose logging? I'd be happy to provide every help I can to fix this issue.
from sbt.
You can type in debug
in the sbt shell first to see debug logs.
Also could you try with sbt 1.10.0-RC2 please?
from sbt.
https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html
Similarly, the call to the
propertyNames
orlist
method will fail if it is called on a "compromised"Properties
object that contains a non-String
key.
I wonder if system properties are "compromised", not in security sense, but type safety-wise, since it indicates that your sys props contains a boolean key?
from sbt.
If you type eval sys.props
on the shell, do you see anything weird, like true
or false
in the key?
from sbt.
No, there aren't any true/false keys.
Output
[info] ans: scala.sys.SystemProperties = Map(
java.specification.version -> 21,
sun.jnu.encoding -> UTF-8,
java.class.path -> /Users/devnico/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.10.0-RC2/sbt-launch-1.10.0-RC2.jar:/Users/devnico/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/get-coursier/sbt/sbt-runner/0.2.0/sbt-runner-0.2.0.jar,
java.vm.vendor -> Amazon.com Inc.,
sun.arch.data.model -> 64,
jline.shutdownhook -> false,
java.vendor.url -> https://aws.amazon.com/corretto/,
user.timezone -> Europe/Berlin,
java.vm.specification.version -> 21,
os.name -> Mac OS X,
sun.java.launcher -> SUN_STANDARD,
user.country -> DE,
sun.boot.library.path -> /Users/devnico/.sdkman/candidates/java/21.0.2-amzn/lib,
sun.java.command -> xsbt.boot.Boot,
jdk.debug -> release,
sun.cpu.endian -> little,
user.home -> /Users/devnico,
user.language -> en,
java.specification.vendor -> Oracle Corporation,
sbt.ipcsocket.tmpdir -> /var/folders/c0/d22dqjx96y36q8nnwz3vtvv00000gn/T/.sbt78078e55/ipcsocket,
swoval.tmpdir -> /var/folders/c0/d22dqjx96y36q8nnwz3vtvv00000gn/T/.sbt78078e55/swoval,
java.version.date -> 2024-01-16,
java.home -> /Users/devnico/.sdkman/candidates/java/21.0.2-amzn,
file.separator -> /,
java.vm.compressedOopsMode -> Zero based,
line.separator ->,
java.vm.specification.vendor -> Oracle Corporation,
java.specification.name -> Java Platform API Specification,
apple.awt.application.name -> Boot,
jline.esc.timeout -> 0,
sun.management.compiler -> HotSpot 64-Bit Tiered Compilers,
java.runtime.version -> 21.0.2+13-LTS,
user.name -> devnico,
stdout.encoding -> UTF-8,
path.separator -> :,
jna.nosys -> true,
os.version -> 14.5,
java.runtime.name -> OpenJDK Runtime Environment,
log4j.ignoreTCL -> true,
file.encoding -> UTF-8,
java.vm.name -> OpenJDK 64-Bit Server VM,
java.vendor.version -> Corretto-21.0.2.13.1,
sbt-launch.version -> 1.10.0-RC2,
java.vendor.url.bug -> https://github.com/corretto/corretto-21/issues/,
java.io.tmpdir -> /var/folders/c0/d22dqjx96y36q8nnwz3vtvv00000gn/T/,
java.version -> 21.0.2,
user.dir -> /Users/devnico/project-path,
os.arch -> aarch64,
java.vm.specification.name -> Java Virtual Machine Specification,
native.encoding -> UTF-8,
java.library.path -> /Users/devnico/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.,
java.vm.info -> mixed mode,
sharing,
stderr.encoding -> UTF-8,
java.vendor -> Amazon.com Inc.,
java.vm.version -> 21.0.2+13-LTS,
sun.io.unicode.encoding -> UnicodeBig,
java.class.version -> 65.0
)
from sbt.
What's sharing,
? That looks a bit odd without the key entry and/or value entry.
from sbt.
I don't know what it is or where it's coming from.
Running eval System.getProperty("sharing")
prints [INFO] ans: String = null
I checked if it was set as a cmdline parameter using ps aux | grep java
but couldn't find it there either.
from sbt.
Do you have
scalacOptions
and/orjavacOptions
defined inbuild.sbt
(or in a.scala
file in theproject/
folder?
ThisBuild / scalaVersion := Dependencies.Versions.scala3 // "3.3.1"
lazy val sharedScalacOptions =
Seq("-encoding", "UTF-8", "-Wunused:imports,privates,locals")
ThisBuild / scalacOptions ++= sharedScalacOptions ++ {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Seq("-Ykind-projector", "-Ykind-projector:underscores")
case default => Seq("-Xsource:3", "-Xfuture", "-feature", "-explaintypes",
"-Ywarn-unused:imports", "-Xlint:adapted-args", "-deprecation")
}
}
Also is this a fresh project or an existing one?
This is an existing project created more than 10 years ago. We are permanently evolve with language and build tools. Its a long journey.
When did the problem start to appear?
Probably after the upgrade to SBT close to v1.8.0 (not sure). With sbt v1.7 everything was fine, as far as remember. No less than a year was simpler just workaround a problem with restart and hope it will dissapear someday itself as it appeared.
Can you roll back to project to a git commit so it works?
I will try to isolate the breaking change in git history. Can't promise do it soon, but will try do my best. Will keep you posted.
from sbt.
Related Issues (20)
- `illegal reflective access operation` using sbt 1.9.9 with Java 11 (but not 8 or 17 or 21) HOT 2
- When there is a corrupted jar in Maven's local repo, it will fail HOT 2
- `sbt new` fails to parse arguments correctly on Windows HOT 3
- sbt throws a `StackOverflowError` when reporting a self-referencing exception. HOT 2
- improvement: [BSP] Add `jvmBuildTarget` info to `workspace/buildTargets` response
- Packages including "scala-library" in its name cannot be imported by other projects. HOT 1
- `getClass.getResource` yields wrong result using 1.9.9 with `sbtPlugin := true` HOT 3
- Found [error] [launcher] error during sbt launcher: java.nio.file.AccessDeniedException: /run/user/0/.sbt on AMI 2023 HOT 2
- sbt launcher - error retrieving required libraries for SBT 0.x HOT 17
- scaladoc: does not include all inline concrete methods HOT 1
- Sbt compile cannot include the dependency jar to classpath HOT 7
- sbt in `--client` mode loses stdout/stderr of the forked processes in continuous (watch) task mode after the task ir reevaluated
- Error downloading org.scalameta:semanticdb-scalac_2.12.19:4.8.3 HOT 2
- Command alias doesn't work with the project prefix HOT 1
- Allow the sbt launcher to be called programmatcially without running into an `exit` call HOT 10
- Compile ClassCastException HOT 1
- Unreachable case warning (E121) in inline generic function HOT 2
- Pipelining prevents Java compilation with `compileOrder := JavaThenScala` config
- sbt-coursier does not enable configuration of the `FileCache.localArtifactsShouldBeCached` setting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt.