joedevivo / vscode-circuitpython

VSCode extension for Adafruit's CircuitPython
MIT License
114 stars 33 forks source link

Unresolved "ulab" import #17

Open ptyork opened 4 years ago

ptyork commented 4 years ago

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):

joedevivo commented 4 years ago

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.