scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
230 stars 21 forks source link

With `-quickfix` enabled, `[rewritten by quickfix]` gets printed for every error, regardless of whether or not it was actually fixed/fixable #12940

Closed coreywoodfield closed 4 months ago

coreywoodfield commented 4 months ago

Reproduction steps

Scala version: 2.13.12

in Test.scala:

import foo.bar

Compiling with -quickfix:any prints

Test.scala:1: error: [rewritten by -quickfix] not found: object foo
import foo.bar
       ^
1 error

Problem

It says the "not found: object foo" error was "rewritten by -quickfix" but it wasn't, it's not a quickfixable error

SethTisue commented 4 months ago

Nice catch — thanks for the report.