Inconsistent search result list


I'm trying to search thr the project and each time I'm getting different results:

Can you comment on this ?




Please try invalidating caches (File | Invalidate caches/Restart, Invalidate and restart) - does the issue persist?


done, and it didn't help me. I'm getting different amount of results.

wow, I was lucky to get 0 occurrences !


what IDE build do you use? looks similar to, but it was fixed about a year ago...


This one:

I guess this is different one.

Here are my thoughts:

You may notice how the counter of occurrences is increasing each... 1/5 of second. I mean the counter starts with 0 then it increases to some value (let's say 12), then again (to 24), and then again (to final number).

Seem like there is a parallel process which sends the results to main window.

But, it doesn't matter :-) the developers know better.


can you recreate the issue in a new project?

Your idea.log (Help | Show log in ...) would be helpful


I have some other projects and I can't reproduce this issue there. Webstorm searches thr them with constant result set. But there projects are much much smaller.

And I don't think it makes sense to try to recreate the project from the source files because the problem may gone and in this case someone else may get the same issue.

How to attach the log file ?


Well, this is what happens in log file when I try to search:

2019-08-06 15:52:43,764 [3537172]  ERROR - intellij.openapi.progress.Task - index (50) must not be greater than size (47)  
java.lang.IndexOutOfBoundsException: index (50) must not be greater than size (47)
       at org.jetbrains.plugins.textmate.regex.RegexUtil.charOffsetByByteOffset(
       at org.jetbrains.plugins.textmate.regex.RegexUtil.charRangeByByteRange(
       at org.jetbrains.plugins.textmate.regex.MatchData.charOffset(
       at org.jetbrains.plugins.textmate.regex.MatchData.charOffset(
       at org.jetbrains.plugins.textmate.language.syntax.lexer.TextMateHighlightingLexer.parseLine(
       at org.jetbrains.plugins.textmate.language.syntax.lexer.TextMateHighlightingLexer.advance(
       at com.intellij.usages.ChunkExtractor.createTextChunks(
       at com.intellij.usages.UsageInfo2UsageAdapter.getUsageType(
       at com.intellij.usages.impl.rules.UsageTypeGroupingRule.getParentGroupFor(
       at com.intellij.usages.rules.SingleParentUsageGroupingRule.getParentGroupsFor(
       at com.intellij.usages.impl.UsageNodeTreeBuilder.appendOrGet(
       at com.intellij.usages.impl.UsageViewImpl.doAppendUsage(
       at com.intellij.usages.impl.UsageViewImpl.appendUsage(
       at com.intellij.usages.impl.SearchForUsagesRunnable.lambda$null$7(
       at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(
       at com.intellij.usages.impl.SearchForUsagesRunnable.lambda$searchUsages$8(
       at com.intellij.find.findInProject.FindInProjectManager.lambda$null$1(
       at com.intellij.find.impl.FindInProjectTask.lambda$null$6(
       at com.intellij.find.impl.FindInProjectUtil.addToUsages(
       at com.intellij.find.impl.FindInProjectUtil.lambda$processUsagesInFile$2(
       at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(
       at com.intellij.openapi.application.ReadAction.compute(
       at com.intellij.find.impl.FindInProjectUtil.processUsagesInFile(
       at com.intellij.find.impl.FindInProjectTask.lambda$searchInFiles$9(
       at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(
       at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(
       at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(
       at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(
       at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(
       at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(
       at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(
       at com.intellij.concurrency.ApplierCompleter.compute(
       at java.base/java.util.concurrent.CountedCompleter.exec(
       at java.base/java.util.concurrent.ForkJoinTask.doExec(
       at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(
       at java.base/java.util.concurrent.ForkJoinPool.scan(
       at java.base/java.util.concurrent.ForkJoinPool.runWorker(
       at java.base/
2019-08-06 15:52:43,764 [3537172]  ERROR - intellij.openapi.progress.Task - WebStorm 2019.2  Build #WS-192.5728.87  
2019-08-06 15:52:43,764 [3537172]  ERROR - intellij.openapi.progress.Task - JDK: 11.0.3; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o  
2019-08-06 15:52:43,764 [3537172]  ERROR - intellij.openapi.progress.Task - OS: Linux  
2019-08-06 15:52:43,764 [3537172]  ERROR - intellij.openapi.progress.Task - Last Action: UsageView.Rerun


Seems like.

Ok, will wait for the next release.

This bug is very severe because we rely on IDE to search and replace.

And this time I can not trust webstorm, like I need to use another product to double check.


Please sign in to leave a comment.