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

Send file will send all project files

Open iBobik opened this issue 7 years ago • 4 comments

Run task should "Send current script to device…" but in Output I see it first deletes all files and then uploads them all. No matter if they changed or shoudl be ignored (by .micropythonrc file).

Checking current script...
Preparing file /Users/Bobik/Applications/esp-rfid.py/main.py...
Checking `ampy` tool...
Checking `rshell` tool...
Reading settings from config file (.micropythonrc)...
Checking config file...
Checking `ampy` path config...
Checking `rshell` path config...
Checking upload port config...
Connect device from port /dev/tty.usbserial...
Reading baud rate config...
Using baud rate: 115200
Using port: /dev/tty.usbserial
Stopping running script if available...
Removing .DS_Store...
Removing boot.py...
Removing lib...
Removing main.py...
Removing micropython-pn532...
Removing networks.json...
Searching for ignored files and directories...
Checking directory /Users/Bobik/Applications/esp-rfid.py/.vscode
Checking directory /Users/Bobik/Applications/esp-rfid.py/lib
Checking directory /Users/Bobik/Applications/esp-rfid.py/micropython-pn532
Sending /.DS_Store...
Sending /.vscode/settings.json...
Sending /boot.py...
Creating directory /lib...
Sending /lib/wiegand.py...
Sending /lib/wifi_manager.py...
Sending /main.py...
Creating directory /micropython-pn532...
Sending /micropython-pn532/constants.py...
Sending /micropython-pn532/i2c.py...
Sending /networks.json...
Reseting state...
Task done with 81797 milliseconds.

It is useful to have feature for sending only one file and feature to sync all of them. But it will be nice if it can sync only files changed from last sync.

iBobik avatar Nov 16 '18 20:11 iBobik

I have the same issue. The extension always send the entire .git folder despite it being ignore in .micropythonrc. It also delete any other file. It's kind of unusable.

aleeraser avatar Jan 09 '19 10:01 aleeraser

It could be fixed by #5, but @dphans have to make a release to a VSCode store.

iBobik avatar Jan 09 '19 11:01 iBobik

I still have the same issue. .git is sent

jobe451 avatar Apr 27 '20 00:04 jobe451

My workaround is to use custom makefile using mpfshell, but also rshell should work:

copyfiles:
  read -n 1 -s -r -p "Reboot ESP to normal mode and press any key"
  mpfshell -o $(FLASHING_PORT) -c 'lcd src; mput ^(?!example).*\.py; put networks.json'

    1. 2020 v 2:01, Daniel Keller [email protected]:

I still have the same issue. .git is sent

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dphans/micropython-ide-vscode/issues/11#issuecomment-619645620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEV6WCRDPTGCV2TZ3FODPDROTDMZANCNFSM4GE3R4QA.

iBobik avatar Apr 27 '20 12:04 iBobik