9 comments
Comment actions Permalink

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

0
Comment actions Permalink

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

wow, I was lucky to get 0 occurrences !

0
Comment actions Permalink

what IDE build do you use? looks similar to https://youtrack.jetbrains.com/issue/IDEA-195542, but it was fixed about a year ago...

0
Comment actions Permalink

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.

0
Comment actions Permalink

can you recreate the issue in a new project?

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

0
Comment actions Permalink

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 ?

0
Comment actions Permalink

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 com.google.common.base.Preconditions.checkPositionIndex(Preconditions.java:1374)
       at com.google.common.base.Preconditions.checkPositionIndex(Preconditions.java:1356)
       at org.jetbrains.plugins.textmate.regex.RegexUtil.charOffsetByByteOffset(RegexUtil.java:16)
       at org.jetbrains.plugins.textmate.regex.RegexUtil.charRangeByByteRange(RegexUtil.java:36)
       at org.jetbrains.plugins.textmate.regex.MatchData.charOffset(MatchData.java:56)
       at org.jetbrains.plugins.textmate.regex.MatchData.charOffset(MatchData.java:51)
       at org.jetbrains.plugins.textmate.language.syntax.lexer.TextMateHighlightingLexer.parseLine(TextMateHighlightingLexer.java:199)
       at org.jetbrains.plugins.textmate.language.syntax.lexer.TextMateHighlightingLexer.advance(TextMateHighlightingLexer.java:137)
       at com.intellij.usages.ChunkExtractor.createTextChunks(ChunkExtractor.java:204)
       at com.intellij.usages.UsageInfo2UsageAdapter.getUsageType(UsageInfo2UsageAdapter.java:559)
       at com.intellij.usages.impl.rules.UsageTypeGroupingRule.getParentGroupFor(UsageTypeGroupingRule.java:31)
       at com.intellij.usages.rules.SingleParentUsageGroupingRule.getParentGroupsFor(SingleParentUsageGroupingRule.java:40)
       at com.intellij.usages.impl.UsageNodeTreeBuilder.appendOrGet(UsageNodeTreeBuilder.java:77)
       at com.intellij.usages.impl.UsageViewImpl.doAppendUsage(UsageViewImpl.java:1195)
       at com.intellij.usages.impl.UsageViewImpl.appendUsage(UsageViewImpl.java:1144)
       at com.intellij.usages.impl.SearchForUsagesRunnable.lambda$null$7(SearchForUsagesRunnable.java:398)
       at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:902)
       at com.intellij.usages.impl.SearchForUsagesRunnable.lambda$searchUsages$8(SearchForUsagesRunnable.java:398)
       at com.intellij.find.findInProject.FindInProjectManager.lambda$null$1(FindInProjectManager.java:101)
       at com.intellij.find.impl.FindInProjectTask.lambda$null$6(FindInProjectTask.java:207)
       at com.intellij.find.impl.FindInProjectUtil.addToUsages(FindInProjectUtil.java:297)
       at com.intellij.find.impl.FindInProjectUtil.lambda$processUsagesInFile$2(FindInProjectUtil.java:258)
       at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:936)
       at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
       at com.intellij.find.impl.FindInProjectUtil.processUsagesInFile(FindInProjectUtil.java:256)
       at com.intellij.find.impl.FindInProjectTask.lambda$searchInFiles$9(FindInProjectTask.java:207)
       at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$null$3(PsiSearchHelperImpl.java:359)
       at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:164)
       at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:204)
       at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processFilesConcurrentlyDespiteWriteActions$4(PsiSearchHelperImpl.java:358)
       at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:133)
       at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
       at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
       at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
       at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:116)
       at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:99)
       at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
       at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
       at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
       at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
       at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
       at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
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

0
Comment actions Permalink

Looks similar to https://youtrack.jetbrains.com/issue/IDEA-219368 that is fixed in upcoming 2019.2.1

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.