Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pio run -t clean" not working if "envs_dir" is set in platformio.ini #747

Closed
rwalli opened this issue Aug 13, 2016 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@rwalli
Copy link

rwalli commented Aug 13, 2016

  • [X ] Bug report. If you’ve found a bug, please provide information below.

Configuration

Operating system: macOS 10.11.6

PlatformIO Version (platformio --version): PlatformIO, version 3.0.0a4

Description of problem

After running "pio run" and "pio run -t clean" none of the object or firmware files are removed

Steps to Reproduce

  1. load arduino-blink example
  2. set e.g: envs_dir = /tmp/pio/blink in platformio.ini
  3. run "pio run" and "pio run -t clean"

Actual Results

find /tmp/pio/blink/uno/ -type f
/tmp/pio/blink/uno//firmware.elf
/tmp/pio/blink/uno//firmware.hex
/tmp/pio/blink/uno//FrameworkArduino/_wiring_pulse.o
/tmp/pio/blink/uno//FrameworkArduino/abi.o
/tmp/pio/blink/uno//FrameworkArduino/CDC.o
/tmp/pio/blink/uno//FrameworkArduino/HardwareSerial.o
/tmp/pio/blink/uno//FrameworkArduino/HardwareSerial0.o
/tmp/pio/blink/uno//FrameworkArduino/HardwareSerial1.o
/tmp/pio/blink/uno//FrameworkArduino/HardwareSerial2.o
/tmp/pio/blink/uno//FrameworkArduino/HardwareSerial3.o
/tmp/pio/blink/uno//FrameworkArduino/hooks.o
/tmp/pio/blink/uno//FrameworkArduino/IPAddress.o
/tmp/pio/blink/uno//FrameworkArduino/main.o
/tmp/pio/blink/uno//FrameworkArduino/new.o
/tmp/pio/blink/uno//FrameworkArduino/PluggableUSB.o
/tmp/pio/blink/uno//FrameworkArduino/Print.o
/tmp/pio/blink/uno//FrameworkArduino/Stream.o
/tmp/pio/blink/uno//FrameworkArduino/Tone.o
/tmp/pio/blink/uno//FrameworkArduino/USBCore.o
/tmp/pio/blink/uno//FrameworkArduino/WInterrupts.o
/tmp/pio/blink/uno//FrameworkArduino/wiring.o
/tmp/pio/blink/uno//FrameworkArduino/wiring_analog.o
/tmp/pio/blink/uno//FrameworkArduino/wiring_digital.o
/tmp/pio/blink/uno//FrameworkArduino/wiring_pulse.o
/tmp/pio/blink/uno//FrameworkArduino/wiring_shift.o
/tmp/pio/blink/uno//FrameworkArduino/WMath.o
/tmp/pio/blink/uno//FrameworkArduino/WString.o
/tmp/pio/blink/uno//libFrameworkArduino.a
/tmp/pio/blink/uno//libFrameworkArduinoVariant.a
/tmp/pio/blink/uno//src/Blink.o

Expected Results

delete compiled object files, libraries and firmware/program binaries

If problems with PlatformIO Build System:

The content of platformio.ini:

[platformio]
envs_dir = /tmp/pio/blink

[env:uno]
platform = atmelavr
framework = arduino
board = uno

Source file to reproduce issue:

#include <Arduino.h>

void setup()
{
  // initialize LED digital pin as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
  // turn the LED on (HIGH is the voltage level)
  digitalWrite(LED_BUILTIN, HIGH);
  // wait for a second
  delay(1000);
  // turn the LED off by making the voltage LOW
  digitalWrite(LED_BUILTIN, LOW);
   // wait for a second
  delay(1000);
}

Additional info

@ivankravets ivankravets modified the milestone: 3.0.0 Aug 14, 2016
@ivankravets ivankravets self-assigned this Aug 26, 2016
@ivankravets ivankravets modified the milestones: 3.0.0, 3.0 Aug 30, 2016
ivankravets added a commit that referenced this issue Sep 9, 2016
* develop:
  Fix incorrect line order when converting from INO to CPP and pointer is used
  Fix unit test
  Notify about `version` field when creating library
  Add support for SparkFun Blynk Board
  Return valid exit code from ``plaformio test`` command
  Disable SSL Server-Name-Indication for Python < 2.7.9
  Version bump to 3.0.1 (issue #772)
  Disable temporary SSL for PlatformIO services // Resolve #772
  Version bump to 3.0.0 (issues #770, #766, #747, #730, #765, #640, #659, #742, #459, #542, #763, #759, #753, #757, #749, #748, #745, #519, #709, #743, #413, #498, #410, #740, #361, #414, #554, #732, #588, #475, #461, #101, #719, #721, #537, #415, #522, #289, #556, #570, #456, #617, #432, #408, #479, #667, #510)
  Fix menu height for  docs
  Fix issue with multiple archives when linking firmware
  Add migration guide for PIO2 to PIO3
  Search libraries by headers/includes with ``platformio lib search --header`` option
  Update pio run command examples
  Add Unit Testing Demo
  Update PIO Plus badge title and link
  Add PlatformIO Plus badge
  Add links to PlatformIO Plus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants