Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

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.

Activity

  1. benogle commented on Jun 30, 2015

    @benogle
    Contributor

    A couple options for solving this:

    1. text buffer checks if read only, and doesnt save if modified
    2. we create a setting to save only when modified
  2. mehcode commented on Jun 30, 2015

    @mehcode
    Contributor

    @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.

  3. mehcode commented on Jul 1, 2015

    @mehcode
    Contributor
    • Unmodified, read-only file -> no save and no error reported.
    • Modified, read-only file -> no save and report permission error
    • Unmodified, writeable file -> no save by default, add option to enable for liverecord-like cases.
    • Modified, writeable file -> simply save the file.

    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).

  4. TrondKjeldas commented on Jul 14, 2015

    @TrondKjeldas

    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.

  5. self-assigned this
    on Oct 22, 2015
  6. jamesgpearce commented on Oct 29, 2015

    @jamesgpearce
  7. lock commented on Jan 19, 2019

    @lock

    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!

  8. locked as resolved and limited conversation to collaborators on Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions