Use private "_idedata" target when fetching data for debugging

This commit is contained in:
Ivan Kravets
2021-04-24 18:01:35 +03:00
parent b5b57790be
commit eb2cd001b6
2 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ if "envdump" in COMMAND_LINE_TARGETS:
click.echo(env.Dump()) click.echo(env.Dump())
env.Exit(0) env.Exit(0)
if "idedata" in COMMAND_LINE_TARGETS: if set(["_idedata", "idedata"]) & set(COMMAND_LINE_TARGETS):
try: try:
Import("projenv") Import("projenv")
except: # pylint: disable=bare-except except: # pylint: disable=bare-except

View File

@ -155,7 +155,7 @@ def _load_project_ide_data(project_dir, env_names):
# pylint: disable=import-outside-toplevel # pylint: disable=import-outside-toplevel
from platformio.commands.run.command import cli as cmd_run from platformio.commands.run.command import cli as cmd_run
args = ["--project-dir", project_dir, "--target", "idedata"] args = ["--project-dir", project_dir, "--target", "_idedata"]
for name in env_names: for name in env_names:
args.extend(["-e", name]) args.extend(["-e", name])
result = CliRunner().invoke(cmd_run, args) result = CliRunner().invoke(cmd_run, args)