Sudden unexpected indexing

I am having an issue in phpStorm 4.0.2 on windows 7 pro where all my open files suddenly close. At first I thought it was locking up as well, but there is a background process running reindexing indices.  This has happened three times in the last five days and appears to be random. Two of the three times I thought I must have accidently hit a shortcut, but the most recent ocurrence phpStorm was not my focus window. Next time this ocurrs I will get a screenshot of that process.

This leads me to two questions.

  1. Is there anyway to save which files I have open so I can reopen them easily, much as it does when I begin work on the same project the next day?
  2. Is this reindexing a bug or some feature I am unaware.  If the latter how can I turn this off?


Thank you
-Tom

5 comments
Comment actions Permalink

Hi Tom,

1) You can use "View | Recent Files" to open recently used files one by one (that's if you need to "recover" of such sudden "all files closed" behaviour).

If you want to open buch of pre-selected files at once (like it happens on the beginning of the session), then look for Task Context (Tools | Tasks & Context | Save Context... / Load Context ...)


2) Interesting behaviour. PhpStorm indeed checks in background for changes in project files and reindexes them IF change is found. But it all runs completely transparently to the user. The way how you described it sounds like it has to rebuild index from scratch for the whole project and/or it lost access to those files for some reason (possibly for short period of time -- e.g. because of network timeout or whatever) -- never seen it myself during normal work, so it has to be something specific to your setup. Where your project files (as well as user profile is located) -- on local HDD or over a network? Please check idea.log for possible details (Help | Reveal Log in ...)

0
Comment actions Permalink

Thanks Andriy,

The Tasks & Context will be great if it happens again.

I am programming from a virtual machine on the same computer. Can't imagine why it might lose access even momentarily.  It does look like I am getting some form of log dump each time it happens. There is a folder in the log which looks like it corrosponds to each ocurrenece. The one I am certain matches is named "threadDumps-20120615-071054-PS-117.501".  Lot of information in here; I'll have to look at it over the weekend.

0
Comment actions Permalink

Hi Tom,

I am programming from a virtual machine on the same computer. Can't imagine why it might lose access even momentarily.

Where are those project files located -- in the same virtual machine .. or on actual physical computer (i.e. outside of virtual, but you can access them)?

0
Comment actions Permalink

On the same windows 7 pro machine I have a virtualbox with ubuntu running and I use expandrive ssh to keep the files available for editing.  I have used this same setup for the past 3 years, though I just upgraded to a more powerful computer about a month ago. So the files are physically on the same machine and the only networking involved is the ssh into the vm.

0
Comment actions Permalink

Ok, so while files are physically on the same computer they are still in different environments. That's possibly the reason.

I do run Delphi 7 in a similar way (host OS is Windows 7; Delphi itself is run in Virtual Machine under Window XP).

For me -- while dev tool (Delphi) is run inside VM, the files are physically located on my "real" computer (they are accessed from virtual via Shared Folder functionality). That's causing a lot of weird delays when IDE is trying to access any random file for 10-30 seconds sometimes. In such environment quick compilation of project sometimes takes 1-2 mins, while normally it would take 1-2 seconds if files are local (to the environment). If I move project file from my real PC into virtual one -- no delays at all. I have tried VMware Workstation, Oracle/Sun VirtualBox, Windows XP mode of Windows 7 (aka Virtual PC) -- same behaviour in all of them and I have similar delays when trying to sync project files between real and virtual machines (regardless from where I initiate the sync).

Maybe running Linux in VM is better from this point of view -- but that is what I have experienced and I think it may be the same in your case (unless I have completely misunderstood your setup).

If you will still keep experiencing such behaviour then I can only suggest you to move your project files to the same environment as PhpStorm (so files are local to development environment) and setup automatic synchronization (deployment) on Save (Settings | Deployment | Options --> Upload changed files automatically to the default server).

0

Please sign in to leave a comment.