pio remote run -t nobuild -t upload not working
#3,302 opened on Dec 12, 2019
Repository metrics
- Stars
- (7,329 stars)
- PR merge metrics
- (Avg merge 109d 16h) (5 merged PRs in 30d)
Description
-t nobuild not working on a remote run but works fine on a local run
Operating system: Tested on Windows 10, Ubuntu and Gitpod cloud
PlatformIO Version (platformio --version):
PlatformIO, version 4.1.0
Description of problem
"pio remote run -t nobuild -t upload" not working but "pio run -t nobuild -t upload" works fine
Community post related to the issue at
https://community.platformio.org/t/upload-latest-build-without-a-compile-link/9520/9
Configuration
Normal UNO Arduino setup Serial proof of upload
Steps to Reproduce
- So running VS-Code local on a windows machine with
pio account login pio remote agent start
- Then on a ubuntu laptop running VS-Code upload the original sketch
pio account login pio remote run -t upload
- Now change your code to "version 2!" and save the file. Then try to upload the old compiled verison 1.
pio remote run -t nobuild -t upload
Actual Results
Version 2!
Expected Results
Version 1!
If problems with PlatformIO Build System:
The content of platformio.ini:
[env:uno]
platform = atmelavr
board = uno
framework = arduino
Source file to reproduce issue:
#include <Arduino.h>
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Version 1! ");
delay(1000);
}
Additional info
Being able to use "-t nobuild" can be very useful when you just want to install a pre-tested working program for that board. I can give my students the pre-tested program and not worry if they have made any environment changes that effect the build.
I found this bug when testing with a cloud method using gitpod.io but the bug seems to happen even when using VS Code on 2 local machines.
Gitpod Cloud docker github of it my-gitpod-of-openthread