Skip to content

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

Description

@darkfrog26

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 outr/scribe#397 for reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions