mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Replace "idedata" target with "pio project metadata" command
This commit is contained in:
@ -229,7 +229,10 @@ if env.IsIntegrationDump():
|
|||||||
encoding="utf8",
|
encoding="utf8",
|
||||||
) as fp:
|
) as fp:
|
||||||
json.dump(data, fp)
|
json.dump(data, fp)
|
||||||
click.echo("\n%s\n" % json.dumps(data)) # pylint: disable=undefined-variable
|
click.echo(
|
||||||
|
"Data has been saved to the following location %s"
|
||||||
|
% projenv.subst(os.path.join("$BUILD_DIR", "idedata.json"))
|
||||||
|
)
|
||||||
env.Exit(0)
|
env.Exit(0)
|
||||||
|
|
||||||
if "sizedata" in COMMAND_LINE_TARGETS:
|
if "sizedata" in COMMAND_LINE_TARGETS:
|
||||||
|
@ -23,7 +23,7 @@ from platformio.proc import exec_command, where_is_program
|
|||||||
|
|
||||||
|
|
||||||
def IsIntegrationDump(_):
|
def IsIntegrationDump(_):
|
||||||
return set(["__idedata", "idedata"]) & set(COMMAND_LINE_TARGETS)
|
return "__idedata" in COMMAND_LINE_TARGETS
|
||||||
|
|
||||||
|
|
||||||
def DumpIntegrationIncludes(env):
|
def DumpIntegrationIncludes(env):
|
||||||
|
@ -179,7 +179,7 @@ def _load_build_metadata(project_dir, env_names, debug=False):
|
|||||||
result.exception, exception.ReturnErrorCode
|
result.exception, exception.ReturnErrorCode
|
||||||
):
|
):
|
||||||
raise result.exception
|
raise result.exception
|
||||||
if '"includes":' not in result.output:
|
if "Data has been saved to the following location" not in result.output:
|
||||||
raise exception.UserSideException(result.output)
|
raise exception.UserSideException(result.output)
|
||||||
return _get_cached_build_metadata(project_dir, env_names)
|
return _get_cached_build_metadata(project_dir, env_names)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user