You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that reporting bugs from Spyder's help menu ("?" > "Report
issue...") will fill version details for Spyder, Python and Qt in this description for you.
What steps will reproduce the problem?
On the current development version, put one or two cell delimiters in an empty python file.
%%
%%
Place your cursor in either one of the two cells
Hit Ctrl+Enter to run the cell What is the expected output? What do you see instead? Nothing should happen as the cells are empty. Instead, the focus goes to the internal console with errors:
Traceback (most recent call last):
File "/home/sylvain/spyderlib_remote/spyderlib/widgets/editor.py", line 1995, in run_cell
text = self.get_current_editor().get_cell_as_executable_code()
File "/home/sylvain/spyderlib_remote/spyderlib/widgets/sourcecode/base.py", line 502, in get_cell_as_executable_code
text = self.get_selection_as_executable_code()
File "/home/sylvain/spyderlib_remote/spyderlib/widgets/sourcecode/base.py", line 466, in get_selection_as_executable_code
first_line = lines[0].lstrip()
IndexError: list index out of range
From sylvain....@gmail.com on 2014-03-01T20:46:53Z
Please note that reporting bugs from Spyder's help menu ("?" > "Report
issue...") will fill version details for Spyder, Python and Qt in this description for you.
What steps will reproduce the problem?
On the current development version, put one or two cell delimiters in an empty python file.
%%
%%
Place your cursor in either one of the two cells
Hit Ctrl+Enter to run the cell What is the expected output? What do you see instead? Nothing should happen as the cells are empty. Instead, the focus goes to the internal console with errors:
Traceback (most recent call last):
File "/home/sylvain/spyderlib_remote/spyderlib/widgets/editor.py", line 1995, in run_cell
text = self.get_current_editor().get_cell_as_executable_code()
File "/home/sylvain/spyderlib_remote/spyderlib/widgets/sourcecode/base.py", line 502, in get_cell_as_executable_code
text = self.get_selection_as_executable_code()
File "/home/sylvain/spyderlib_remote/spyderlib/widgets/sourcecode/base.py", line 466, in get_selection_as_executable_code
first_line = lines[0].lstrip()
IndexError: list index out of range
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1746
The text was updated successfully, but these errors were encountered: