dphans / micropython-ide-vscode

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

Send file will send all project files #11

Open iBobik opened 5 years ago

iBobik commented 5 years ago

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.

aleeraser commented 5 years ago

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.

iBobik commented 5 years ago

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

jobe451 commented 4 years ago

I still have the same issue. .git is sent

iBobik commented 4 years ago

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 notifications@github.com:

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.