Network mounted - question about "file change" notifications

Hello,

I understand PhpStorm does not officially support network mounted projects. This is more of a general network mounting question.

When I open an old archived network mounted project to grab a copy of some code it will constantly display the "file change dialog" with ".idea/workspace.xml has been changed externally", prompting to reload the project.
Kinda annoying when the file hasn't been changed. Messes with alt+tab quite a bit too.

I was wondering if any linux gurus out there knew of the correct way to mount a network share in order to prevent this type of "file change" notification from appearing?

This also happens in other software (eg: a plain old text editor) when accessing/editing files on the network share, not just phpstorm.

The network share is mounted via cifs, fstab entry is:
//qnap/share /data cifs noauto,user,username=qnap,uid=1000,gid=1000 0 0

Both this computer and the QNAP have the same time (set by NTP).

Does anybody know what phpstorm (or other software) looks for when determining if a file has changed externally?

Cheers,
Dave

3 comments

Dave,

which version do you use? Please check if these recommendations help.

0

Thank you! PhpStorm 6 here, but every previous version was the same from memory.


adding "idea.io.coarse.ts=true" to bin/idea.properties file seems to have worked for me in PhpStorm 6 so far. I can now alt tab between an old archived network mounted project and a local current project without the constant warnings.

I was also recommended to try adding the "_netdev" and "sync" flags to these mount options as per here: http://askubuntu.com/questions/268121/how-to-mount-a-cifs-share-so-it-doesnt-warn-about-external-file-modifications . I will try that if I notice these errors again to see if that helps the problem further.

Cheers!

0

Working on a mounted drive is slow.

But there is a sollution and i've written a blog post on it (sorry mac/linux sollution only).
http://blog.vandersluijs.nl/2013/06/work-locally-on-a-mounted-drive-on-netbeans-eclipse-phpstorm.html

In short, your files will be locally and on the mounted drive. By rsync you will keep the files in sync!

Works like a charm!

0

Please sign in to leave a comment.