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

Error while switching layouts #5729

Closed
shomenbanerjee opened this issue Nov 12, 2017 · 3 comments
Closed

Error while switching layouts #5729

shomenbanerjee opened this issue Nov 12, 2017 · 3 comments

Comments

@shomenbanerjee
Copy link

Description

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Please provide any additional information below

File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 2132, in closeEvent
if self.closing(True):
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 2186, in closing
self.save_current_window_settings(prefix)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 1415, in save_current_window_settings
self.maximize_dockwidget(restore=True)# Restore non-maximized layout
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 2268, in maximize_dockwidget
self.last_plugin.dockwidget.setWidget(self.last_plugin)
AttributeError: 'NoneType' object has no attribute 'dockwidget'
Error in atexit._run_exitfuncs:

Version and main components

  • Spyder Version: 3.2.4
  • Python Version: 3.6.3
  • Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.20.3 (OK)
numpy >=1.7      :  1.12.1 (OK)
sphinx >=0.6.6   :  1.6.3 (OK)
rope >=0.9.4     :  0.10.5 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
nbconvert >=4
@ccordoba12
Copy link
Member

Thanks for reporting.

@dalthviz, I think you solved a bug similar to this one before. Do you remember why it happens?

@ccordoba12 ccordoba12 changed the title Spyder - error while switching layouts Error while switching layouts Nov 12, 2017
@dalthviz
Copy link
Member

I'm not quite sure about this but probably we should add a validation here with something like ... or self.last_plugin is None:?

@ccordoba12 ccordoba12 modified the milestones: v3.2.5, v3.2.6 Dec 6, 2017
@ccordoba12 ccordoba12 modified the milestones: v3.2.6, v3.2.7 Dec 29, 2017
@ccordoba12 ccordoba12 modified the milestones: v3.2.7, v3.2.8, v3.2.6 Jan 8, 2018
@ccordoba12
Copy link
Member

Closing as a duplicate of issue #5477.

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

3 participants