ID 496859 - The Nuke 13 Python module no longer allows for auto-completion in PyCharm

Follow

Problem summary
The Nuke 13 Python module no longer allows for auto-completion in PyCharm

Customer reported version
Nuke 13.0v5

Customer reported platform
Windows 10

Steps to reproduce

1) Firstly, you will need to install Python 3.7.7 on your machine. 

1) Set up the Nuke Python module by following the steps outlined in the online documentation: 
https://learn.foundry.com/nuke/content/comp_environment/script_editor/nuke_python_module.html

2) You may also need to add C:\Program Files\Nuke13.0v5\ to your system's PATH environment variable.

3) Create a new project in PyCharm and select the Python 3.7.7 executable as the base interpreter.

4) In the New Project dialog, also enable the Inherit global site-packages option.



5) In a new script, add import nuke. Once the module has been imported, the code should turn grey.​​

6) On a new line, type nuke. and press the tab key to display the auto-complete suggestions.

RESULT: These steps work for the Nuke 12 Python module (Python 2) but not for Nuke 13 (Python 3)




Expected behaviour
Nuke's Python module should allow for auto-complete in Pycharm, as it did work with Nuke 12.

Actual behaviour
The Nuke 13 Python module no longer allows for auto-complete in PyCharm.

Workaround
You can partially workaround this by adding C:\Program Files\Nuke13.0v5\plugins to Python 3's usrlocal.pth file. However, some functions will still not appear in the auto-completion list:



Reproduced by support
This bug has been reproduced in:
Nuke 13.1v1 - Windows 10
Nuke 13.0v1 - Windows 10 - Regression

Unable to reproduce bug in:
Nuke 12.2v9 - Windows 10

Earliest version tested
Nuke 12.2v9
- This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why