vscode-circuitpython icon indicating copy to clipboard operation
vscode-circuitpython copied to clipboard

Unresolved "ulab" import

Open ptyork opened this issue 4 years ago • 1 comments

Describe the bug You have done a fantastic job stubbing out most of CircuitPython and the adafruit libs, but it appears that their "micro" version of numpy---ulab---is not included.

To Reproduce Steps to reproduce the behavior:

  1. Create a CircuitPython project
  2. Add import ulab to code.py
  3. See error

Expected behavior It should be resolved by the Python Language Server and should provide accurate intellisense.

Desktop (please complete the following information):

  • OS: Win10 Pro
  • Version 19041

ptyork avatar Jun 13 '20 02:06 ptyork

Hey there,

This took a bit of figuring out, but it comes down to how I'm generating the stubs, which is the same way adafruit/circuitpython does.

I've been building them off the latest tagged release, which is currently 5.3.0. I noticed on the main branch, they're building the stubs a different way. When I use that method, ulab is included, so I'll see about cutting a new release that way.

joedevivo avatar Jun 23 '20 14:06 joedevivo