PHP storm automatically closing network files at random
I am accessing files from a Windows 7 machine to a network share on another windows 7 machine. I can view the files fine in explorer and I can open them in other applications and edit them without issue.
If I open these files in PHP storm the tab randomly closes itself after 5 - 180 seconds of being opened.
I have full read/write permissions to the network share and PHP Storm is the only application I use which exhibits this behaviour.
This appears to only occur on files over a network share.
Are there any settings to prevent this behaviour?
Please sign in to leave a comment.
Hi there,
Based on my experience (not working over network ... but it still looks relevant here) IDE automatically closes tabs with files that are no longer accessible (e.g. file was deleted/renamed or moved elsewhere).
In your case it could be due to timeouts -- either hight network latency (too long to respond in the eyes of IDE) or maybe some software (e.g. Antivirus) adds such additional delays.
No other obvious possible reasons that I could think of.
Hi,
I would also add that working with remote files directly, via network, is not an officially supported scenario.
PhpStorm has been designed to work with local copy of the project. Find more info about this approach here: https://www.jetbrains.com/phpstorm/help/working-with-web-servers-copying-files.html.
You can check the valid scenarios and configure synchronization with remote server by following this guide: https://confluence.jetbrains.com/display/PhpStorm/Deployments+in+PhpStorm.
I have exactly this issue as well, accessing files on a samba share. It is INCREDIBLY frustrating! I use xmouse and having focus elsewhere and then back on phpstorm causes it to close the file.
Working on a network drive should be totally supported, in fact it should be transparent.
I even made a little video
http://bluedreamer.com/Kaegh2la/phpstorm.wmv
Sorry, but we're not considering this as an option:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207067835-How-to-open-project-from-the-network-share
Network shares should be transparent - lets be honest PHP storm is a fancy editor and a network drive of any kind should be transparent. Do I have to worry now if my project is on a SAN or I just wanted to edit a text file somewhere, rather than having to use another editor.
This is a serious regression error which is making me consider not renewing PHP storm - not being able to edit files is a massive flaw.
Closing the window of a file being edited without user intervention is just plain stupid and useless
Sorry to hear it but there are currently no plans on implementing new reliable virtual file system that would fully support network shares.
I know that this is an old thread, however it seems pretty silly that using PHP storm on a set of files on a network is so problematic. Even Notepad++ supports that.
You do realize that this is a primary use case of your customers, right?
I really like Jetbrains products, but this sort of short sighted plan calls into question whether you are actually interested in supporting developers, or just making less interesting enhancements to your products.
Regardless, this is a deal breaker for my use case so I'll pass on any more PHP storm updates that require payment. Please let us know if you change your minds about supporting network file shares.
------------------
Edited:
After some poking around, if you open settings->Appearance & Behavior->System Settings and UNCHECK "Synchronize files on frame or editor tab activation", the problem seems to be mitigated. I'm surprised nobody at Jetbrains has suggested that.