Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: WebStorm 2023.3.6
  • SonarLint: 10.4.2.78113

Editing Code, removed a comment added by SonarLint (TODO)
Failure during analysis

java.lang.IndexOutOfBoundsException: Wrong offset: 292. Should be in range: [0, 267]
	at c.ij.oa.editor.impl.LineSet.findLineIndex(LineSet.java:164)
	at c.ij.oa.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:1001)
	at o.sl.ij.finding.LiveFinding.lambda$getLine$1(LiveFinding.java:161)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$6(ReadActionUtils.kt:87)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:909)
	at c.ij.oa.application.ReadAction.compute(ReadAction.java:65)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:86)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.finding.LiveFinding.getLine(LiveFinding.java:161)
	at o.sl.ij.finding.tracking.Tracker$LineAndTextRangeHashKey.<init>(Tracker.java:105)
	at o.sl.ij.finding.tracking.Tracker$LineAndTextRangeHashKeyFactory.apply(Tracker.java:141)
	at o.sl.ij.finding.tracking.Tracker.match(Tracker.java:72)
	at o.sl.ij.finding.tracking.Tracker.lambda$track$0(Tracker.java:40)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:894)
	at o.sl.ij.finding.tracking.Tracker.track(Tracker.java:36)
	at o.sl.ij.finding.tracking.LocalHistoryFindingTracker.matchWithPreviousFinding(LocalHistoryFindingTracker.kt:64)

Hi @Jordan_Welbourne

Sorry for the late reply. “removed a comment added by SonarLint.” Do you mean you removed a line that was raising an issue noted by the rule “javascript:S1135”?

Can you reproduce the same error with SonarLint 10.5 ?

Thank you