Based on this forum thread: https://disqus.com/home/discussion/jetbrains/using_python_skeletons/
I added the stubs manually to the Extended Definitions folder $PYCHARMHOME\python-skeletons since the user generated folder in your user prefs deletes them. This seems to be working and my code still runs so...unless anyone knows why this is a horrible idea I'm going to consider this complete... On Monday, March 6, 2017 at 7:01:16 PM UTC-5, Andres Weber wrote: > > Hey Everyone, > > So I recently have been trying to collect and compile information on > setting up PyCharm properly for use as an IDE for Maya. This is all well > and good and the instructions are fine, however currently when trying to > get the code completion working it doesn't seem to be functioning as the > old tutorials used to say it does. most likely due to either changes in > PyCharm or the actual code in the devkit stubs that Luma wrote. Currently > it seems that when adding the stubs path > > $MAYA_LOCATION/devkit/others/pymel/extras/completion/py > > it doesn't function the way it used to and instead just replaces all of > the maya package's functions/modules with stub code which results in all > function/class calls returning None. If anyone knows where I went wrong > I'm all ears. I've tried manually placing the stubs in my pycharm skeleton > user settings directory, but it just overwrites/deletes them when it > rebuilds the skeleton caches. > > Here is the open ticket/forum post on the Jetbrains site. > > https://intellij-support.jetbrains.com/hc/en-us/community/posts/205811499-Interpreter-re-configuration-from-editor-to-run-time-Is-this-possible-?page=1#community_comment_115000140904 > https://youtrack.jetbrains.com/issue/PY-8377 > > If anyone has completion working and even if I have to get an older > version of PyCharm I'm open to anything at this point. Developing isn't > impossible without auto-completion obviously just nice to have. > > > > Example Older Tutorials: > > http://tech-artists.org/forum/showthread.php?3153-Setting-up-PyCharm-for-use-with-Maya-2013 > Seems the old devkit used to have empty files...however now they're fully > developed stubs. > > https://forums.autodesk.com/t5/maya-programming/fully-working-intellisense-with-maya-api-2-0-in-visual-studio/td-p/6248110 > Interesting ideas on how to customize the locations of the stubs...but > didn't work for me. > http://www.robg3d.com/2013/01/maya-and-pycharm/ > > http://cgreminders.tumblr.com/post/86163002495/maya-get-pycharm-setup-with-auto-completion-of > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/11234df0-85da-4d94-aee0-aa5052b3feaa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
