Skip to content

Commit

Permalink
Update compiler/src/dotty/tools/dotc/reporting/WConf.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Rytz <[email protected]>
  • Loading branch information
povder and lrytz authored Oct 31, 2023
1 parent ccf5ac0 commit 27d8aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/reporting/WConf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum MessageFilter:
pattern.findFirstIn(noHighlight).nonEmpty
case MessageID(errorId) => message.msg.errorId == errorId
case SourcePattern(pattern) =>
val path = message.position.orElse(NoSourcePosition).source().path()
val path = message.position.orElse(NoSourcePosition).source.file.jpath.toAbsolutePath.toUri.normalize.getRawPath
pattern.findFirstIn(path).nonEmpty
case None => false

Expand Down

0 comments on commit 27d8aef

Please sign in to comment.