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.
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?
Install MicroPico extenstion version 3.4.0
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
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?
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