-
Notifications
You must be signed in to change notification settings - Fork 1.1k
crash with gears: Could not find proxy for ... #22408
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
Comments
reproduced with gears 0.2.0 and Scala 3.6.4-RC1 / 3.3.5-RC2 //> using dep "ch.epfl.lamp::gears:0.2.0"
// (...) |
@static
private val DEFAULT_SCHEDULER: ForkJoinPool = {
val parallelismValue = sys.props
.get("gears.default-scheduler.parallelism")
.map(_.toInt)
.getOrElse(Runtime.getRuntime.availableProcessors())
val maxPoolSizeValue = sys.props
.get("gears.default-scheduler.max-pool-size")
.map(_.toInt)
.getOrElse(256)
val minRunnableValue = sys.props
.get("gears.default-scheduler.min-runnable")
.map(_.toInt)
.getOrElse(parallelismValue / 2)
new ForkJoinPool(
Runtime.getRuntime.availableProcessors(),
CarrierThreadFactory,
(t: Thread, e: Throwable) => {
// noop for now
},
true,
0,
maxPoolSizeValue,
minRunnableValue,
(pool: ForkJoinPool) => true,
60,
SECONDS
)
} The problem is this , If I extract to a |
Minimization: //> using scala 3.nightly
object Obj:
@scala.annotation.static
val some_static_value: Int = {
val some_local_value: Int = ???
some_local_value
}
class Obj Also, it passes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
3.3.4
Minimized code
Output
Expectation
Should compiles.
If I extract
parallelismValue
as@static val parallelismValue
it compilesres: lampepfl/gears#117
The text was updated successfully, but these errors were encountered: