Reputation: 123
I am unable to save my files using Pycharm and I'm not sure how to fix this problem.
I have tried doing a fresh install of Pycharm using JetBrains Toolbox to make sure that it is set up correctly with default settings, but still no luck.
Here is the full log below:
I think my error source is in this section of my log:
Caused by: com.intellij.openapi.util.io.FileUtilRt$NIOReflect$1$2: Failed to delete D:\Scripts\.idea\workspace.xml
2018-03-13 09:31:18,076 [ 336977] WARN - j.util.io.SafeFileOutputStream - D:\Scripts\.idea\workspace.xml (Access is denied)
java.io.FileNotFoundException: D:\Scripts\.idea\workspace.xml (Access is denied)
And this is the error message that pops up when I try to CTL+S save files:
Upvotes: 10
Views: 18407
Reputation: 1
It can be folder permission issue. Go to the Pycharm folder-->Properties -->Security-->Edit -->Add-->Advanced-->Find Now--> select 'Everyone'-->OK--> on the 'Permission for Pycharm folder' tab, check the 'Full Control' and also 'Modify'. Now try to restart the IDE.
This worked like a charm (pun not intended lol). Cheers!
Upvotes: 0
Reputation: 10015
Generally, this is due to folder/file permissions.
You can define your_user as the owner of the folder and its adjacent files and folders:
$ chown your_user folder -R *
That might not be enough, for you can be owner of a whole directory tree, but without read/write permissions. If that's the case, you have to provide such permissions for the owner of the folder, and very likely, to all adjacent folders and files that are inside of it:
$ chmod u+rw folder -R *
On both commands, recursion (-R
) is the key option, so you can extend the effect of the command (permissions assignment) throughout the entire directory tree.
Upvotes: 5
Reputation: 21
It can be folder permission issue. Go to the Pycharm folder-->Properties -->Security-->Edit -->Add-->Advanced-->Find Now--> select 'Everyone'-->OK--> on the 'Permission for Pycharm folder' tab, check the 'Full Control' and also 'Modify'. Now try to restart the IDE.
Upvotes: 2
Reputation: 1531
There are following two options to get around this error.
Settings>Appearance and Behavior>System Settings
)Upvotes: 6