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)
libraryDependencies ++= Seq(
"com.disneystreaming" %%% "weaver-core" % "0.6.0-M5" % Test
)
I might be doing something wrong, I suppose.
o_O ok I wonder if something on sonatype went wrong - I'll check the jars, but we can move this to https://gitter.im/disneystreaming/weaver-test room if you see this weirdness even in jvm jars.
M4 was definitely fine, M5 was released today, no idea what happened
I was too soon, when I ran the tests with ++3.0.0-M3
, this happened:
Error while loading test class app.tulz.tuplez.TupleCompositionTests failed: java.lang.ClassNotFoundException: Cannot find app.tulz.tuplez.TupleCompositionTests$scalajs$junit$bootstrapper$,
(tests ran successfully for 2.13 and 2.12)
@lewisjkl as for not using the bundler – it was quite a while ago, I can barely remember… maybe I couldn’t customize something I wanted to, or something like that, and found it easier back then to handle webpack manually.
Also, as of now I like it better this way: running ~fastLinkJS
in one terminal and webpack serve
in another :) (thinking to try the snowpack)
I’ve made this g8 template a while ago (it’s a bit outdated – it's on my TODO, but the tailwind stuff has barely changed since then): https://github.com/yurique/scala-js-laminar-starter.g8
I'm running in to some issues when upgrading FS2 to sjs 1.4.0. Some are self inflicted due to use of .isInstanceOf[Int]
, which I've fixed. However now I'm seeing runtime exceptions like this:
Exception: scala.scalajs.js.JavaScriptException: TypeError: dest.u.set is not a function
Looking in the compiled js, I see:
$ac_I.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length);
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
System.arraycopy
calls. It seems dest
might not be an Array value.
System.arraycopy
with a 3rd parameter than is not an Array value.
def copyToArray[O2 >: O](xs: Array[O2], start: Int): Unit =
if (xs.isInstanceOf[Array[AnyRef]])
System.arraycopy(values, offset, xs, start, length)
else {
values.iterator.slice(offset, offset + length).copyToArray(xs, start)
()
}
Build.scala
, it might need an explicit import of the autoImport._
members.