PHPStorm auto-save issue (not always is saving)

I have app in symfony 4, but sometimes when I have changed something this is not refreshed on page in browser.

Example.

I have class col-md-5 and is change to col-md-3 and then is refreshing page and there is still col-md-5. It's strange.

Similar is with CSS. I have width: 50%;, then I change to 10%, then refresh page and still is width 50%.

I have to change something else in code, write something, some text and then refresh and is ok, is refreshed. Or after clear cache in symfony is ok.

It's standard symfony 4 app.

It's dev mode and twig cache is disabled.

 

PHPStorm version: 2019.1.2 

I see that is PHPStorm problem, because the file is not save. After ctrl+s is ok. Without it when small change when i open file in another problem there is old version, no auto-save.

 

Where is the problem?

0
7 comments

The file is supposed to be saved on frame/tab deactivation/activation, accordingly to Settings | Appearance & Behavior | System Settings | Synchronization.

Please enable Settings | Editor | General | Editor Tabs | Mark modified (*), so that unsaved files where marked.

After that, please monitor what action exactly doesn't lead to saving the file.

If you can catch that on a screencast while having this option on, that would really help us. Thank you!

0

I have a similar but probably unrelated issue. PHPStorm will not save the file until i quit the application, switching tabs or switching applications does not cause the file save, if i swith to the terminal and open the file in vim, i see the old file. If i quit PHP storm and then open the file in vim, the changes are there. I am using the linux version of PHP storm on windows under WSL, so it could be related to WSL

0

Shane, what PhpStorm version are you using? If it's not 2020.3, please try upgrading, a lot of WSL-related stuff has been fixed in there.
If it doesn't help, please also try disabling Back up files before saving at Settings | Appearance & Behavior | System Settings.

0
Avatar
Permanently deleted user

macOS Catalina (10.15.7)
PHP Storm 2020.3

"save file when switching to different application" issue

The same problem, saving does not work consistently. Sometimes it saves sometimes it doesn't.
This usually happens on blade files (or I only notice it on blade files). And when switching fast.

How can I help you fix the bug?

0

Liquid Nitrogenium, by any chance, do you have the completion list open when this happens?
If not, please enable Preferences | Editor | General | Editor Tabs | Mark modified (*), and capture the problem on a screencast.

0
Avatar
Permanently deleted user

Bingo!
This only happens when the completion list is open.

Any solution?

0

Please sign in to leave a comment.