You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code in mdoc on Scala 3 fails to compile:
importcats.effect.*importweaver.*objectMySuiteextendsSimpleIOSuite {
valrandomUUID=IO(java.util.UUID.randomUUID())
// A test for side-effecting functions
test("hello side-effects") {
for {
x <- randomUUID
y <- randomUUID
} yield expect(x != y)
}
}
The error is related to the SourceLocationMacro:
Exception occurred while executing macro expansion.
java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:627)
at scala.None$.get(Option.scala:626)
at weaver.macros$.fromContextImpl(SourceLocationMacro.scala:28)
The macro calls get on the optional getJPath attribute. This is empty for non-JVM sources such as mdoc files.
I've proposed a workaround in #702 that uses the path attribute as a fallback.
The text was updated successfully, but these errors were encountered:
The following code in mdoc on Scala 3 fails to compile:
The error is related to the
SourceLocationMacro
:The macro calls
get
on the optionalgetJPath
attribute. This is empty for non-JVM sources such as mdoc files.I've proposed a workaround in #702 that uses the
path
attribute as a fallback.The text was updated successfully, but these errors were encountered: