I am running into an extremely tedious issue with my phpStorm configuration. This problem comes and goes every few months, and I cannot find any consistent source-of or fix-to the issue.
I have phpStorm configured with a remote deployment so files are uploaded on-save from my local Windows box to a remote Ubuntu development server. On-save files are Reformatted (PSR-2), imports are optimized, and uploaded to the remote server automatically. This happens on explicit Save or when files are modified via automated operations like using Refactor to change an object name or perform a search and replace.
The issue is that I am constantly being warned that the file has changed on the remote server:
I cannot find any consistent behavior regarding why / when the above prompt is thrown. When working a single file and saving several times over 2-3 minutes, I may save a few times without issue, then the next few saves will throw the prompt, and then a few more without being prompted. It feels totally random and it happens whether my "Warn" setting is configured to compare by timestamp + size or content.
Also, the "Remember for this upload. Do not ask again." seems to do absolutely nothing. Perhaps because I am only uploading (saving) a single file at a time so there isn't really anything to remember.
I believe the prompt will go away if I uncheck the "Notify of remote changes" option but that also prevents me from being informed when my local file is no longer in-sync with the file on remote, which is pretty vital for my use-case.
I've tried reindexing the project, clearing various caches, etc. without success. And as mentioned above, this problem is pretty consistent for me. It will go away for months and then something will kick it off again and I will have weeks of being prompted to overwrite files that AFAIK should already be current. I hope someone has an idea because this is driving me nuts.
Here are the "Actions on Save" and "Deployment: Options" configs from my IDE:
When working a file