micropython-ide-vscode icon indicating copy to clipboard operation
micropython-ide-vscode copied to clipboard

.micropythonrc sample is required....

Open jiapei100 opened this issue 6 years ago • 5 comments

Where can we find a sample .micropythonrc code?

Thank you Pei

jiapei100 avatar Sep 11 '18 18:09 jiapei100

This is my example

{
  "tools": {
    "ampy": "/home/googchai/.local/bin/ampy",
    "rshell": "/usr/local/bin/rshell"
  },
  "upload": { 
    "port": "/dev/ttyUSB0" 
  }
}

Googchai avatar Nov 07 '18 00:11 Googchai

I have:

{
  "tools": {
    "ampy": "c:/Users/wally/AppData/Local/Programs/Python/Python37-32/Scripts/ampy.exe",
    "rshell": "c:/Users/wally/AppData/Local/Programs/Python/Python37-32/Scripts/rshell.exe"
  },
  "upload": { 
    "port": "COM6" 
  }
}

but after Run in VSCode (W10) I get:

Checking current script...
Preparing file c:\repo\nas\Wally.MicroPython.VSCode\.micropythonrc...
Checking `ampy` tool...
Error: Required tool not found (`ampy`). Please install `ampy` to run project.
Task abort with 5220 milliseconds.

can anybody help? Is the Extension compatible with VisualStudio Code Windows 10 version?

wally666 avatar Nov 30 '18 20:11 wally666

Hi wally666,

Could you please check file "ampy.exe" is exists / collect path or not ?

regards, googchai

Googchai avatar Dec 24 '18 16:12 Googchai

Imho there is a problem inside code, because plugin uses "which" command to invoke ampy.

martinnedopil avatar Jan 04 '19 13:01 martinnedopil

@Googchai : file exists @martinnedopil : you are right

The plugin does not work on Windows 10. I assume it was never tested on Windows.

BartWally avatar Jan 27 '19 22:01 BartWally