Closed
Description
Hi,
when trying to use sourcecode
in an mdoc snippet, NullPointerException
is thrown.
Mdoc input:
```scala mdoc
implicitly[sourcecode.File]
```
Error:
java.lang.NullPointerException: Cannot invoke "java.nio.file.Path.toAbsolutePath()" because the return value of "scala.quoted.Quotes$reflectModule$SourceFileMethods.jpath(Object)" is null
at sourcecode.Macros$.fileImpl(Macros.scala:150)
Would it be possible to return something like File("<none>")
instead?
Metadata
Metadata
Assignees
Labels
No labels