File won't be refreshed because there were errors during analysis

Possible solution:

Another solution is to upgrade SonarJava on the server to a version greater than 5.8

Related: Sonarlint cannot run analysis on files in Intellij 2019.1 beta - #3 by martinely95