Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataloss when Spyder gets confused about which file goes with which editor tab #1269

Closed
spyder-bot opened this issue Feb 17, 2015 · 4 comments

Comments

@spyder-bot
Copy link
Collaborator

From kinnison...@gmail.com on 2013-02-12T10:00:14Z

Spyder Version: 2.2.0beta1
Python Version: 2.7.3
Qt Version: 4.8.1, PyQt4 (API v1) 4.9.1 on Linux

What steps will reproduce the problem?

  1. see issue #1225 for the basic setup
    1. I've not yet tried to reproduce, I've not seen a clear pattern yet. What is the expected output? What do you see instead? After using an undocked editor for a while, throughout normal development, I sometimes see the undocked editor get out of sync with the docked editor. Some of the file tabs in the docked editor (which I only use rarely) will show the wrong names for the file actually being displayed.

Please provide any additional information below

. I used to think that this was just a minor issue, not even worth mentioning separate from issue #1225 . But earlier I almost lost work due to this bug. The undocked editor was out of sync, so I decided to restart Spyder. I was asked to save one of the files I was working on, and chose to save it (obvious choice). When I reopened Spyder, I found that my file had been overwritten with the contents of a different file.

It seems like this isn't just a visual mismatch, but that Spyder is really loosing track of which file is which because it doesn't properly separate the two editors. I only managed to recover my work because it was in Dropbox. Otherwise, I'd have lost everything back to my last commit.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1269

@spyder-bot
Copy link
Collaborator Author

From kinnison...@gmail.com on 2013-02-12T08:34:45Z

Still not able to reproduce regularly, but it seems like it could be related to the handling of untitled#.py documents. Those always seem to be involved when the problem arises (from what I can remember).

@spyder-bot
Copy link
Collaborator Author

From kinnison...@gmail.com on 2013-02-14T07:05:15Z

It happened again. I had a number of files open, closed one of them, and then noticed that one of the remaining tabs in the docked editor only was incorrectly displaying the contents of the file I just closed. Also, this bug is not carried over in saved sessions (I tried "save session and quit" to see if I could save the buggy state, but everything was working properly when I reloaded it).

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2013-02-16T06:22:17Z

Status: Accepted
Owner: pierre.raybaut
Labels: MS-v2.2

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2013-02-16T06:28:44Z

This issue was updated by revision db8886ab08b9 .

Status: Fixed

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

No branches or pull requests

1 participant