paulober / MicroPico

MicroPico (aka Pico-W-Go) is a Visual Studio Code extension designed to simplify and speed up the development of MicroPython projects for the Raspberry Pi Pico and Pico W boards.
https://marketplace.visualstudio.com/items?itemName=paulober.pico-w-go
Mozilla Public License 2.0
291 stars 26 forks source link

Micropython-stubs are from v1.20.0 #150

Closed madozu closed 1 year ago

madozu commented 1 year ago

Since updating from v3.3.3 to v3.4.0, pylance complains 'Import "bluetooth" could not be resolved' for every file that tries to import the bluetooth library. This was working fine with v3.3.3.

What are the steps to reproduce this issue?

  1. Install MicroPico extenstion version 3.4.0
  2. Create a micropython file that imports "bluetooth"

What happens?

VSCode pylance plugin complains 'Import "bluetooth" could not be resolved'

What were you expecting to happen?

Expecting to have no error and get auto-completion as with MicroyPico v3.3.3

Any other comments?

Seems to be related to commit Replaced Pico-W-Stub with micropython-stubs. According to the README.md, the micropython-stubs are based on micropython v1.20.0. The Pico-W-Stubs in v3.3.3 were based on micropython v1.21.0 which is needed to get auto-completion for the new libraries

Which version of MicroPico are you using?

v3.4.0

paulober commented 1 year ago

That was noted in the README and the CHANGELOG. Please wait for next patch...

madozu commented 1 year ago

@paulober Thanks a lot for the fix in v3.4.1 ... runs perfect now :-)