sjrd on 0.6.x
Remove dead code: specific coll… Adapt the signature of `js.Arra… Merge pull request #3554 from s… (compare)
sjrd on master
Fix analyzer cycle detection to… Add toString methods to analyze… Do not provide linked ClassInfo… and 1 more (compare)
sjrd on master
Remove Logger.success It is un… Make level helpers final Clean-up ScalaConsoleLogger cod… and 1 more (compare)
sbt:sjavatime-root> testSuiteJS/test [info] compiling 23 Scala sources to /Users/eric/workspace/sjavatime/testSuite/js/target/scala-2.13/test-classes ... [info] Fast optimizing /Users/eric/workspace/sjavatime/testSuite/js/target/scala-2.13/java-time-testsuite-on-js-test-fastopt [error] Referring to non-existent method java.time.LocalDate.getEra()java.time.chrono.IsoEra [error] called from org.scalajs.testsuite.javalib.time.LocalDateTest.expectedRangeFor(java.time.LocalDate,java.time.temporal.TemporalField)java.time.temporal.ValueRange [error] called from org.scalajs.testsuite.javalib.time.LocalDateTest.expectedRangeFor(java.time.temporal.TemporalAccessor,java.time.temporal.TemporalField)java.time.temporal.ValueRange [error] called from private org.scalajs.testsuite.javalib.time.TemporalAccessorTest.$anonfun$range$2(java.time.temporal.TemporalAccessor,java.time.temporal.ChronoField)java.lang.Object [error] called from private org.scalajs.testsuite.javalib.time.TemporalAccessorTest.$anonfun$range$1(java.time.temporal.TemporalAccessor)void [error] called from org.scalajs.testsuite.javalib.time.TemporalAccessorTest.range()void
with Eraso I will look into that.
:point_up: January 27, 2021 11:31 PM
@nafg I'm getting
value can only be used within a task or setting macro with every %%% even in build.sbt
I'm not quite sure how to initialize a libraryDep setting via lazy val in here
lazy val web: immutable.Seq[ModuleID] = "me.shadaj" %%% "slinky-core" % SlinkyVersion :: ^ build.sbt:33: error: `value` can only be used within a task or setting macro, such as :=, +=, ++=, Def.task, or Def.setting. "me.shadaj" %%% "slinky-web" % SlinkyVersion :: ^
%%%is unlike the
%%and trips up plenty of people with this exact issue :)
libraryDependencies ++= Dependencies.web.map(_.value), but it gave me long and cryptic exception
java.lang.IllegalArgumentException: Could not find proxy for x$1: sbt.internal.util.Init#Initialize in List(value x$1, value $anonfun, method $anonfun$testier$4, method testier$lzycompute, object $dd74215a15febad41735, package <empty>, package <root>) (currentOwner= method testier$lzycompute ) at scala.tools.nsc.transform.LambdaLift$LambdaLifter.searchIn$1(LambdaLift.scala:317) at scala.tools.nsc.transform.LambdaLift$LambdaLifter.$anonfun$proxy$4(LambdaLift.scala:322) at scala.tools.nsc.transform.LambdaLift$LambdaLifter.searchIn$1(LambdaLift.scala:322) at scala.tools.nsc.transform.LambdaLift$LambdaLifter.$anonfun$proxy$4(LambdaLift.scala:322)
I just noticed that using ScalaJS
crossProject, ScalaJS seems to set
trackInternalDependecies to something other than
TrackAlways. I wanted to change that to
TackAlways, but since
TackAlways is already the default, I think there might be a good reason for ScalaJS deviating from the default.
What dragons and other beasts am I prone to run into when I change it back to
I want to generate sources in an scalajs cross build into the
shared subproject. Only thing: I think
shared is not really a subproject? If I add to
sourceGenerators of both the
jvmprojects and aggregate them, do the source files get generated twice (mabye with weird effects when both are generated at the same time)?
For some reason this wouldn't compile
class A: private var _value: Int = 0 def value_=(newValue: Int): Unit = _value = newValue def value: Int = _value class B: val a = A() def handleEvent(e: js.Dynamic): Unit = a.value = e.event.target.value.asInstanceOf[Int]
It was giving me "method selectDynamic in trait Dynamic does not take type parameters"
When it happened first, I made the above reproducer. Then it reproduced. Then I changed to
class A: private var _value: Int = 0 def value_=(newValue: Int): Unit = _value = newValue def value: Int = _value class B: val a = A() def handleEvent(e: js.Dynamic): Unit = val newValue = e.event.target.value a.value = newValue.asInstanceOf[Int]
And it worked. But.. when I changed it back to the original form.. it's working again.
Weird dotty bug is my guess?
.asInstanceOf[CanvasRenderingContext2D]is what you want