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 when trying to go to cursor position in Outline #8510

Closed
ok97465 opened this issue Jan 2, 2019 · 0 comments
Closed

Error when trying to go to cursor position in Outline #8510

ok97465 opened this issue Jan 2, 2019 · 0 comments

Comments

@ok97465
Copy link
Contributor

ok97465 commented Jan 2, 2019

Description

What steps will reproduce the problem?

  1. new python file.
  2. click "go to line" button of Outline

gotoline

Traceback

  File "/home/ok97465/python/spyder/spyder/plugins/outlineexplorer/widgets.py", line 257, in go_to_cursor_position
    item = item_at_line(root_item, line)
  File "/home/ok97465/python/spyder/spyder/plugins/outlineexplorer/widgets.py", line 142, in item_at_line
    return item
UnboundLocalError: local variable 'item' referenced before assignment

Versions

  • Spyder version: 4.0.0.dev0 942f6a9
  • Python version: 3.6.7
  • Qt version: 5.9.4
  • PyQt5 version: 5.9.2
  • Operating System: Linux 4.20.0-1-MANJARO

Dependencies

pygments >=2.0    :  2.2.0 (OK)
qdarkstyle >=2.6.4:  2.6.4 (OK)
sphinx >=0.6.6    :  1.7.4 (OK)
psutil >=0.3      :  5.4.5 (OK)
pyls >=0.19.0     :  0.19.0 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
pandas >=0.13.1   :  0.23.0 (OK)
numpy >=1.7       :  1.14.3 (OK)
sympy >=0.7.3     :  1.1.1 (OK)
cython >=0.21     :  0.28.2 (OK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0     :  6.4.0 (OK)
matplotlib >=2.0.0:  3.0.2 (OK)
pylint >=0.25     :  1.8.4 (OK)
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

2 participants