CTRL-S Seems to do a revert.... sometimes
Just lately , the CTRL-S keyboard function seems to do some sort of undo / revert every now and again. Seemingly random.
Make a few changes, Hit CTRL-S and they are undone.
Do CTRL-Z to undo this and it says "Undo Reload from Disk"
I've checked the keyboard mappings and CTRL-S is only mapped to the 'Save All' function
Is anyone else having this issue with version PhpStorm 2019.2.3 ??
Please sign in to leave a comment.
This is really strange and it should not happen.
Could you please tell more about your project? Is it located on a local drive?
Does it happen with other projects as well?
happened to me in webstorm as well. Seems like always the first cntrl s reverts whatever I just did, and after that it works normaly. It is driving me insane.
Glad I'm not the only one as I thought I was going mad. The problem seems to have stopped for a while now....
But definately a bug somewhere.
Please confirm that the affected projects are not located on any kind of mounted network share.
I've seen one similar support case so far, and it was the culprit there.
Yes they are. The files are located on a Network Share
Try disabling "Use "safe write" ... " at File | Settings | Appearance & Behavior | System Settings.
It's not advised to work with project files accessible directly over network file system: our built-in file system watcher is having hard times to track changes in such files.
Same problem on IntelliJ 2019.2.4. Out of nowhere, I'm suddenly unable to cmd+s to save files in a project I've been using forever. Pressing cmd+s instead reloads from disk. My files are just sitting in a local directory on my machine, not on a network share.
Same problem. The project is located on local drive.
The issue starts randomly, Then random disappears.
Edit:
I think I solved my case.
It happens when I try to save a change I made in a .css file
While I am using sass, phpStorm is actually trying to save the main file (.scss)
But there where no changes made there. So it saves the .scss and it in turn reverses the changes I've made to the .css
I have probably explained it poorly, but hope it helps.
Your case might not be the same, but if there is a dependency of the file you are trying to save and it is subordinate to another file Ctrl+S save the "mother" file instead.
Same happened to me, after a lot of work seems like all changes were reverted. I had to start over. Also, today our frontend developer had the same issue.
Support, if your project is not located on a network drive, please submit the logs (Help | Collect Logs and Diagnostic Data) within a new support ticket (Help | Contact Support), it's impossible to tell what's going wrong without taking a look at the logs. Thank you!
WebStorm still has this bug. When I use ctrl+s or even make changes in style.css file without this shortcut and then reload project page in browser it reverts changes back. But! If i open file in another editor It has made changes and in webstorm it shows as there is no made changes. ohhhhhhh i'm going crazy, help
Please elaborate on your setup. Do you edit the CSS directly, or have it generated by a compiler (SASS, etc.)? What web server is the project hosted on? A video recording of the issue would be helpful
So, I edited css directly without sass. Project wasn't hosted on a web-server, I just tested it in a browser after editing html/css files. But very important info! I'm tired of this bug and just now decided to update to WebStorm 2021.1 EAP and now this works as should. I don't see this incomprehensible behavior anymore. And small clarification, previous version was WebStorm 2020.3.2
Hi,
I had same problem in PhpStorm 2021.1
Problem was in active File Watchers.
I was working with LESS and had File Watchers active.
One of the legacy file was .CSS, and problem was only when editing this file.
After disabling FW, problem was gone.
later we changed this legacy css file to Less, and activated FW. There was no problem.