sourcecode icon indicating copy to clipboard operation
sourcecode copied to clipboard

Scala 3: Cannot invoke "java.nio.file.Path.getFileName()"

Open darkfrog26 opened this issue 2 years ago • 1 comments

On Scala 3, running in the SBT REPL, I'm able to reproduce this issue:

Exception occurred while executing macro expansion.
   java.lang.NullPointerException: Cannot invoke "java.nio.file.Path.getFileName()" because the return value of "scala.quoted.Quotes$reflectModule$SourceFileMethods.jpath(Object)" is null
   	at sourcecode.Macros$.fileNameImpl(Macros.scala:155)

See https://github.com/outr/scribe/issues/397 for reference

darkfrog26 avatar Feb 05 '23 18:02 darkfrog26

Ping! Any updates on this?

darkfrog26 avatar Aug 29 '23 15:08 darkfrog26

Fixed by https://github.com/com-lihaoyi/sourcecode/pull/153

lihaoyi avatar Apr 15 '24 22:04 lihaoyi