Autocomplete not working for Autodesk Maya 2018
See original GitHub issueFrom @monkeez on September 24, 2017 9:54
Environment data
VS Code version: 1.17.0-insider (f7962f0682a76516df51de4856f8ccc5d8ad578a) Python Extension version: 0.7.0 Python Version: 2.7.11 (Maya’s custom version, mayapy.exe) OS and version: Windows 10
My settings.json:
{
"editor.acceptSuggestionOnEnter": "off",
"editor.fontFamily": "Fira Mono, Consolas, 'Courier New', monospace",
"python.autoComplete.extraPaths": [
"C:/Program Files/Autodesk/Maya2018/devkit/other/pymel/extras/completion/py"
],
"python.pythonPath": "C:/Program Files/Autodesk/Maya2018/bin/mayapy.exe"
}
Actual behavior
Autocomplete is not using the extraPaths as there are modules that already exist with the same names in the interpreter’s site-packages directory.
Expected behavior
I don’t mean to be rude by comparing this to other editors, but it’s the easiest way to show what should be happening.
In PyCharm it is possible to remove the site-packages directory from the mayapy.exe interpreter and use the extra paths provided for code completion. Is it possible to get this kind of functionality in pythonVSCode?
Whereas in Sublime with the Anaconda package, it works if you set the interpreter to mayapy.exe and add the completion directory to the extra paths. I suppose it’s using the extra paths before the site-packages, or it’s able to use both at the same time without conflict.
Steps to reproduce:
n/a
Logs
Output from Python
output panel
Output from Console window
(Help->Developer Tools menu)
Copied from original issue: DonJayamanne/pythonVSCode#1236
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
Sorry for the lack of response, but I can verify this is now working for me as of the most recent extension update. I just wanted to say thank you!
@monkeez can you provide your settings.json configuration along with any Logs info as requested in the new issue template?