Skip to content

idf.py -B build/SubBuildFolder clang-check results in the reconfigure command idf.py -B SubBuildFolder reconfigure (IDFGH-15128) #54

@Iwijn

Description

@Iwijn

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

idf.py -B build/SubBuildFolder clang-check should result in the reconfigure command idf.py -B build/SubBuildFolder reconfigure.

Actual behavior (suspected bug)

Image

passing an absolute path also results in only the deepest folder (here DebugEsp32c6) being passed to the reconfigure command.

Error logs or terminal output

Steps to reproduce the behavior

idf_tools.py install esp-clang
restart env
build project to a nested build folder
idf.py -B build/NestedBuildFolder clang-check

Project release version

esp-18.1.2_20240912

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Linux

Operating system version

Ubuntu 24.04

Shell

Bash

Additional context

idf_extension.py line 44-48:

runner = Runner(
    [args.project_dir],
    build_dir=os.path.basename(args.build_dir),
    **useful_kwargs
)

build path is stripped to only the subfolder

runner.py line 265-269:

run_cmd(
    self.idf_py_cmd + ['-B', self.build_dir, 'reconfigure'],
    log_stream=log_fs,
    cwd=folder,
)

therefor, only the subfolder is set when doing reconfigure.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions