PlatformIO Community

Different actions for upload between button and keybinding

Hi,
I am using PlatformIO on Atom for Linux and set up multiple environments.
However, when triggering the upload using the button, my project is built using the default environment, but when I press Ctrl-Alt-U, it builds using my second environment.

platformio.ini:

[platformio]
default_envs = debug

[env]
platform = espressif8266
board = nodemcuv2
framework = arduino
upload_speed = 921600
lib_ldf_mode = chain+

[env:debug]
build_flags = -D DEBUG

[env:prod]
build_flags = -D PROD

On pressing the button for upload platformio run --target upload is executed, but on Ctrl-Alt-U platformio run --verbose --target upload --environment prod is executed.

I also discovered that there are a lot of keybindings that were automatically created:

I could not find anything online or in the PlatformIO settings. Thanks for your help.

The different behaviors doesn’t sound right… probably worth filing a bug report over at https://github.com/platformio/platformio-atom-ide/issues, and mention this thread so you don’t have to repeat everything.

Issue filed: https://github.com/platformio/platformio-atom-ide/issues/2234

1 Like