Exception when saying yes to saving modifications when a modified file is deleted
See original GitHub issueSteps to reproduce
- Create a file in a directory, save it
- Modify the file (don’t save it)
- In the project panel, select the file, press Delete
- There is a dialog “File will be moved to the recycle bin. OK / Cancel” Answer OK
- There is a dialog “Do you want to save the current changes? Yes / No / Cancel” Answer Yes
I think the “do you want to save the current changes” dialog shouldn’t show up. In reality the file which was supposed to be removed, is still there (with saved changes).
Related bug:
Repeat steps 1 and 2 from above, then in the Project panel try to delete the whole directory containing that file. There is a dialog “… and all its contents will be moved to the recycle bin. OK / Cancel”. Answer OK. There is (again) a dialog “Do you want to save the current changes? Yes / No / Cancel”. Answer Yes.
A System.IO.DirectoryNotFoundException
exception is thrown - FD is trying to save the file to that directory which it just deleted.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Why doesn't git recognize that my file has been changed ...
After making new changes in the code and saving it, when I tried the git add ./status commands the response was "branch already-up...
Read more >Why Can't I Save a Modified File Because of Problems with ...
It says "This picture can't be saved because of a problem with the file's properties.". Sometimes (only once, so far) it next says...
Read more >You may receive a "Your changes could not be saved ...
Save your workbook files to your local hard disk, or to a folder where you have Modify and Delete rights. You may then...
Read more >Modify ABA Detection Rules | InsightIDR Documentation
Make your desired modifications and click Save changes. Delete exceptions. Deleting exceptions is permanent and cannot be undone. Open the Rule Details peek ......
Read more >Don't Panic! Here's How to Recover an Excel File Not Saved
Everyone knows the terrible feeling of losing Excel work. Here's how to recover an Excel file that was not saved in case it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirmed fixed, thanks