Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

.micropythonrc sample is required.... #7

Open
jiapei100 opened this issue Sep 11, 2018 · 5 comments
Open

.micropythonrc sample is required.... #7

jiapei100 opened this issue Sep 11, 2018 · 5 comments

Comments

@jiapei100
Copy link

Where can we find a sample .micropythonrc code?

Thank you
Pei

@Googchai
Copy link

Googchai commented Nov 7, 2018

This is my example

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

@wally666
Copy link

wally666 commented Nov 30, 2018

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
Copy link

Hi wally666,

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

regards,
googchai

@martinnedopil
Copy link

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

@BartWally
Copy link

@Googchai : file exists
@martinnedopil : you are right

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants