-
Notifications
You must be signed in to change notification settings - Fork 786
No autocomplete for pybullet #663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rubendsa, thanks for the report. The reason you don't see the completions is because pybullet is a compiled module without type stubs. Pylance cannot analyze compiled modules and cannot give you completions if there are no type stubs. My recommendation is to request the library authors to create type stubs for pybullet. thanks! |
Thanks @judej ! Digging a bit deeper, how is it that pycharm is able to analyze pybullet despite the lack of type stubs? Below is an example screenshot. |
Some analyzers will execute modules to examine their contents; this isn't something we currently do, hence the difference. |
I see, thanks @jakebailey ! |
@rubendsa , you can add the pycharm generated stub file (extracted_here) in top-level directory for vs code as a work around. Also See: bullet#3193 |
Uh oh!
There was an error while loading. Please reload this page.
Environment data
Pylance language server 2020.11.2 (pyright 750a296b)
OSX 10.13.6
pyenv Python 3.7.3
Pybullet is installed with
pip install pybullet==3.0.7
Expected behaviour
Expected behavior autocompletes available functions (identical to this: microsoft/python-language-server#482). Importing pybullet in an ipython instance autocompletes just as expected:
Actual behaviour
Autocomplete works for other libraries (ex: numpy), but not pybullet.

Autocomplete working with numpy:

Logs
The text was updated successfully, but these errors were encountered: