Autocomplete just stopped working on some libraries
Hello!
Would anyone have any idea why autocomplete might stop working?
I'm using Pycharm and writing code for maya, this is something I've been doing for years now. But all of a sudden my autocomplete just stopped working on my maya packages.
I've tried:
* Invalidating caches
* Downgrading to older versions
* Setting Pycharm settings to default
* Changing interpreters, creating small contained venvs with the libraries I needed, using the maya python intepreter
* Tried it on two computers, with the same result

Please sign in to leave a comment.
Hi Raveen
I found this interesting article describing in details the setup process:
https://matiascodesal.com/posts/how-to-setup-pycharm-for-maya-scripting-with-autocomplete-and-external-documentation/#:~:text=Setup%20the%20mayapy%20interpreter%20within%20PyCharm&text=on%20the%20far%20right%20and%20then%20the%20%E2%80%9CAdd%E2%80%A6%E2%80%9D%20option.&text=Click%20the%20%E2%80%9C%E2%80%A6%E2%80%9D%20button%20to%20browse%20for%20a%20new%20one.&text=Confirm%20the%20mayapy%20interpreter%20is,the%20interpreter%20some%20default%20name.
As I can see there is a step where you need to remove the site-packages to avoid conflicts as described here:
https://matiascodesal.com/posts/how-to-setup-pycharm-for-maya-scripting-with-autocomplete-and-external-documentation/#add-the-devkit-python-stubs-to-pycharm
May I ask if you can check following the steps here and see if the issue persists?
Kind regards,
old way was using devkit with adding devkit\other\pymel\extras\completion\py as interpreter, but nowadays this directory in devkit no longer exists anymore, at least in Maya2023 (the version I use). Currently the most common is installing maya-stubs package in both mayapy and external python interpreter (if you use external interpreter for maya tool programming as well)