ivanov / vim-ipython

A two-way integration between Vim and IPython 0.11+
http://github.com/ivanov/vim-ipython
1.04k stars 163 forks source link

Error when showing docstring either using <leader>d in vim or mouse over in gvim #69

Closed Fija closed 11 years ago

Fija commented 11 years ago

I try to get the docstring of "range", when in vim, cursor over r in range, pressing backslash+d, I get:

Traceback (most recent call last): File "", line 1, in File "", line 197, in get_doc_buffer File "", line 153, in get_doc TypeError: object_info() takes exactly 2 arguments (3 given)

in gvim when mouse over range(normal mode), I get:

Error detected while processing function IPythonBalloonExpr: line 5: Traceback (most recent call last): File "", line 1, in File "", line 153, in get_doc TypeError: object_info() takes exactly 2 arguments (3 given) line 6: E121: Undefined variable: l:doc E15: Invalid expression: l:doc

I'm using ubuntu 12.04, vim 7.3, ipython 0.12.1. I tried the same thing in ipython notebook and in ipython console, everything is OK, so I guess it may be the issue with vim-ipython

Another confusion is that even when monitor_subchannel=True, I still need to press backslash+s to open the "shell", ctrl-s just convey the message but the shell won't pop up as shown in tutorial youtube video. Does it have any connection with the main issue above?

ivanov commented 11 years ago

this should be fixed in master now.

Another confusion is that even when monitor_subchannel=True, I still need to press backslash+s to open the "shell", ctrl-s just convey the message but the shell won't pop up as shown in tutorial youtube video. . Does it have any connection with the main issue above?

no, it does not, but that's reported in #36, and I should have a fix for that soon