nutti / fake-bpy-module

Fake Blender Python API module collection for the code completion.
MIT License
1.35k stars 96 forks source link

Fix for bpy.types intelliSense in PyCharm or better documentation #91

Closed MS-Painter closed 3 years ago

MS-Painter commented 3 years ago

I have both this package and bpy installed through pip.

Installing this package isn't enough to fix all bpy intelliSense in PyCharm. Some modules like bpy.types have the issue of being too big for intelliSense to work, thus omitting them from intelliSense.

The fix for PyCharm -

Is to go to the PyCharm's idea.properties file and changing the value of idea.max.intellisense.filesize. To a value that supports the size of the module.

It would be great to have this documented here or even better be able to do this automatically.

nutti commented 3 years ago

@STRONG-MAD

Thanks for your suggestion.

Recently, I don't use PyCharm actually. So, please comment if I mistake my understanding. IMO, intellisense in PyCharm is processed at the first time after when the new package is found. Is there still bottleneck of file access to the processed data for intellisense?

MS-Painter commented 3 years ago

Yeah it's as stated.

The default for Pycharm is around 2.5mb And I think some files like what I mentioned go over 2.6mb.

nutti commented 3 years ago

@STRONG-MAD

Thanks for your reply. I will add this information to the document. I think this information is useful for all PyCharm users.

BTW, you can send me a pull request if you want. Maybe, below documents must be fixed.

nutti commented 3 years ago

Fixed the documentation. So, I will close this issue