Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Unexpected behavior when removing a folder with pending file changes. #7594

Closed
2 tasks
pthiess opened this issue Apr 21, 2014 · 2 comments
Closed
2 tasks

Unexpected behavior when removing a folder with pending file changes. #7594

pthiess opened this issue Apr 21, 2014 · 2 comments

Comments

@pthiess
Copy link
Contributor

pthiess commented Apr 21, 2014

Steps to reproduce

  1. Create a new folder (Untitled-1) and a new file (Untitled-2) within the folder
  2. Start editing untitled-2, do not save
    image

3.Delete the folder Untitled-1
image

  1. Choose to keep changes in editor
  2. Quit Brackets
  3. When prompted to save changes choose
    image
  4. Choose Ok. Quit is interrupted.
  5. Try step 6 again and choose not to save.
  6. Open Brackets again (note: this didn't reproduce every time, so ignore the file name)
    image

Issues

  • Unsaved files in deleted folders are attempt to be saved as is instead of utilizing to identify the location
  • Unsaved files are somehow cached in some scenarios and cause errors when Brackets is started

Expected behaviour

Path names are checked and is being used instead in the above scenario.
Even if an attempt to save hasn't worked and the stream is recycled Brackets doesn't attempt to open unsaved files.

@peterflynn
Copy link
Member

@pthiess I think this is a dupe of #4760. The last part (step 6) wasn't reported before, so if you close this we should mention that additional symptom in the original bug.

@peterflynn
Copy link
Member

Reviewed - closing as duplicate, will update #4760 with the details from here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants