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

AttributeError when using outline and split code #5167

Closed
jnsebgosselin opened this issue Sep 8, 2017 · 0 comments · Fixed by #5083
Closed

AttributeError when using outline and split code #5167

jnsebgosselin opened this issue Sep 8, 2017 · 0 comments · Fixed by #5083

Comments

@jnsebgosselin
Copy link
Member

Description of your problem

What steps will reproduce the problem?

  1. Open Spyder
  2. Split the Editor through the cog menu [X2 times]
  3. Close the last panel created
  4. Click on the outline editor

Traceback :
Traceback (most recent call last):
File "C:\Users\jsgosselin\spyder\spyder\plugins\editor.py", line 552, in
editorwindow=self))
File "C:\Users\jsgosselin\spyder\spyder\plugins\editor.py", line 1923, in load
focus=focus)
File "C:\Users\jsgosselin\spyder\spyder\plugins\editor.py", line 1506, in set_current_filename
return editorstack.set_current_filename(filename, focus)
AttributeError: 'NoneType' object has no attribute 'set_current_filename'
Traceback (most recent call last):
File "C:\Users\jsgosselin\spyder\spyder\widgets\editortools.py", line 492, in clicked

File "C:\Users\jsgosselin\spyder\spyder\widgets\editortools.py", line 477, in activated
parent = self.current_editor.parent()
AttributeError: 'NoneType' object has no attribute 'parent'

Versions and main components

  • Spyder Version: branch 3.x and master
  • Python Version: 3.6.1
  • Qt Version: 5.9.1
  • PyQt Version: 5.9
  • Operating system: Windows 7 64 bits

Dependencies

IPython >=4.0 : 6.1.0 (OK)
cython >=0.21 : 0.25.2 (OK)
jedi >=0.9.0 : 0.10.2 (OK)
nbconvert >=4.0 : 5.2.1 (OK)
numpy >=1.7 : 1.13.0 (OK)
pandas >=0.13.1 : 0.20.3 (OK)
pycodestyle >=2.3: 2.3.1 (OK)
pyflakes >=0.6.0 : 1.5.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.7.1 (OK)
qtconsole >=4.2.0: 4.4.0.dev (OK)
rope >=0.9.4 : 0.9.4-1 (OK)
sphinx >=0.6.6 : 1.6.2 (OK)
sympy >=0.7.3 : None (NOK)

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

Successfully merging a pull request may close this issue.

2 participants