question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove autocomplete.preloadModules

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
asierralozanocommented, Sep 21, 2018

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!

2reactions
lucasrabelocommented, Aug 1, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preload custom module python vscode - Stack Overflow
Show activity on this post. You can add them like below "python.autoComplete.preloadModules": ["numpy", "pandas", "matplotlib"],.
Read more >
Houdini tip | Using HOU module in Visual Studio Code
In this quick post I will show how to set-up Visual Studio Code (VSCode) auto-completion for hou module. hou_code. UPDATE 1: Added Interpreter ......
Read more >
Link types: modulepreload - HTML - MDN Web Docs - Mozilla
The modulepreload keyword for the rel attribute of the element provides a declarative way to preemptively fetch a module script and its ...
Read more >
Add .dll reference to get the Intellisense - #57 - Dynamo Forum
How to install Visual Studio Code to Create Python Code with Autocomplete/Intellisense [including the RevitAPI.dll]:.
Read more >
Python for Unity first impression and VSCode setup.
autoComplete.preloadModules": [ "unity_python"],. "terminal.integrated.env.windows ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found