Find in path is constantly refreshing itself

I've been having issues with the "find in path" (ctrl + shift + f) window. What happens is that I will search a term that pulls up 50+ results, and the listed results are constantly rearranging themselves.  it feels like the window is refreshing itself because when I scroll down it will immediately scroll me back to the top.  It makes the window unusable because I am unable to click on a window to open it up, or even keep it highlighted.  Instead I have to click the 'Open in Find Window" button at the bottom.  This behavior occurs maybe half of the times I do a search, but I haven't found a pattern in the searches that cause or don't cause it.

9 comments
Comment actions Permalink

can't reproduce; may be, the search is not yet completed, and more occurrences are being added to the list?

0
Comment actions Permalink

that definitely is not the case.  it'll sometimes repeatedly refresh a search that only returns 3 or 4 results.  And clicking on the button to "open in find window" will open those 3 or 4 results.

0
Comment actions Permalink

can you share a screen recording of the issue? Your idea.log (Help > Show Log in...) would be also helpful

0
Comment actions Permalink

I have the same issue. 

Note that searching in a sub-directory works, but in the whole project gives me this 'keeps-on-refreshing' searchresult.

As video's are not allowed here, I created a .gif of the screenrecording. Had to compress it as there is a 2MB upload limit.

 

The idea.log is growing rapidly. I see it automatically rotates when it reaches 10MB. I have now 13 rotated idea.log.[1-12] files of 10MB each.

Parts of the logfile:

2019-11-12 10:40:43,863 [1762321] ERROR - j.psi.stubs.StubTreeLoaderImpl - PhpStorm 2019.2.4 Build #PS-192.7142.41
2019-11-12 10:40:43,863 [1762321] ERROR - j.psi.stubs.StubTreeLoaderImpl - JDK: 11.0.4; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-11-12 10:40:43,863 [1762321] ERROR - j.psi.stubs.StubTreeLoaderImpl - OS: Mac OS X
2019-11-12 10:40:43,867 [1762325] ERROR - stubs.StubProcessingHelperBase - PSI and index do not match.
Please report the problem to JetBrains with the files attached
file=JSFile:index.js, file.class=class com.intellij.lang.javascript.psi.impl.JSFileImpl, file.lang=Language: ECMAScript 6, modStamp=0
tree consistent
stub debugInfo=created in getStubTree(), with AST = false; with backReference
latestIndexedStub=null
viewProvider=com.intellij.lang.javascript.JSFileViewProviderFactory$JSFileViewProvider{myVirtualFile=file:///Users/paul/Development/sooqr/docker-dev/sooqr-javascript/node_modules/vinyl-fs/lib/dest/index.js, content=VirtualFileContent{size=1113}}
viewProvider stamp: 0; file stamp: 0; file modCount: 1516738260000; file length: 1113
doc saved: true; doc stamp: 0; doc size: 1113; committed: true
indexing info: indexed at 1442714862000 with document byte size = 1517, char size = 1517
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: PSI and index do not match.
Please report the problem to JetBrains with the files attached
file=JSFile:index.js, file.class=class com.intellij.lang.javascript.psi.impl.JSFileImpl, file.lang=Language: ECMAScript 6, modStamp=0
tree consistent
stub debugInfo=created in getStubTree(), with AST = false; with backReference
latestIndexedStub=null
viewProvider=com.intellij.lang.javascript.JSFileViewProviderFactory$JSFileViewProvider{myVirtualFile=file:///Users/paul/Development/sooqr/docker-dev/sooqr-javascript/node_modules/vinyl-fs/lib/dest/index.js, content=VirtualFileContent{size=1113}}
viewProvider stamp: 0; file stamp: 0; file modCount: 1516738260000; file length: 1113
doc saved: true; doc stamp: 0; doc size: 1113; committed: true
indexing info: indexed at 1442714862000 with document byte size = 1517, char size = 1517

[...snip]

2019-11-12 10:40:43,868 [1762326] ERROR - stubs.StubProcessingHelperBase - PhpStorm 2019.2.4 Build #PS-192.7142.41
2019-11-12 10:40:43,870 [1762328] ERROR - stubs.StubProcessingHelperBase - JDK: 11.0.4; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-11-12 10:40:43,870 [1762328] ERROR - stubs.StubProcessingHelperBase - OS: Mac OS X
2019-11-12 10:40:44,620 [1763078] ERROR - j.psi.stubs.StubTreeLoaderImpl - Outdated stub in index: file:///Users/paul/Development/sooqr/docker-dev/sooqr-javascript/node_modules/vinyl-fs/lib/dest/index.js indexed at 1442714862000 with document byte size = 1517, char size = 1517, doc=DocumentImpl[file:///Users/paul/Development/sooqr/docker-dev/sooqr-javascript/node_modules/vinyl-fs/lib/dest/index.js], docSaved=true, wasIndexedAlready=true, queried at 1516738260000
doc length=1113
file length=1113
cached PSI class com.intellij.lang.javascript.psi.impl.JSFileImpl
PSI length=1113
projects with file: 1
java.lang.Exception
at com.intellij.psi.stubs.StubTreeLoaderImpl.diagnoseLengthMismatch(StubTreeLoaderImpl.java:178)
at com.intellij.psi.stubs.StubTreeLoaderImpl.checkLengthMatch(StubTreeLoaderImpl.java:150)
at com.intellij.psi.stubs.StubTreeLoaderImpl.readFromVFile(StubTreeLoaderImpl.java:118)

[...snip]

 

0
Comment actions Permalink

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

1
Comment actions Permalink

That did resolve it for me!

Thanks!

0
Comment actions Permalink

"does the issue persist?"
Yes*

*after some time, Invalidate and restart needs to be done again, which resolves the issue again for a little while.

0
Comment actions Permalink

This problem still exists in the newest version of PHPStorm (2020.1.2) and it makes the search function basically useless.  

 

0
Comment actions Permalink

And still existing in 2020.2. It is very irritating that the IntelliJ "Service" completely ignores this report.

0

Please sign in to leave a comment.