Can't upload modules in VSCode using MicroPython

Hi,

I am looking to use the MicroPython with VSCode and am following your instructions as per following link: https://docs.soldered.com/micropython/getting-started-with-vscode/

I have successfully flashed my board which is the “Inkplate 6COLOR”. When i try to upload to upload/open a file from my PC, I get the following error in VSCode " Upload failed: spawn sh ENOENT ".

Do you have any ideas how to resolve this?

Hi @sagaterial3

Extension had an issue with the Windows operating system where it was trying to invoke a Unix-only shell command, which doesn’t exist on Windows, causing the spawn sh ENOENT error.

We’ve already pushed a fix to GitHub available here. We are currently having some issues with Visual Studio Code Marketplace so we are unable to push the official update. We plan to sort it out in a few days.

Until then you can run the fixed version manually. In order to do so:

  1. Clone (or download) the repo GitHub - SolderedElectronics/Soldered-MicroPython-Helper: Visual Studio Code extension for working with MicroPython boards and Soldered modules. · GitHub
  2. Open the folder in Visual Studio Code
  3. Make sure you have Node.js installed. In the VS Code terminal, run npm install. If this fails with a build/compilation error, also run npm install --global --production windows-build-tools, then run npm install again.
  4. Once it installs press F5 and it will launch a new instance of Visual Studio Code and you can use the updated extension there.

You can also refer to Developer Setup section of README.md file in the repository. We are sorry for the inconvenience. If you face any issues we are happy to help.