Closed dalanicolai closed 1 year ago
I have found the culprit. The problem is that the eldoc
function in anaconda-mode.py
only returns signature data when len(signatures) == 1
, while for os.getenv()
the length == 2. It would be nice to show both signatures with eldoc.
Thanks
While trying anaconda-mode, I've noticed that it does not retrieve signatures for certain functions. Specifically, I was testing with the following code
Anaconda mode does retrieve a signature when the cursor is between the parentheses after
print
, but it does not retrieve the signature when between the parentheses afteros-getenv
.Using the jedi api from a terminal, jedi.Script.get_signatures does retrieve signatures for the latter position. Also, does jedi.el.
I could not find a reason for this behavior, also I could not debug it easily. Therefore I am creating this issue.
For completeness, I only see a
*anaconda-mode*
buffer which contains only the lineanaconda_mode port 38419
. Also, I am using python version 3.11 (but I think I have also tested it with version 3.9).Thank you for this otherwise great package!