PHPStorm can't open js file

javascript, phpstorm, svn

Solution

I think I have a solution to this. I had a similar problem in my PHPStorm configuration. If you clear PHPStorm's cache in File->Invalidate Caches/Restart menu option, it will again let you open the file.

https://i.stack.imgur.com/6Y7sS.png

Problem

I'm using SVN 1.7 with a PHPStorm project and today I've created a js file in my project then a while after I deleted it. I created it again later and I couldn't open it at all. It has a small question mark next to its file name, and nothing happens if I try to open it in PHPStorm. (I can create new files next to it with same extension and they don't have this problem). I can open it using external tools (notepad++, etc), I can delete it from PHPStorm as well. Other people using my SVN repository can open it. I tried to create new project from the repository into new folder, but the problem was still there for that single file.

Original source