Message from discussion
Editor overwrites a file with old content
Received: by 10.224.52.200 with SMTP id j8mr1410835qag.5.1350585204464;
Thu, 18 Oct 2012 11:33:24 -0700 (PDT)
X-BeenThere: spyderlib@googlegroups.com
Received: by 10.224.201.194 with SMTP id fb2ls1421681qab.3.gmail; Thu, 18 Oct
2012 11:33:23 -0700 (PDT)
Received: by 10.224.193.72 with SMTP id dt8mr6585547qab.7.1350585203874;
Thu, 18 Oct 2012 11:33:23 -0700 (PDT)
Received: by 10.224.2.134 with SMTP id 6msqaj;
Thu, 18 Oct 2012 08:02:24 -0700 (PDT)
Received: by 10.52.66.235 with SMTP id i11mr3686799vdt.7.1350572544659;
Thu, 18 Oct 2012 08:02:24 -0700 (PDT)
Date: Thu, 18 Oct 2012 08:02:24 -0700 (PDT)
From: Martin Gustafsson <martin.gustafsso...@gmail.com>
To: spyderlib@googlegroups.com
Message-Id: <08c98948-8c86-439f-a883-a4442ce92c6d@googlegroups.com>
Subject: Editor overwrites a file with old content
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_197_26550121.1350572544363"
------=_Part_197_26550121.1350572544363
Content-Type: multipart/alternative;
boundary="----=_Part_198_21054734.1350572544363"
------=_Part_198_21054734.1350572544363
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Hello,
This is a fairly serious problem which happened to me now for the second
time. It seems intermittent, so I am sorry that I cannot provide the exact
steps for replicating it. I can tell you what happened in both cases though:
I edit a file called "data.py", which is saved to disk. I run it, edit and
save several times without problems. Then - without doing anything I can
pinpoint as special - when I press F5 to run the file, Spyder asks me to
save the file and brings up a dialog for it. I had saved the file just a
moment before and not changed anything inbetween.In the saving dialog, I
select the file it's already saved under ('data.py'), get asked if I want
to overwrite the old file and accept this. Here is where the bug occurs:
Upon saving, the contents of the file change to something entirely
different, seemingly an old version of the same file. The file contents are
changed both on disk and in the editor, and so they are gone for good.
Best wishes
Martin Gustafsson
------=_Part_198_21054734.1350572544363
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hello,<br><br>This is a fairly serious problem which happened to me now for=
the second time. It seems intermittent, so I am sorry that I cannot provid=
e the exact steps for replicating it. I can tell you what happened in both =
cases though:<br><br>I edit a file called "data.py", which is saved to disk=
. I run it, edit and save several times without problems. Then - without do=
ing anything I can pinpoint as special - when I press F5 to run the file, S=
pyder asks me to save the file and brings up a dialog for it. I had saved t=
he file just a moment before and not changed anything inbetween.In the savi=
ng dialog, I select the file it's already saved under ('data.py'), get aske=
d if I want to overwrite the old file and accept this. Here is where the bu=
g occurs: Upon saving, the contents of the file change to something entirel=
y different, seemingly an old version of the same file. The file contents a=
re changed both on disk and in the editor, and so they are gone for good.<b=
r><br>Best wishes<br>Martin Gustafsson<br>
------=_Part_198_21054734.1350572544363--
------=_Part_197_26550121.1350572544363--