Spyder: Error for calltip with empty signature

Created on 14 Jun 2019  路  6Comments  路  Source: spyder-ide/spyder

Description

What steps will reproduce the problem?

import os

os.getcwd( -> triggers calltip but an error raises

Traceback

  File "C:\Users\Daniel\Anaconda3\envs\spyder4\lib\site-packages\qtconsole\base_frontend_mixin.py", line 138, in _dispatch
    handler(msg)
  File "C:\Users\Daniel\Desktop\Spyder\spyder\spyder\plugins\ipythonconsole\widgets\help.py", line 141, in _handle_inspect_reply
    documentation = self.get_documentation(content)
  File "C:\Users\Daniel\Desktop\Spyder\spyder\spyder\plugins\ipythonconsole\widgets\help.py", line 46, in get_documentation
    documentation = text.split(signature)
ValueError: empty separator

Versions

  • Spyder version: 4.0.0.dev0 eb70e6b6d
  • Python version: 3.7.3
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 8.1

Dependencies

pygments >=2.0     :  2.4.0 (OK)
qdarkstyle >=2.6.4 :  2.6.8 (OK)
sphinx >=0.6.6     :  2.0.1 (OK)
pyls >=0.19.0;<0.25:  0.24.0 (OK)
nbconvert >=4.0    :  5.5.0 (OK)
pandas >=0.13.1    :  0.24.2 (OK)
numpy >=1.7        :  1.16.3 (OK)
sympy >=0.7.3      :  1.4 (OK)
cython >=0.21      :  0.29.7 (OK)
qtconsole >=4.2.0  :  4.5.1 (OK)
IPython >=4.0      :  7.5.0 (OK)
matplotlib >=2.0.0 :  3.0.3 (OK)
pylint >=0.25      :  2.3.1 (OK)
IPython Console Bug

All 6 comments

Thanks for reporting @dalthviz will fix it now

Hi @dalthviz sorry, I thought this was related to the code editor. I think you have more xp with the ipython console :-p. Could you fix it?


Also if I try doing on the ipython console

import subprocess
subprocess.Popen(

I am getting

  File "/Users/gpena-castellanos/anaconda2/envs/spyder/lib/python2.7/site-packages/qtconsole/base_frontend_mixin.py", line 138, in _dispatch
    handler(msg)
  File "/Users/gpena-castellanos/Dropbox (Personal)/develop/quansight/spyder/spyder/plugins/ipythonconsole/widgets/help.py", line 146, in _handle_inspect_reply
    language=self.language_name,
AttributeError: 'ShellWidget' object has no attribute 'language_name'

@goanpeca, you need to update qtconsole to fix that error.

Right I forgot

@goanpeca no worries, actually I think the error is part of the changes I made to show documentation in the calltips of the IPython Console, so I will work on it :+1:

Thanks!

Was this page helpful?
0 / 5 - 0 ratings