java.lang.IllegalArgumentException: Line 575 is out of range for file xxx File has 386 lines

We also started getting this error yesterday without any updates to Sonar or the file in question.

Only difference I noticed in the logs is the Roslyn version being used.

Failing builds have this line logged:
Roslyn version: 4.10.0.0

whereas successful builds before the failures started have this:
Roslyn version: 4.9.0.0

Don’t know if that’s connected.

1 Like