lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

lsp-ui-doc-show shows signature, not docstring

Open Timothy-W-Hilton opened this issue 2 years ago • 2 comments

If I run lsp-ui-doc-show with point at [n]p.array, I get a popup containing the full docstring, as expected:

NumPy
=====

Provides
  1. An array object of arbitrary homogeneous items
...
Exceptions to this rule are documented.

With point at np.a[r]ray, I get the function signature in the minibuffer, with no information about each argument.

I expected to see the full docstring, as for np, like this:

array(object, dtype=None, *, copy=True, order='K', subok=False, ndmin=0,
      like=None)

Create an array.

Parameters
----------
object : array_like
    An array, any object exposing the array interface, an object whose
...

I am using doom emacs, emacs 27.2.50, python-lsp-server.

Timothy-W-Hilton avatar Mar 21 '22 00:03 Timothy-W-Hilton

same issue

oswid avatar Sep 13 '22 10:09 oswid

@Timothy-W-Hilton did you find out how to fix the problem? Or some substitute

oswid avatar Sep 13 '22 15:09 oswid