question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception when saying yes to saving modifications when a modified file is deleted

See original GitHub issue

Steps to reproduce

  1. Create a file in a directory, save it
  2. Modify the file (don’t save it)
  3. In the project panel, select the file, press Delete
  4. There is a dialog “File will be moved to the recycle bin. OK / Cancel” Answer OK
  5. 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:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gene-pavlovskycommented, Jul 20, 2018

Confirmed fixed, thanks

0reactions
SlavaRacommented, Jul 19, 2018
Could not find a part of the path 'C:\projects\opensource\Haxe\NodeJSTestProject\src\final\CFoo.hx'.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at PluginCore.Helpers.FileHelper.WriteFile(String file, String text, Encoding encoding, Boolean saveBOM)
   at FlashDevelop.Docking.TabbedDocument.Save(String file, String reason)
   at FlashDevelop.MainForm.Save(Object sender, EventArgs e)
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found