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 closing a file #5226

Closed
impact27 opened this issue Sep 13, 2017 · 2 comments
Closed

error when closing a file #5226

impact27 opened this issue Sep 13, 2017 · 2 comments

Comments

@impact27
Copy link
Contributor

Description

What steps will reproduce the problem?

  1. ????
  2. Press the cross in the editor to close the file

Please provide any additional information below

File "/Users/quentinpeter/pyscripts/spyder/spyder/widgets/editor.py", line 1394, in close_file
new_index = self._get_previous_file_index()
File "/Users/quentinpeter/pyscripts/spyder/spyder/widgets/editor.py", line 1757, in _get_previous_file_index
w_id = self.stack_history.pop(last)
File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_collections_abc.py", line 993, in pop
v = self[index]
File "/Users/quentinpeter/pyscripts/spyder/spyder/widgets/editor.py", line 307, in getitem
return self.id_list.index(self.history[i])
ValueError: 4342516136 is not in list

Version and main components

  • Spyder Version: 4.0.0.dev0 474e59379
  • Python Version: 3.6.2
  • Qt Versions: 5.9.1, PyQt5 5.9 on Darwin

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.13.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)
psutil >=0.3     :  5.2.2 (OK)
nbconvert >=4.0  :  5.2.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  0.26 (OK)
qtconsole >=4.2.0:  4.3.0 (OK)
IPython >=4.0    :  6.1.0 (OK)
pylint >=0.25    :  1.7.2 (OK)

@ccordoba12
Copy link
Member

@rlaverde, please take a look at this one.

@rlaverde rlaverde modified the milestones: v4.0beta1, v3.2.4 Sep 13, 2017
@rlaverde
Copy link
Member

rlaverde commented Sep 13, 2017

I moved it to 3.2.4 because this code is also present in 3.x

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