You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've determined the package is installed at ~/.local/lib/python3.8/site-packages via pip3 show mujoco. But still not working.
Expected behavior
I found out when I disable the Pylance by
"python.languageServer": "Jedi",
the autocomplete and IntelliSense can work normally.
Actual behavior
What is strange to me is that some packages like numpy are installed in the same path with mujoco, but numpy 's autocomplete and intellisense can work normally.
Summary
Is this a problem with the mujoco package or a problem with Pylance?
If it is a problem with the package, why does the IntelliSense work after Pylance is disabled?
If it is a problem with Pylance, why does numpy's IntelliSense work?
I would be very grateful if you could answer that question, because I spent a long time on it.
The text was updated successfully, but these errors were encountered:
Thanks for the issue. The "problem" here is that Mujoco is a wrapper around native code. Pylance cannot read native code in order to find the necessary information to display your intellisense. This is because Pylance doesn't run python code. It's a static analyzer.
You can tell that by looking at the install of Mujoco:
A good portion of the public interface is in .pyd files (native python modules).
Mujoco would have to provide type stubs in order for Pylance to find the necessary information.
Environment data
Code Snippet
I installed the package
mujoco
via pip.In python, the following code can be run successfully
But neither autocomplete nor IntelliSense work
Repro Steps
I've tried a few methods
All the interpreters have tried, but nothing works
settings.json
in User environmet.I've determined the package is installed at
~/.local/lib/python3.8/site-packages
viapip3 show mujoco
. But still not working.Expected behavior
I found out when I disable the Pylance by
the autocomplete and IntelliSense can work normally.
Actual behavior
What is strange to me is that some packages like
numpy
are installed in the same path withmujoco
, butnumpy
's autocomplete and intellisense can work normally.Summary
Is this a problem with the
mujoco
package or a problem with Pylance?numpy
's IntelliSense work?I would be very grateful if you could answer that question, because I spent a long time on it.
The text was updated successfully, but these errors were encountered: