!dzwIwcHubOKhDYcOVa:matrix.org

scalameta/mdoc

354 Members
Discord bridge for scalameta/mdoc2 Servers

Load older messages


SenderMessageTime
12 Jan 2024
@_discord_594749312123142149:t2bot.ioquafadas Thanks... I think , that this was enough to give me a hint. I suspect, that the docs are a little out of date. I believe one needs to set 3 properties in mdoc.properties, including the (undocumented?) js-linker-classpath property.

mdoc.properties
js-scalac-options=-Xplugin:--scala-js
js-classpath=etc
js-linker-classpath=

To generate the js-classpath, I'm using
coursier fetch org.scala-js:scalajs-library_2.13:1.14.0 org.scala-js:scalajs-dom_sjs1_3:2.8.0 org.scala-js:scalajs-linker_sjs1_2.13:1.14.0 -p

To generate the linker classpath, I'm using
coursier fetch org.scalameta:mdoc-js-worker_3:2.5.2 org.scala-js:scalajs-linker_2.13:1.14.0 -p

Compiler plugin;
js-scalac-options=-Xplugin:--scala-js

And then running
coursier launch org.scalameta:mdoc-js_3:2.5.2 --extra-jars C:\temp\mdoc

This yields an unhandled exception in the compiler.
info: Compiling 1 file to C:\temp\mdoc\out

  unhandled exception while running MegaPhase{crossVersionChecks, firstTransform, checkReentrant, elimPackagePrefixes, cookComments, checkStatic, checkLoopingImplicits, betaReduce, inlineVals, expandSAMs, elimRepeated, refchecks} on index.md

  An unhandled exception was thrown in the compiler.
  Please file a crash report here:
  https://github.com/lampepfl/dotty/issues/new/choose

     while compiling: <no file>
        during phase: <no phase>
                mode: Mode(ImplicitsEnabled)
     library version: version 2.13.12
    compiler version: version 3.3.1

                tree: EmptyTree
       tree position: :<unknown>
           tree type: <notype>
              symbol: val <none>
           call site: package <root> in module class <root>

  == Source file context for tree position ==


error: Scala.js compilation failed

Later, I'll try and downgrade everything to scala 3, but this looks like a dead end...
11:40:17
@_discord_594749312123142149:t2bot.ioquafadas * Thanks... I think , that this was enough to give me a hint. I suspect, that the docs are a little out of date. I believe one needs to set 3 properties in mdoc.properties, including the (undocumented?) js-linker-classpath property. mdoc.properties looks like

mdoc.properties
js-scalac-options=-Xplugin:--scala-js
js-classpath=etc
js-linker-classpath=

To generate the js-classpath, I'm using
coursier fetch org.scala-js:scalajs-library_2.13:1.14.0 org.scala-js:scalajs-dom_sjs1_3:2.8.0 org.scala-js:scalajs-linker_sjs1_2.13:1.14.0 -p

To generate the linker classpath, I'm using
coursier fetch org.scalameta:mdoc-js-worker_3:2.5.2 org.scala-js:scalajs-linker_2.13:1.14.0 -p

Compiler plugin;
js-scalac-options=-Xplugin:--scala-js

And then running
coursier launch org.scalameta:mdoc-js_3:2.5.2 --extra-jars C:\temp\mdoc

This yields an unhandled exception in the compiler.
info: Compiling 1 file to C:\temp\mdoc\out

  unhandled exception while running MegaPhase{crossVersionChecks, firstTransform, checkReentrant, elimPackagePrefixes, cookComments, checkStatic, checkLoopingImplicits, betaReduce, inlineVals, expandSAMs, elimRepeated, refchecks} on index.md

  An unhandled exception was thrown in the compiler.
  Please file a crash report here:
  https://github.com/lampepfl/dotty/issues/new/choose

     while compiling: <no file>
        during phase: <no phase>
                mode: Mode(ImplicitsEnabled)
     library version: version 2.13.12
    compiler version: version 3.3.1

                tree: EmptyTree
       tree position: :<unknown>
           tree type: <notype>
              symbol: val <none>
           call site: package <root> in module class <root>

  == Source file context for tree position ==


error: Scala.js compilation failed

Later, I'll try and downgrade everything to scala 3, but this looks like a dead end...
11:40:36
@_discord_594749312123142149:t2bot.ioquafadas * Thanks... I think , that this was enough to give me a hint. I suspect, that the docs are a little out of date. I believe one needs to set 3 properties in mdoc.properties, including the (undocumented?) js-linker-classpath property. mdoc.properties looks like

mdoc.properties
js-scalac-options=-Xplugin:--scala-js
js-classpath=etc
js-linker-classpath=

To generate the js-classpath, I'm using
coursier fetch org.scala-js:scalajs-library_2.13:1.14.0 org.scala-js:scalajs-dom_sjs1_3:2.8.0 org.scala-js:scalajs-linker_sjs1_2.13:1.14.0 -p

To generate the linker classpath, I'm using
coursier fetch org.scalameta:mdoc-js-worker_3:2.5.2 org.scala-js:scalajs-linker_2.13:1.14.0 -p

