"Project files" folders automatically toggled open when files within them are updated

Hi,

for a few days now, I've noticed a weird and annoying behavior in the "Project files" tab. I'm working on a Symfony1.4 project, and there is this cache folder. Whenever there is a modification within it from my console (cache clear, rebuild classes, change git branch...), the cache folder in PHPStorm, within the "Project files" tab is getting open and is given focus (as if I just clicked the folder). Same goes with ".idea". And I just don't give whatever about these folders, I just want the project files tab to stay were I was previously, on the files i'm really working on, and not see it opening folders I never go to.

I can't remember editing preferences lately, and a search in preferences or on this forum have not given me any clue on how to disable this annoying behavior.

Has anyone encountered this problem ?

Thank you for any help.
And despite this, PHPstorm rocks !

9 comments
Comment actions Permalink

Hello!

does the problem occur when modifying file externally (outside of PHPStorm) or whe using the editor? Is 'Autoscroll from source' project view option enabled? What scope is choisen in the project view - default (project) or one of the custom scopes?

0
Comment actions Permalink

Hi,

Thank you for your answer.

Yes, it occurs when I do something on my external terminal for example. Autoscroll is disabled, the scop is "project files". If I select "default", only a few files are displayed, not the whole project.
BTW, this is phpstorm 7.0

0
Comment actions Permalink

Weird but after looking into the settings and options you've told me about, the behavior I described does not seem to happen anymore.
As said, if anyone encounter the issue, in the end my "project" scope is on "Project Files", "autoscroll to source" as well as "autoscroll from source" are disabled.

Cheers

0
Comment actions Permalink

Ok, no, it does it again...

0
Comment actions Permalink

Can't recreate. Please can you record a screencast that shows up the issue?


0
Comment actions Permalink

Hi,

sorry for the late answer, i was a bit swamped.
I managed to do a screencast : https://www.youtube.com/watch?v=1dCZWObFWw8
it's not perfect, but it might give you an idea of what's happening :
- 00:01 first i clear Symfony's cache
- 00:05 then in Firefox, i visit pages of differents apps within the Symfony project. So it creates cache file with config and such
- 00:21 here you see the folder focus is given to the cache/restend folder (this is the name of the Symfony app)
- 00:25 checkout of some other git branch
- 00:30 folders are reloaded for current branch, now active folder is apps/apirest/modules/company, which was not even focused at 00:01
- 00:34 i run an automated test, which will also produce some cache files and folders
- 00:44 nothing was visible there, so i clear the cache again
- 00:46 folders are refreshed. nothing is focused then
Nothing much happens then...

Thank you for your help

0
Comment actions Permalink

Also, i've noticed that if a folder is empty, it is not shown in project files. And if one folder has only one subfolder (with some files within it), it is shown as "folder/subfolder" instead of "folder" with the toggle arrow, then subfolder when toggled open

S.

0
Comment actions Permalink
Also, i've noticed that if a folder is empty, it is not shown in project files. And if one folder has only one subfolder (with some files within it), it is shown as "folder/subfolder" instead of "folder" with the toggle arrow, then subfolder when toggled open

That's because you have switched to some scope (on your video you are using "Project Files" one) instead of default "Project"

0
Comment actions Permalink

Well you just made my day ! I don't know when/how the scope changed, but putting back to "Project" seems to resolve both issues !

Thank you very much

0

Please sign in to leave a comment.