!kcOuJGXBoqBVSCYYAy:matrix.org

Scala JS

609 Members
Scala.js, the Scala to JavaScript compiler4 Servers

Load older messages


SenderMessageTime
27 Sep 2022
@_discord_268961038907604993:t2bot.ioyurique#0883 since we're moving to 3.2.0, I had this compilation failure with it:
https://github.com/tulz-app/laminext/actions/runs/3077541137/jobs/4972476348

didn't have time yet to investigate it. Maybe someone has an idea about what I did wrong there? 🙂
09:09:56
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 that's a compiler crash, so definitely not your fault 🙂 09:17:25
@_discord_268961038907604993:t2bot.ioyurique#0883 Right. Well, that's gonna be harder for me to fix 🙂 09:20:21
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377
[warn] The -scalajs flag was missing from test / scalacOptions, but it is required to produce Scala.js IR.
also
09:23:06
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 First thing I'd try is to remove any plugins (sbt-tpolecat) and any overrides to scalacOptions 09:25:15
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 scaladoc used to be incredibly unreliable in 3.0.x, I was told it's better now
And something is removing -scalajs flag from your project's tests which I can't think of being a good thing for a purely scala.js project 😄
09:25:56
@_discord_268961038907604993:t2bot.ioyurique#0883 without sbt-tpolecat it did compile indeed 🤔 09:41:07
@_discord_268961038907604993:t2bot.ioyurique#0883 with sbt-tpolecat (after ++3.2.0):
sbt:laminext> show core/scalacOptions
[info] * -encoding
[info] * utf8
[info] * -deprecation
[info] * -feature
[info] * -unchecked
[info] * -language:experimental.macros
[info] * -language:higherKinds
[info] * -language:implicitConversions
[info] * -Ykind-projector
[info] * -Xfatal-warnings
[info] * -scalajs-mapSourceURI:file:/Users/yurique/git/GitHub/tulz-app/laminext/->https://raw.githubusercontent.com/tulz-app/laminext/48e25203f769df46ad987f1b64f97070602a1570/


but those look like scala-2 options, right?
09:42:49
@_discord_268961038907604993:t2bot.ioyurique#0883 * with sbt-tpolecat (after ++3.2.0):
sbt:laminext> show core/scalacOptions
[info] * -encoding
[info] * utf8
[info] * -deprecation
[info] * -feature
[info] * -unchecked
[info] * -language:experimental.macros
[info] * -language:higherKinds
[info] * -language:implicitConversions
[info] * -Ykind-projector
[info] * -Xfatal-warnings
[info] * -scalajs-mapSourceURI:file:/Users/yurique/git/GitHub/tulz-app/laminext/->https://raw.githubusercontent.com/tulz-app/laminext/48e25203f769df46ad987f1b64f97070602a1570/


~but those look like scala-2 options, right?~
09:48:14
@_discord_268961038907604993:t2bot.ioyurique#0883 * with sbt-tpolecat (after ++3.2.0):
sbt:laminext> show core/scalacOptions
[info] * -encoding
[info] * utf8
[info] * -deprecation
[info] * -feature
[info] * -unchecked
[info] * -language:experimental.macros
[info] * -language:higherKinds
[info] * -language:implicitConversions
[info] * -Ykind-projector
[info] * -Xfatal-warnings
[info] * -scalajs-mapSourceURI:file:/Users/yurique/git/GitHub/tulz-app/laminext/->https://raw.githubusercontent.com/tulz-app/laminext/48e25203f769df46ad987f1b64f97070602a1570/


but those look like scala-2 options, right?
09:48:17
@_discord_268961038907604993:t2bot.ioyurique#0883 * // edit: removed a useless coment 🙂 10:17:28
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 FYI: https://github.com/typelevel/sbt-tpolecat/issues/102

When I reported that I thought only 0.4.1 was affected 😕
10:26:15
@dallas_bruno:matrix.org@dallas_bruno:matrix.org joined the room.11:17:55
@_discord_547365865969025029:t2bot.iomaster_as joined the room.12:11:12
@blakeh:matrix.orgblakeh
In reply to @_discord_690242411146117177:t2bot.io
Do you have a stack trace? What is $thiz when you get there? It seems like something corrupted. You're not using CheckedBehavior.Unchecked or .optimized anywhere in your build, are you?
Sorry for the long delay sjrd#7815 I can check the stack trace shortly. I managed to narrow this down a lot more. The issue only happens when I'm consuming my library via a locally linked dependency (file: protocol in package.json). I don't see CheckedBehavior.Unchecked or .optimized in either the front-end repo nor the library repo. One thing I would note though is that the build is using /fullOptJS which I recall is outdated. I'm going to see if this goes away when I use the modern replacement
14:32:17
@blakeh:matrix.orgblakehSwitching to /fullLinkJS which I believe is the right one14:33:50
@_discord_690242411146117177:t2bot.iosjrd#7815 fullLink and fullOpt are .optimized by default. Try to replace by fastLinkJS/fastOptJS. You should get a better diagnostic. 14:53:34
@_discord_690242411146117177:t2bot.iosjrd#7815 In general, always use fastLink/fastOpt for development, debugging, diagnostics, etc. Only use fullLink for production. 14:54:09
@blakeh:matrix.orgblakeh Okay I understand your question better. $thiz is from fastLinkJS. With fullOptJS/fullLinkJS it's instead TypeError: a.ZH is not a function 14:55:45
@blakeh:matrix.orgblakehSwitching to fullLinkJS didn't fix it14:55:50
@blakeh:matrix.orgblakehI'll get you a more detailed stacktrace14:55:55
@blakeh:matrix.orgblakehFull stacktrace with fastLinkJS: https://gist.github.com/blakehawkins/963c8e207d171bb5b81a338224fa0f2316:16:48
@dallas_bruno:matrix.org@dallas_bruno:matrix.org left the room.17:40:19
@blakeh:matrix.orgblakeh sjrd#7815: the problem goes away when using npm pack -- I think this is an issue in pnpm or so. Thanks for replying anyway 19:36:08
28 Sep 2022
@_discord_815546116066115595:t2bot.ioNikitaga#8210 @flatjaf I just published Laminar 0.14.5 to Maven central, it should fix that sourcemaps bug caused by old Scala 3 version. Could you please check that this fixes the problem you had? If you have any other non-Laminar dependencies, you must ensure that all of them are built with Scala 3.1.3 or higher. 01:05:13
@_discord_815546116066115595:t2bot.ioNikitaga#8210 * fiatjaf I just published Laminar 0.14.5 to Maven central, it should fix that sourcemaps bug caused by old Scala 3 version. Could you please check that this fixes the problem you had? If you have any other non-Laminar dependencies, you must ensure that all of them are built with Scala 3.1.3 or higher. 01:05:44
@_discord_815546116066115595:t2bot.ioNikitaga#8210 * fiatjaf I just published Laminar 0.14.5 to Maven central, it should fix that sourcemaps bug caused by old Scala 3 version. Could you please check that this fixes the problem you had? If you have any other non-Laminar dependencies, you must ensure that all of them were built with Scala 3.1.3 or higher. 01:06:09
@_discord_815546116066115595:t2bot.ioNikitaga#8210 (Note that Laminext and Waypoint haven't been fixed yet, if you're using them) 01:07:56
@_discord_488387072378273812:t2bot.iojorge0998 joined the room.03:43:56
@_discord_755086756143038555:t2bot.ioArinRay#5601Redacted or Malformed Event07:53:21

There are no newer messages yet.


Back to Room List