dphans / micropython-ide-vscode

Micropython integrated development for VSCode
Apache License 2.0
57 stars 35 forks source link

.micropythonrc sample is required.... #7

Open jiapei100 opened 5 years ago

jiapei100 commented 5 years ago

Where can we find a sample .micropythonrc code?

Thank you Pei

Googchai commented 5 years ago

This is my example

{
  "tools": {
    "ampy": "/home/googchai/.local/bin/ampy",
    "rshell": "/usr/local/bin/rshell"
  },
  "upload": { 
    "port": "/dev/ttyUSB0" 
  }
}
wally666 commented 5 years ago

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?

Googchai commented 5 years ago

Hi wally666,

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

regards, googchai

martinnedopil commented 5 years ago

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

BartWally commented 5 years ago

@Googchai : file exists @martinnedopil : you are right

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