Different actions for upload between button and keybinding

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.


default_envs = debug

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

build_flags = -D DEBUG

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 Issues · platformio/platformio-atom-ide · GitHub, 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