maya.cmds completion in PyCharm requires additional editor configuration
Closed this issue · 1 comments
Thanks so much for this project! After moving to newer Maya versions without the pymel stubs included in the devkit I'm glad to see this.
This is more of a note/gotcha for PyCharm users, I'd be happy to do a pull request on the README if it makes sense to note this there, or perhaps this issue will suffice.
When I first setup a project and pip installed maya-stubs in PyCharm I noticed the cmds would not auto complete, though OpenMaya calls would. When I opened the cmds stub I saw this warning.
And learned that PyCharm limits code insight features to files under 2500 kB by default for performance reasons.
See https://www.jetbrains.com/help/pycharm/file-idea-properties.html
To modify this in PyCharm I used Help > Edit Custom Properties
and added the line below to increase the limit from 2.5 to 10MB.
idea.max.intellisense.filesize = 10000
After restarting PyCharm with this override, maya.cmds code completion worked as expected.
Oh that's a bummer, it might make sense to split that file into smaller ones down the line
In the meantime I'm happy for you to do a PR and update the readme, that way the installation instruction will also be reflected on pypi