Hi, 

Im seeing a bug with similar behaviour in Spyder 2.1.13.1 running on Ubuntu 
13.04

sphinx and rope are both updated using pip install * --upgrade

steps to reproduce: 
1. open spyder
2. in console try to write "len("
3. expected behaviour: the whole text is displayed on console & object 
inspector updates to function len
4. observed behaviour: 
a. console does not show the left parentheses. 
b. internal console shows Traceback posted below. 

Note:
After applying the suggested workaround:" Go to Preferences > Console > 
Introspection and uncheck" and a restart  the functionality in 3 is as 
expected. 

So I have a workaround for the bug, but I'm reporting in case someone wants 
to actually kill it :D
(and in case someone else is looking for a workaround for this same bug)


Thanks guys. 


>>> Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/shell.py", line 
300, in keyPressEvent
    self.postprocess_keyevent(event)
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/shell.py", line 
787, in postprocess_keyevent
    ShellBaseWidget.postprocess_keyevent(self, event)
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/shell.py", line 
435, in postprocess_keyevent
    self._key_parenleft(text)
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/shell.py", line 
866, in _key_parenleft
    self.show_docstring(last_obj, call=True)
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/shell.py", line 
1042, in show_docstring
    self.inspector.set_object_text(text, ignore_unknown=True)
  File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", 
line 531, in set_object_text
    found = self.show_help(text, ignore_unknown=ignore_unknown)
  File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", 
line 744, in show_help
    self.set_plain_text(hlp_text, is_code=is_code)
  File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", 
line 500, in set_plain_text
    self.plain_text.set_text(text, is_code)
  File "/usr/lib/python2.7/dist-packages/spyderlib/plugins/inspector.py", 
line 185, in set_text
    self.editor.set_text(text)
  File 
"/usr/lib/python2.7/dist-packages/spyderlib/widgets/sourcecode/codeeditor.py", 
line 1380, in set_text
    self.setPlainText(text)
TypeError: QPlainTextEdit.setPlainText(QString): argument 1 has unexpected 
type 'dict'


On Wednesday, February 23, 2011 10:03:57 AM UTC-6, Carlos Córdoba wrote:
>
> Hi Timmie,
>
> As David rightly notes, the root of your problem can be that you have 
> installed Spyder 1 and Spyder 2 side by side. If this is the case, you 
> have to uninstall both before install Spyder 2 again.
>
> If this is not the case, you can still try two things:
>
> 1. Do a mouse right-click above any toolbar and select "Internal 
> Console". This is the place where all internal error messages go. So 
> make it visible when you are working on the editor, and please check 
> what gets printed there when you type "("
>
> 2. Go to Preferences > Console > Introspection and uncheck "Enable 
> monitor". This should disable the connection between the editor and the 
> console.
>
> Cheers,
> Carlos
>
> El 23/02/11 04:08, David Verelst escribi�:
> > you could try to start-up spyder in debug mode:
> > from a command prompt: python.exe spyder -d (don't know how it exactly
> > goes on your windows machine, with or without .exe and if Python is in
> > your path)
> > and see if anything comes up.
> >
> > Have you checked the settings:
> > preferences>  editor>  code introspection/analysis>  automatic
> > notification to object inspector
> > preferences>  console>  introspection>  automatic notification to
> > object inspector
> >
> > Or try to import rope from a spyder console?
> >
> > I made a mistake before by mixing up two installations of spyder,
> > which had some annoying side effects. Maybe that's the case here as
> > well?
> >
> >
> > On 23 February 2011 09:52, Timmie<[email protected] <javascript:>> 
>  wrote:
> >>> Works fine on my end (ubuntu 10.04 64bit, spyder from repo, rev 1202).
> >>> Have you installed rope correctly?
> >>> Further, you need sphinx installed
> >>> to enjoy the rich text view.
> >> I updated all: rope, Sphinx, Spyder all from their respective repos.
> >>
> >> No object inspector for console nor for editor.
> >>
> >> Where could be the problem?
> >>
> >> --
> >> You received this message because you are subscribed to the Google 
> Groups "spyder" group.
> >> To post to this group, send email to [email protected]<javascript:>
> .
> >> To unsubscribe from this group, send email to 
> [email protected] <javascript:>.
> >> For more options, visit this group at 
> http://groups.google.com/group/spyderlib?hl=en.
> >>
> >>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to