Webstorm 2018.2.3 keeps invalidating the cache / not finding files

Ever since upgrading to the latest stable Webstorm 2018.2.3, the IDE works for maybe 5-10 mins and then when I go to find a file (CTRL-SHIFT-N) it doesn't find any files. 

So I go to "File -> Invalidate Caches / Restart..." it restarts and works for a while until it stops working again.  The files are clearly there in the explorer on the left hand side.

The logs tell me that Git is updating and getting caught on something that's in use.  Here's the relevant part of the logs:

2018-10-03 17:56:31,638 [ 36175] INFO - cloudConfig.CloudConfigManager - === StatusBar.update another widget: null === 
2018-10-03 17:56:31,639 [ 36176] INFO - cloudConfig.CloudConfigManager - === StatusBar.update another widget: null ===
2018-10-03 17:56:31,639 [ 36176] INFO - cloudConfig.CloudConfigManager - === End.connect ===
2018-10-03 17:56:33,264 [ 37801] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [<Project>]
2018-10-03 17:56:33,264 [ 37801] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [C:/projects/qbdvision]
2018-10-03 17:56:35,333 [ 39870] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 22472ms; general responsiveness: 1/21 sluggish; EDT responsiveness: 4/22 sluggish, 11/22 very slow
2018-10-03 17:57:12,871 [ 77408] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 37531ms; general responsiveness: 1/36 sluggish; EDT responsiveness: 4/36 sluggish
2018-10-03 17:57:12,872 [ 77409] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 5 files to update
2018-10-03 17:57:12,928 [ 77465] INFO - j.ide.startup.FileContentQueue - The process cannot access the file because another process has locked a portion of the file
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.a(LocalFileSystemBase.java:447)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.contentsToByteArray(LocalFileSystemBase.java:438)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.contentsToByteArray(PersistentFSImpl.java:514)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.contentsToByteArray(VirtualFileImpl.java:139)
at com.intellij.ide.caches.FileContent.getBytes(FileContent.java:44)
at com.intellij.openapi.project.FileContentQueue.a(FileContentQueue.java:144)
at com.intellij.openapi.project.ProjectLocator.computeWithPreferredProject(ProjectLocator.java:63)
at com.intellij.openapi.project.FileContentQueue.b(FileContentQueue.java:144)
at com.intellij.openapi.project.FileContentQueue.a(FileContentQueue.java:120)
at com.intellij.openapi.project.FileContentQueue.b(FileContentQueue.java:110)
at com.intellij.openapi.project.FileContentQueue.c(FileContentQueue.java:75)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:226)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
at com.intellij.util.concurrency.BoundedTaskExecutor$2$1.run(BoundedTaskExecutor.java:199)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:193)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2018-10-03 17:57:12,933 [ 77470] INFO - j.ide.startup.FileContentQueue - The process cannot access the file because another process has locked a portion of the file
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.a(LocalFileSystemBase.java:447)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.contentsToByteArray(LocalFileSystemBase.java:438)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.contentsToByteArray(PersistentFSImpl.java:514)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.contentsToByteArray(VirtualFileImpl.java:139)
at com.intellij.ide.caches.FileContent.getBytes(FileContent.java:44)
at com.intellij.openapi.project.FileContentQueue.a(FileContentQueue.java:144)
at com.intellij.openapi.project.ProjectLocator.computeWithPreferredProject(ProjectLocator.java:63)
at com.intellij.openapi.project.FileContentQueue.b(FileContentQueue.java:144)
at com.intellij.openapi.project.FileContentQueue.a(FileContentQueue.java:120)
at com.intellij.openapi.project.FileContentQueue.b(FileContentQueue.java:110)
at com.intellij.openapi.project.FileContentQueue.c(FileContentQueue.java:75)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:226)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
at com.intellij.util.concurrency.BoundedTaskExecutor$2$1.run(BoundedTaskExecutor.java:199)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:193)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2018-10-03 17:57:12,948 [ 77485] INFO - j.ide.startup.FileContentQueue - The process cannot access the file because another process has locked a portion of the file
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.a(LocalFileSystemBase.java:447)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.contentsToByteArray(LocalFileSystemBase.java:438)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.contentsToByteArray(PersistentFSImpl.java:514)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.contentsToByteArray(VirtualFileImpl.java:139)
at com.intellij.ide.caches.FileContent.getBytes(FileContent.java:44)
at com.intellij.openapi.project.FileContentQueue.a(FileContentQueue.java:144)
at com.intellij.openapi.project.ProjectLocator.computeWithPreferredProject(ProjectLocator.java:63)
at com.intellij.openapi.project.FileContentQueue.b(FileContentQueue.java:144)
at com.intellij.openapi.project.FileContentQueue.a(FileContentQueue.java:120)
at com.intellij.openapi.project.FileContentQueue.b(FileContentQueue.java:110)
at com.intellij.openapi.project.FileContentQueue.c(FileContentQueue.java:75)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:226)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
at com.intellij.util.concurrency.BoundedTaskExecutor$2$1.run(BoundedTaskExecutor.java:199)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:193)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2018-10-03 17:57:12,961 [ 77498] INFO - j.ide.startup.FileContentQueue - The process cannot access the file because another process has locked a portion of the file
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.a(LocalFileSystemBase.java:447)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.contentsToByteArray(LocalFileSystemBase.java:438)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.contentsToByteArray(PersistentFSImpl.java:514)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.contentsToByteArray(VirtualFileImpl.java:139)
at com.intellij.ide.caches.FileContent.getBytes(FileContent.java:44)
at com.intellij.openapi.project.FileContentQueue.a(FileContentQueue.java:144)
at com.intellij.openapi.project.ProjectLocator.computeWithPreferredProject(ProjectLocator.java:63)
at com.intellij.openapi.project.FileContentQueue.b(FileContentQueue.java:144)
at com.intellij.openapi.project.FileContentQueue.a(FileContentQueue.java:120)
at com.intellij.openapi.project.FileContentQueue.b(FileContentQueue.java:110)
at com.intellij.openapi.project.FileContentQueue.c(FileContentQueue.java:75)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:226)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:26)
at com.intellij.util.concurrency.BoundedTaskExecutor$2$1.run(BoundedTaskExecutor.java:199)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:193)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


Any ideas?  Do I need to downgrade?

3 comments

Also, I should have mentioned that I've seen this behavior after a reboot.  There's nothing using the files from what I can tell.

0

Hi there,

Please try with all custom (not bundled b default) plugins disabled. Quite possibly one of them may somehow interfere with IDE's core.

1

Yup.  Thanks.  It seems the AWS CloudFormation plugin was causing this.  

1

Please sign in to leave a comment.