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.

Modifying files outside of Atom creates ENOENT errors #6210

Closed

Description

@winstliu

Some repro steps that I gathered from the existing issues:

  1. Have a file open in branch something that doesn't exist in branch atom
  2. git checkout atom
  3. ENOENT 💥
    OR
  4. Have a file open in Atom that will be affected by git rebase
  5. git rebase
  6. ENOENT 👎
    OR
    Just simply rename a file outside of Atom that's currently open inside of Atom.

Activity

  1. benogle commented on Apr 1, 2015

    @benogle
    Contributor

    Are you able to reproduce these?

  2. winstliu commented on Apr 1, 2015

    @winstliu
    ContributorAuthor

    No on latest master.
    My steps:
    mkdir gittest
    git init
    nano test (input test into it, then save and close)
    git add test
    git commit -m "Initial commit"
    Open test up in Atom
    git checkout -b test
    rm test
    git add test
    git commit -m "Remove test"
    git checkout master
    Nothing happened, though I did notice that the close icon doesn't change into the "unsaved changes" icon until you make a change within the file.

  3. changed the title [-]Git commands cause ENOENT/EPERM errors when they modify files currently open in Atom[/-] [+]Modifying files outside of Atom creates ENOENT errors[/+] on Apr 13, 2015
  4. winstliu commented on Apr 13, 2015

    @winstliu
    ContributorAuthor

    Just updated the title and description to better describe what's happening.
    I still can't reproduce this though even with the new steps provided in #6361.

  5. iclanzan commented on Apr 15, 2015

    @iclanzan

    Man, this issue is annoying me. Whenever I want to switch branches, I first have to close all open files in atom to work around it.

    I’m on Atom 0.191.0.

  6. iclanzan commented on Apr 15, 2015

    @iclanzan

    I tried to build a reduced test case like the one you described above, but can’t reproduce the bug, yet it is happening in all my projects.

  7. benogle commented on Apr 15, 2015

    @benogle
    Contributor

    :( What system? I still have never seen this

  8. iclanzan commented on Apr 15, 2015

    @iclanzan

    I’m on OS X Yosemite (10.10.3).

  9. winstliu commented on Apr 17, 2015

    @winstliu
    ContributorAuthor

    Repro steps from @halhenke (haven't tested these):
    1 Open a new tab in a window associated with a saved project
    2 Save the contents as a new file
    3 Leave the tab open & close the window/project (you can leave Atom itself running)
    4 Delete the file (its importnant that you close the window/project first - otherwise Atom keeps track of the files relocation to the Trash).
    5 Reopen the project. You should have errors about the file being missing.

  10. iclanzan commented on Apr 17, 2015

    @iclanzan

    @50Wliu I have tried the above steps and they indeed trigger the error.

  11. mattcollier commented on Jul 20, 2015

    @mattcollier

    I'm needing to 'git rebase' regularly in order to squash commits. Having files open in Atom during that process results in Atom and/or the git-diff package getting very confused resulting in an inaccurate representation of changes.

  12. winstliu commented on May 12, 2016

    @winstliu
    ContributorAuthor

    This seems to have been fixed as there haven't been any more reports.

    If anyone is still experiencing this issue please comment here.

  13. eboujlal commented on Aug 16, 2017

    @eboujlal

    Same issue

  14. lock commented on Mar 31, 2018

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

  15. locked and limited conversation to collaborators on Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions