Versions:
- SonarQube: 7.5 (build 20543)
- SonarC#: 7.10 (build 7896)
- Scanner for MSBuild: 4.10
Problem
I’m getting the following error
ERROR: Error during SonarScanner execution
java.lang.IllegalArgumentException: 43 is not a valid line offset for pointer. File <filename> has 42 character(s) at line 10
or
ERROR: Error during SonarScanner execution
java.lang.IllegalArgumentException: 30 is not a valid line offset for pointer. File <another file> has 29 character(s) at line 120
I checked them with Notepad with ‘Show all symbols’ enabled and they both have 43 and 30 characters at the problematic lines accordingly.
At first, I though it might have something to do with encoding - it was UTF-8 with BOM - but even after I changed it to UTF-8, the error is still here