platformio/platformio-core

pio remote run -t nobuild -t upload not working

Open

#3.302 geöffnet am 12. Dez. 2019

Auf GitHub ansehen
 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (791 Forks)batch import
help wantedremote

Repository-Metriken

Stars
 (7.329 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 109T 16h) (5 gemergte PRs in 30 T)

Beschreibung

-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

  1. So running VS-Code local on a windows machine with

pio account login pio remote agent start

  1. Then on a ubuntu laptop running VS-Code upload the original sketch

pio account login pio remote run -t upload

  1. 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 Open in Gitpod

Contributor Guide