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
Scala compiler can accept virtual source files, e.g. in the REPL (and e.g. a hypothetical improved Zinc implementation). In these cases the "jpath" of the SourceFile can be null, causing a crash:
scala> scribe.info("foo")
--Error:----------------------------------------------------------------------1|scribe.info("foo")
|^|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)
||----------------------------------------------------------------------------|Inline stack trace
|--------------------------------------|This location contains code that was inlined from Macros.scala:33----------------------------------------------------------------------------1 error found
The text was updated successfully, but these errors were encountered:
Scala compiler can accept virtual source files, e.g. in the REPL (and e.g. a hypothetical improved Zinc implementation). In these cases the "jpath" of the SourceFile can be null, causing a crash:
The text was updated successfully, but these errors were encountered: