Skip to content

pio run -t monitor always uses first monitor_port even with multiple env's #1841

Closed

Description

@blackketter

Operating system:
macOS

PlatformIO Version (platformio --version):
3.6.0

Description of problem

When trying to do pio run -t monitor -e envname the first monitor_port found in the file is always used, independent of the environment chosen.

Steps to Reproduce

With the below ini file, executing pio run -t monitor -e strip the monitor always connects to the monitor_port listed in env:string

Swapping the order of the environments in the ini file changes to the first one listed.

If problems with PlatformIO Build System:

The content of platformio.ini:

[platformio]
#env_default = string

[common]
libs =
  file://../NTPClient
  file://../Switch
  file://../WiFiThing
  file://../Console
  file://../Clock
  file://../Timezone
  Time
  file://../FastLED
  ESP8266Wifi
  ESP8266mDNS
  ESP8266HTTPClient
  ArduinoOTA

[env:string]
platform = espressif8266
framework = arduino
board = d1_mini
lib_deps = ${common.libs}
upload_port = razzlestring.local
monitor_port = socket://razzlestring.local:23

[env:strip]
platform = espressif8266
framework = arduino
board = d1_mini
lib_deps = ${common.libs}
upload_port = razzlestrip.local
monitor_port = socket://razzlestrip.local:23

Activity

  1. added this to the 3.6.1 milestone on Sep 21, 2018
  2. ivankravets commented on Oct 12, 2018

    @ivankravets
    Member

    Thanks, fixed! Please pio upgrade --dev.

  3. blackketter commented on Oct 12, 2018

    @blackketter
    Author

    Working great. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions