This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Autocompletion doesn't work for some numpy's functions #1621
Labels
duplicate
This issue or pull request already exists
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977):"python.jediEnabled": false
Expected behaviour
I expect to see what parameters I need to fill and what will those functions return to me.
Actual behaviour
After I imported numpy in the way
import numpy as np
, I tried to use some math functions. When I tried to type innp.sin
, nothing about sin appeared. I could only see other methods like_sanity_check
. This happened to cos and exp. But for matmul, sum, dot, autocompletion and hints sometimes work well. (It seems that after vs intellicode run for a moment, they work well for matmul. At the buttom ofhow to use
ismatmul: unknown
)Besides, when I moved the cursor onto
np.sin()
, it showedsin: unknown
p.s. On another computer which I don't install visual studio intellicode, autocompletion works. But it only tells me sin and matmul are ufunc, which is no use.
Steps to reproduce:
import numpy as np
np.sin
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)I have tried to uninstall python extension and reinstrall, nothing happen.
I find a solution, using Jedi. But I want to try coding with visual studio intellicode, which needs me to use MS language server
The text was updated successfully, but these errors were encountered: