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
try to paste some text into it 3. What is the expected output? What do you see instead? Nothing happens. If I execute a command before that, the paste works. Please use labels and text to provide additional information. I guess this is due to a missing initialization (why only OS X? On windows it works.). When i run
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 298, in keyPressEvent
self.postprocess_keyevent(event)
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 799, in postprocess_keyevent
ShellBaseWidget.postprocess_keyevent(self, event)
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 421, in postprocess_keyevent
self.paste()
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 901, in paste
lines = self.get_current_line_to_cursor() + text + end
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 158, in get_current_line_to_cursor
return self.get_text(self.current_prompt_pos, 'cursor')
File "/Library/Python/2.6/site-packages/spyderlib/widgets/codeeditor/base.py", line 602, in get_text
cursor = self.__select_text(position_from, position_to)
File "/Library/Python/2.6/site-packages/spyderlib/widgets/codeeditor/base.py", line 589, in __select_text
cursor.setPosition(position_from)
TypeError: QTextCursor.setPosition(int, QTextCursor.MoveMode mode=QTextCursor.MoveAnchor): argument 1 has unexpected type 'NoneType'
From christop...@gmail.com on 2011-03-28T03:34:28Z
What steps will reproduce the problem?
$ python spyderlib/widgets/externalshell/baseshell.py
and paste into there i get
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 298, in keyPressEvent
self.postprocess_keyevent(event)
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 799, in postprocess_keyevent
ShellBaseWidget.postprocess_keyevent(self, event)
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 421, in postprocess_keyevent
self.paste()
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 901, in paste
lines = self.get_current_line_to_cursor() + text + end
File "/Library/Python/2.6/site-packages/spyderlib/widgets/shell.py", line 158, in get_current_line_to_cursor
return self.get_text(self.current_prompt_pos, 'cursor')
File "/Library/Python/2.6/site-packages/spyderlib/widgets/codeeditor/base.py", line 602, in get_text
cursor = self.__select_text(position_from, position_to)
File "/Library/Python/2.6/site-packages/spyderlib/widgets/codeeditor/base.py", line 589, in __select_text
cursor.setPosition(position_from)
TypeError: QTextCursor.setPosition(int, QTextCursor.MoveMode mode=QTextCursor.MoveAnchor): argument 1 has unexpected type 'NoneType'
Might be related to issue #502 .
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=599
The text was updated successfully, but these errors were encountered: