BradenM / micropy-cli

Micropython Project Management Tool with VSCode support, Linting, Intellisense, Dependency Management, and more!
https://micropy-cli.readthedocs.io
MIT License
314 stars 25 forks source link

ms-python.python not recognized #98

Closed WoMeijerRoetz closed 4 years ago

WoMeijerRoetz commented 4 years ago

When running MicroPy init, I get the following error:

MicroPy  VSCode Extension ms-python.python failed to satisfy requirements!
MicroPy  Min Required Version: 2019.9.34474
MicroPy  Current Version: 0.0.0
MicroPy  VSCode Integration will fail! See BradenM/micropy-cli#50 for details.

despite having 2020.2.64397 installed.

After running the init I get prompted to select a Python interpreter, which is possibly why it's not found?

BradenM commented 4 years ago

Strange. This check should actually be disabled IIRC ...

Try starting your project with:

$ micropy --skip-checks init

And see if that works.

BradenM commented 4 years ago

closing as stale

andrewbunday commented 4 years ago

This looks to be a problem with VSCode not automatically installing the code command line on MacOS. So the check is running but errors:

$ code --list-extensions --show-versions
bash: code: command not found

Running Shift-Cmd-P and Install 'code' command in PATH resolves the error. It may be worth checking the return code on the subprocess returns 0.