-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
File switcher error #5384
Comments
@ccordoba12 I'm going to take a look at it. @ram15565 Thanks for the report. Could you tell us a little bit more about what you were doing when the error happened? |
For the record, this is not a duplicate, but this is related to Issue #5317. These two issues could probably be fixed with the same PR. |
@ccordoba12 1 - open spyder Traceback (most recent call last):
File "C:\Users\jsgosselin\spyder\spyder\app\mainwindow.py", line 2798, in open_fileswitcher
self.fileswitcher.setup()
File "C:\Users\jsgosselin\spyder\spyder\widgets\fileswitcher.py", line 757, in setup
current_path = self.current_path
File "C:\Users\jsgosselin\spyder\spyder\widgets\fileswitcher.py", line 346, in current_path
return self.paths_by_widget[self.get_widget()]
KeyError: None So far, I've been unable to reproduce this error with the Editor because I can't find a case when the Editor would allow to have no file opened. It always open a temp or untitled file, thus preventing this error to occur. So what I can do is to implement a safeguard in the file switcher to handle the case when |
Sure, I think it's the best solution. @dalthviz, what do think? |
Yep I think is ok 👍 @ccordoba12, and thanks again @jnsebgosselin for all the good work in the |
Alright then, I'm going to work on this this weekend. Thanks for the feedback guys. |
@jnsebgosselin, any updates on this one? |
@ccordoba12 I'm going to work on this this week. |
Description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Please provide any additional information below
File "/usr/local/lib/python3.5/dist-packages/spyder/app/mainwindow.py", line 2795, in open_fileswitcher
self.fileswitcher.setup()
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/fileswitcher.py", line 757, in setup
current_path = self.current_path
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/fileswitcher.py", line 346, in current_path
return self.paths_by_widget[self.get_widget()]
KeyError: None
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: