Checklist
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)

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.