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

can't paste into a new external shell #599

Closed
spyder-bot opened this issue Feb 17, 2015 · 3 comments
Closed

can't paste into a new external shell #599

spyder-bot opened this issue Feb 17, 2015 · 3 comments

Comments

@spyder-bot
Copy link
Collaborator

From christop...@gmail.com on 2011-03-28T03:34:28Z

What steps will reproduce the problem?

  1. on OS X start a new external shell
    1. 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

$ 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

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2011-04-02T06:36:44Z

This issue was closed by revision 3c789eabdcc0 .

Status: Fixed

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2011-04-02T06:37:06Z

This issue was closed by revision a13eba8a0719 .

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2011-04-24T07:38:45Z

This issue was closed by revision a13eba8a0719 .

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

1 participant