Compiler plugin;
js-scalac-options=-Xplugin:--scala-js

And then running
coursier launch org.scalameta:mdoc-js_3:2.5.2 --extra-jars C:\temp\mdoc

This yields an unhandled exception in the compiler.
info: Compiling 1 file to C:\temp\mdoc\out

  unhandled exception while running MegaPhase{crossVersionChecks, firstTransform, checkReentrant, elimPackagePrefixes, cookComments, checkStatic, checkLoopingImplicits, betaReduce, inlineVals, expandSAMs, elimRepeated, refchecks} on index.md

  An unhandled exception was thrown in the compiler.
  Please file a crash report here:
  https://github.com/lampepfl/dotty/issues/new/choose

     while compiling: <no file>
        during phase: <no phase>
                mode: Mode(ImplicitsEnabled)
     library version: version 2.13.12
    compiler version: version 3.3.1

                tree: EmptyTree
       tree position: :<unknown>
           tree type: <notype>
              symbol: val <none>
           call site: package <root> in module class <root>

  == Source file context for tree position ==


error: Scala.js compilation failed

Later, I'll try and downgrade everything to scala 2.13 and double check, but I'm thinnking this looks like a dead end...
11:41:09
@_discord_594749312123142149:t2bot.ioquafadas Well, the good news, is that if I do this with scala 2.13, it seems to work. 12:48:50
@_discord_594749312123142149:t2bot.ioquafadas I'll put up a PR to try and update the docs, as best I can. 12:49:04
@_discord_392428121342869534:t2bot.ioTomasz Godzik Thanks! 12:50:07
@_discord_263361211934965761:t2bot.ionolondil joined the room.13:05:57
@_discord_488502166299082754:t2bot.ioBrian Tracey changed their display name from btrachey to Brian Tracey.14:09:38
@_discord_594749312123142149:t2bot.ioquafadas Thanks for the tips so far... would you have a hint on how to build the website locally? Struggling so far ...

sbt '++2.12.18 docs/mdoc' gives me errors. Is it the right incantation?
16:32:34
@_discord_392428121342869534:t2bot.ioTomasz Godzik sbt docs/run ? 18:27:12
@_discord_594749312123142149:t2bot.ioquafadas I think this means I need an older version of node?

[info] Writing scalajs.webpack.config.js
[error] Debugger listening on ws://127.0.0.1:60872/4786e0ca-a828-45a5-a187-cf8b1f49d975
[error] For help, see: https://nodejs.org/en/docs/inspector
[error] Debugger attached.
[error] Waiting for the debugger to disconnect...
[error] node:internal/crypto/hash:68
[error]   this[kHandle] = new _Hash(algorithm, xofLen);
[error]                   ^
[error] Error: error:0308010C:digital envelope routines::unsupported


One for tomorrow / next week. Thanks for the help so far !
20:09:17
@_discord_392428121342869534:t2bot.ioTomasz Godzik Och, that one. I thought with it, but turns out docusaurus depends on an archived repo 20:48:41
13 Jan 2024
@_discord_397996873354444810:t2bot.ioufodivebomb joined the room.18:25:07
14 Feb 2024
@ckipp:matrix.orgChris Kipp!discord bridge 632642981228314653 63265271713890306210:27:29
@_discord_bot:t2bot.ioDiscord BridgeI'm asking permission from the guild administrators to make this bridge.10:27:30
@_discord_bot:t2bot.ioDiscord Bridge

I have bridged this room to your channel

10:27:36
15 Feb 2024
@_discord_673627799717937152:t2bot.iokitbellew changed their profile picture.13:47:42
@_discord_392428121342869534:t2bot.ioTomasz Godzik changed their profile picture.14:00:25
@_discord_424322935579344916:t2bot.iojakubciesluk changed their display name from Jakub CieĊ›luk to jakubciesluk.14:38:51
16 Feb 2024
@_discord_608368372446527663:t2bot.iokmarek changed their profile picture.13:37:21
@_discord_583167330566275072:t2bot.iosethtisue changed their profile picture.16:30:01
17 Feb 2024
@_discord_734849617820254331:t2bot.iovelvetbaldmime changed their profile picture.13:56:08
19 Feb 2024
@_discord_659458872486002691:t2bot.iofel_her changed their profile picture.20:48:55
20 Feb 2024
@_discord_839723269250875422:t2bot.iomtomko joined the room.16:35:16
22 Feb 2024
@_discord_243462255088238593:t2bot.ioKeir joined the room.11:32:57
23 Feb 2024
@_discord_516731310249607214:t2bot.io.spf3000 joined the room.04:44:21
@_discord_683010390145368169:t2bot.iospamegg1 changed their profile picture.07:20:21
25 Feb 2024
@_discord_154558903290560512:t2bot.iojd557 changed their profile picture.11:03:15
@_discord_116289795570925569:t2bot.ioDomas Poliakas changed their profile picture.11:08:56
@_discord_882757000197472276:t2bot.iodoofin000 changed their display name from doofin to doofin000.18:53:05

There are no newer messages yet.


Back to Room ListRoom Version: 9