Skip to content

Remove autocomplete.preloadModules #1704

@asierralozano

Description

@asierralozano

Environment 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!

Metadata

Metadata

Assignees

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions