unihd-cag / skillbridge

A seamless python to Cadence Virtuoso Skill interface
https://unihd-cag.github.io/skillbridge/
GNU Lesser General Public License v3.0
185 stars 39 forks source link

[SUPPORT]autogeneration via stub file (workspace.pyi) in vsCode #229

Closed PiyushSaini07 closed 1 year ago

PiyushSaini07 commented 1 year ago

Hi,

I followed the doc for autocompletion feature for SKILL functions. I'm using vscode for coding.

As soon as I did that I lost autocompletion even for Workspace import in from skillbridge import Workspace. image

Also, I'm not getting any autocomplete prompt for the SKILL functions.

Is the autocomplete feature available only for pyCharm?

P.S.: Running skillbridge generate generated a file workspace.pyi in the client directory. Content: image I'm using python 3.6.8.

nielsbuwen commented 1 year ago

Hi,

this is a bug. Looks like the behaviour of stubgen changed. We will fix it.

TM90 commented 1 year ago

The bugfix is now released with 1.5.1

pip install --upgrade skillbridge

will update to the latest version.

PiyushSaini07 commented 1 year ago

After updating, its working. Thanks!

Closing the issue.