Can't save any file in PHPStorm

Hi, 
I just installed PHPStorm on a new computer, and I've tried 2017.1 - 2018.2, the issue persists in all of them.

Everytime I try to save a file, with new project or old projects (even projects that I've just created, without an .idea folder yet) I get the same error when trying to save: c://....{fullpath} - (The system cannot find the file specified).

Than I get 2 buttons - Revert / Close. If I click revert, I get a log: Unable to save settings: Failed to save settings. Please restart PhpStorm

Please note that this also happen with a full fresh installation, no plugins at all, no custom settings, nothing. Also, the issue is not Dropbox. File are not being saved also on the Desktop. Wherever i create a project, I get this error.

How can I resolve this? (screenshots attached) 

 



0

Hi there,

1) You seem to be saving files (and this project settings as well, since it's stored in .idea subfolder) in Dropbox synced folder. Quite possibly some Dropbox setting prevent this from doing.

2) Based on your 2nd screenshot you have "safe write" option enabled (which is by default). With this option IDE writes into a temp file first and only then renames it into actual file. Dropbox (syncing) might have issues with that. Try with that option disabled.

0

Thanks but the issue is not Dropbox. File are not being saved also on the Desktop. Wherever i create a project, I get this error.

0

Try #2 regardless and restart IDE.

If still the same -- check idea.log for related exceptions/info (Help | Show Log in Explorer)

Other than that:

  • Try with your Antivirus/Internet Security/Constant backup software temporarily disabled (or that location whitelisted/excluded at very least)
  • Use Process Monitor from SysInternals to see what processes accessing that file -- may give some hints / show possible reasons.
0

You're right! I disabled Windows Defender and everything started working again!

The only issue is that I don't seem to understand how to let Windows Defender know that this operation shouldn't be blocked, excluding PHPStorm folder in Program Files didn't do the trick. any ideas?

0

Try whitelisting project folder in addition to IDE & Java folders (although I do not have anything like that whitelisted here).

Must be some another option in Defender... maybe "Controlled folder access"... I suggest turning different real-time protection options off one by one and see. No better ideas.

0

I've tried adding the PHPStorm folder as an exclusion but that didn't work..
Thanks for the help, hopefully someone else has encountered this and has a solution...

0

请先登录再写评论。