emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

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

Open Timothy-W-Hilton opened 2 years ago

Timothy-W-Hilton commented 2 years ago

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.

oswid commented 1 year ago

same issue

oswid commented 1 year ago

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