Getting Autocompletion for PDG python module in vscode

   403   0   1
User Avatar
Member
8 posts
Joined: June 2018
Offline
Hey everyone!

I was wondering what is correct workflow for setting up syntax Autocompletion (vscode intellisense). Plugging the hou module into intellisense works very well. Problem starts once I work with pdg module or more specifically _pdg module (*which gets imported into pdg module and contain most of classes). IDE of course can't read .pyd file and since there are not .pyi with overall skeleton, Intellisense is useless.

I found a temporary workaround. Basically generate “stubs” directly from the file with cmd utility, but it does't work on all .pyd files (I suspect it misses a bunch of other libs) and is not complete.

At the same time, I can't shake the feeling.. This is a completely wrong way to approach it and there is a correct workflow on how to make Intellisense work properly. Ideally one which is venv friendly.
Edited by Lukas Chovanec - Oct. 27, 2023 18:58:28
Technical Artist at Cloud Imperium Games
  • Quick Links