Remove autocomplete.preloadModules
See original GitHub issueEnvironment data
- VS Code version: 1.23.1
- Extension version (available under the Extensions sidebar): 2018.4.0
- OS and version: CentOs 7
- Python version (& distribution if applicable, e.g. Anaconda): Python2.7
- Relevant/affected Python packages and their versions: Autodesk Maya completion module
Actual behavior
Referencing this question: https://stackoverflow.com/questions/49912163/vscode-add-preloaded-module-from-extrapath/49926294#49926294
I have added the maya’s completion path to python.autocomplete.extraPaths(/Applications/Autodesk/maya2018/devkit/other/pymel/extras/completion/py) available to download by the Autodesk Maya’s DevKit, because I would like to have the intellisense working with those modules.
Then, i have also added the module “maya” to python.autocomplete.preloadModules, because I would like to speed up the intellisense, but I think that is not working at all. It takes like 10 seconds to show the intellisense options
Steps to reproduce:
1- You can download the Maya’s DevKit with it’s own autocomplete modules from here: https://apps.autodesk.com/MAYA/en/Detail/Index?id=5525491636376351277&os=Win64&appLang=en
2- Unzip the file, and add the folder to python.autocomplete.extraPaths (In my case, the one that I told you above)
3- Add the maya module to python.autocomplete.preloadModules
4- Try restarting VSCode and importing the module with the following snippet:
import maya.cmds as cmds
Let me know if you need some more info!
Thanks for this amazing Extension and for your hard work!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:14 (5 by maintainers)
Hello!
I was trying the newest language server, and it seems that, for example, with the Autodesk Maya module, VSCode is showing up the autocomplete suggestions very quickly!
So it looks like it is a Jedi issue, and with the newest language server is working so smooth!
I have the same problem. Vs Code shows a lot of code but none related to the module. And the annoying part is if you press enter, it will import a lot of nonsense