-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove autocomplete.preloadModules #1704
Comments
I have met the same situation using the numpy. |
Yes, it looks like preloading isn't doing anything. |
I'm trying to get Blender as a Python module to work and am facing an issue where I can't get the autocompletion and linting to work in Visual Studio Code. If you
but it never loads the auto completion. As soon as you put in the dot between Is there something I'm doing wrong? The bpy.pyd is working fine in the interactive interpriter. OS: Windows 10 Pro 64 bit |
Does this new languageServer fix this issue? Or it is not related at all? |
@asierralozano it isn't related |
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 |
I have the same issue using tensorflow. |
We should make sure to check if both Jedi and the language server exhibit this bug. |
I can confirm we're procecssing
Language server does not utilize this setting, as it doesn't have the ability to pre-load modules. E.g. intellisense for tensorflow takes approx 8 seconds on my Mac with Jedi, however with the new language server it takes ~1 second. @ssunno @asierralozano @TylerGubala @TylerGubala |
If Jedi is doing the right thing but isn't meeting people's expectations and the setting makes no sense for the language server then we should probably consider dropping the setting (we can either fully deprecate it or simply remove the setting visibly so those that have it can continue to have it work for them). |
Agreed. |
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! |
If understood correctly I have to set |
@SheepDomination |
Environment data
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!
The text was updated successfully, but these errors were encountered: