Open Coleej opened 2 years ago
Another observation: The signature for local functions only appears if they are used on line 3 or greater in a cell.
Hi @Coleej thanks for reporting. This is due to a change in JupyterLab 3.4.7 (I am guilty) which required some changes in this extension. This is already fixed by https://github.com/jupyter-lsp/jupyterlab-lsp/pull/857 but I did not get enough time to release a new version - sorry! It is on my agenda, and it's usually easier to find time in the upcoming holiday season.
Just to clarify this just relates to the algorithm for placement of the hover box; there is no distinction between imported packages or functions defined in a notebook as far as this extension is concerned, so either it just happened that you were trying to use imported functions it in the first two lines or it is a server problem.
@krassowski, the hover box for completion appears correctly (I think) on the first line for imported/local functions, but the signature only appears for local functions on the 3rd line or lower. Also builtin functions do not show signatures.
If this server problem, do you have advice/direction on troubleshooting? I tested on Chrome and Edge, but my work's IT won't let me install firefox :(
Description
Code signature does not display when cursor is within a function when imported. Other lsp server function work (hover, code completion, renaming). This occurred with a fresh install of jupyterlab, and jupyterlab-lsp.
Reproduce
Code signature working for locally defined function
Code signature not working for imports
Expected behavior
Code signature to appear for imported packages
Context
Required: installed server extensions
Required: installed lab extensions
Troubleshoot Output
Command Line Output