File cache conflict
I'm getting this "Changes have been made to '' in memory and on disk" error. When some file changes on remote deployment, IDE correctly detects the change (as I set up) and shows me the yellow notification line with buttons "Merge" and "Download". When I hit download, it says "downloaded" in transfer log, but content of the editor won't change. When I do some changes in the code and I try to save the file, the error dialog appears.
It seems to me, that IDE downloads the file to disk, but it fails to update content stored in memory and this causes the conflict.
I found ismilar topics and related issues on tracker but it doesn't seem to be same issue because their content (in memory and on disk) are the same, my differs.
It does on all my projects and I'm not using symlinks anywhere in my projects and I have no custom plugins.
macOS Sierra 10.12.3
PhpStorm 2016.3.2
Build #PS-163.10504.2, built on December 20, 2016
Licensed to SMWORKS s.r.o.
Subscription is active until July 12, 2017
JRE: 1.8.0_112-release-408-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
FS: Mac OS Extended (journal)
RELATED LOG:
2017-02-21 16:49:43,368 [26496211] INFO - r.impl.FileDocumentManagerImpl - reload admin.articles.edit.tpl from disk?
2017-02-21 16:49:43,368 [26496211] INFO - r.impl.FileDocumentManagerImpl - documentStamp:98240
2017-02-21 16:49:43,368 [26496211] INFO - r.impl.FileDocumentManagerImpl - oldFileStamp:0
Please sign in to leave a comment.
Is the issue reproducible stably?
Please enable extended deployment logging,restart PhpStorm, follow the workflow you described and then upload the resulting log file somewhere so we can take a look. Thank you!
Hi Eugene,
yes, the issue is reproducible stably.
I've enabled ext. deployment logging, created file named test.tpl with content "test content" closed the IDE, externaly changed the content to "test content changed", then clear the log and reproduce the issue.
Here is my log with these steps (between each step I waited some time to distinguish them in logfile): Start IDE, open file test.tpl, click on "Download" button in yellow remote change notification, change content in editor, save, error msg. pops up, click on "Load from disk", Close IDE
https://www.dropbox.com/s/lnd3lqtsjfwlo26/idea.log?dl=0
Is this project under VCS tracking (i.e. Subversion)?
No, this project has no VCS.
What's the remote server in question? Is it a linux-based server? Is it a local/LAN/WAN server?
Could you please check:
1) create test file, close IDE
2) externaly change the content of a file
3) start IDE, open test file, click "Download" button in yellow remote change notification
After this please check if the file was actually downloaded by IDE using any 3rd party editor. You can leave IDE opened. After checking this - please switch back to IDE and check if content was refreshed.
The remote deployment is linux-based server located on WAN network (it's web hosting service) and the connection is using SFTP with key file authentification.
I reproduce your steps and the file was actually downloaded and after I switched back to IDE, it took about one second and then the correct content shows up. Then I tried again without checking the content in 3rd party editor, just switch to another app and switch back and again after one second the correct content shows up. So when the editor gain focus, it refreshs the content correctly.
I have new clue. The issue happens only in "FullScreen mode" on OSX. When I exit this mode and start using IDE in normal window, the issue is gone. When I reenter Fullscreen mode, the issue is back.