You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
"Save" or "Save All" on unmodified, opened files results in "Unable to save file: permission denied" error #7566
When working with a project under Perforce revision control, it is normal for unmodified files to be read-only on the file system. Currently, I get several errors when I do "Save All" when I have several unmodified files open. It would be nice to not get the error when the files are unmodified. There are cases where there be several opened files, some modified and some not. "Save all" would only have to save the modified files. Of course, if the modified files are still read-only, it makes sense to report the "Unable to save file" error.
@sergiom-sf The problem here is that atom explicitly saves files that have not been modified when asked to save in order to fire a browser reload (for instance when used in conjunction with livereload).
👍 for number 2.
I don't like the hard drive thrashing that happens if I have 30 tabs open and hit "Save All" when I've only modified 3 things.
This is the same issue as reported in #2871, I think.
As already mentioned in comments above, this is particularly anoying when working on large C/C++ projects, where saving an unchanged header file may trigger massive rebuilds.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
benogle commentedon Jun 30, 2015
A couple options for solving this:
mehcode commentedon Jun 30, 2015
@sergiom-sf The problem here is that atom explicitly saves files that have not been modified when asked to save in order to fire a browser reload (for instance when used in conjunction with livereload).
👍 for number 2.
I don't like the hard drive thrashing that happens if I have 30 tabs open and hit "Save All" when I've only modified 3 things.
mehcode commentedon Jul 1, 2015
Agreed 💯
I'd also ask for an authentication prompt when trying to save a file that is read-only at a permission level (rather than a mount level).
TrondKjeldas commentedon Jul 14, 2015
This is the same issue as reported in #2871, I think.
As already mentioned in comments above, this is particularly anoying when working on large C/C++ projects, where saving an unchanged header file may trigger massive rebuilds.
jamesgpearce commentedon Oct 29, 2015
See also atom/text-buffer#94
lock commentedon Jan 19, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!