We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a423594 commit bbe8e3fCopy full SHA for bbe8e3f
sourcecode/src-3/sourcecode/Macros.scala
@@ -147,7 +147,7 @@ object Macros {
147
148
def fileImpl(using Quotes): Expr[sourcecode.File] = {
149
import quotes.reflect._
150
- val file = quotes.reflect.Position.ofMacroExpansion.sourceFile.jpath.toAbsolutePath.toString
+ val file = quotes.reflect.Position.ofMacroExpansion.sourceFile.path
151
'{sourcecode.File(${Expr(file)})}
152
}
153
0 commit comments