Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-347

Silence exceptions at annotation time due to file contents being externally modified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None

      Description

      When a file contents change between analysis and annotation (e.g external SCM branch switch), the issue locations can end up off-limits, e.g if the file has fewer lines of code in the end.

      When this happens, SonarLint can be more resilient, e.g by catching the error and logging it on debug level, since a new analysis should be triggered almost immediately by IntelliJ detecting that the file changed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.henry Julien Henry
                Reporter:
                jeanbaptiste.lievremont Jean-Baptiste Lievremont
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: