#10229: Deleting attached files causes major problems
------------------------------+---------------------------------------------
Reporter: flawrence | Owner: was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: user interface | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------------+---------------------------------------------
Old description:
> Create a file, attach it in a Sage session, then delete/move the file.
> Sage does not like this - and every command results in `OSError: [Errno
> 2] No such file or directory: '/path/to/attached/file.py`. It won't even
> let you detach the file.
>
> At the moment before each command is executed, Sage checks to see if any
> attached files have been modified. Presumably instead it should except
> this error, remove the file from the list of attached files, and inform
> the user.
>
> Discovered by rossk when reviewing #378.
New description:
Create a file, attach it in a Sage session, then delete/move the file.
Sage does not like this - and every command results in `OSError: [Errno 2]
No such file or directory: '/path/to/attached/file.py`. It won't even let
you detach the file.
At the moment before each command is executed, Sage checks to see if any
attached files have been modified. Presumably instead it should except
this error, remove the file from the list of attached files, and inform
the user.
Discovered by rossk when reviewing #378.
Apply [attachment:trac_10229-2.patch]
--
Comment(by ltw):
Here is a new patch that detaches inaccessible files and issues warnings.
Doctests for the re-written function `modified_attached_files` have been
overhauled as well. Please review!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10229#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.