Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Opening files from unmounted drives wipes their content when drive is mounted #78

Closed
1 task
andersmelin opened this issue Feb 13, 2017 · 1 comment
Closed
1 task

Comments

@andersmelin
Copy link

Prerequisites

Description

If, when launching atom, some of the files it tries to open is located on an unmounted drive atom will still create tabs for those files. Those tabs will be blank. If that drive is now mounted atom autosaves those files when they lose focus, leaving them blank.

Steps to Reproduce

  1. create a testfile on secondary drive
  2. Open the file in atom and write some content
  3. Quit atom
  4. unmount the drive containing the testfile
  5. open atom using the application launcher. Notice the empty tabs
  6. Mount the secondary drive
  7. Trigger an autosave on the testfile

Expected behavior:
If a file is not accessible atom should not try to display it contents or autosave should be prevented from interfering with that file. Thinking of it, autosave performes it job correctly. Maybe the issue doesnt belong here rather at atom

Actual behavior:
Atom tries to show the files content but since it cannot it displays an empty document which is sensible to autosaves

Reproduces how often: [What percentage of the time does it reproduce?]
100%

Versions

Atom 1.12.7
Autosave 0.23.1
Linux mint 18

Additional Information

In the meantime, use git

@Ben3eeE
Copy link

Ben3eeE commented Sep 18, 2017

Thanks for taking the time to contribute!

We noticed that this is a duplicate of atom/atom#11797. You may want to subscribe there for updates. We are investigating a fix for a similar issue in atom/atom#15681. You may also want to subscribe there for updates.

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.

For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.

@Ben3eeE Ben3eeE closed this as completed Sep 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants