Recently, I am trying to use the matter app sample directory 'template' in ncs v2.3.0 to build a matter contact sensor example. According to the nordic's application note down below.
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/protocols/matter/getting_started/adding_clusters.html
It is needed to add a new cluster to the temlpate's original zap file and generate the C++ source code through script 'generate.py', which is locate in {ncs path}/modules/lib/matter/scripts/tools/zap directory. However when generating C++ source code after modifying the zap file, I encountered some error as the following text. Can somebody help me out with the error?
Traceback (most recent call last):
File "C:\Users\arvin\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\arvin\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\arvin\AppData\Local\Programs\Python\Python310\Scripts\clang-format.exe\__main__.py", line 7, in <module>
File "C:\Users\arvin\AppData\Local\Programs\Python\Python310\lib\site-packages\clang_format\__init__.py", line 21, in clang_format
raise SystemExit(_run("clang-format"))
File "C:\Users\arvin\AppData\Local\Programs\Python\Python310\lib\site-packages\clang_format\__init__.py", line 11, in _run
return subprocess.call([executable] + sys.argv[1:])
File "C:\Users\arvin\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\arvin\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\arvin\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
clang-format error: Command '['clang-format', '-i', 'C:\\browan_project\\generic_node\\ncs_v2.3.0\\modules\\lib\\matter\\..\\..\\..\\nrf\\samples\\matter\\light_bulb\\src\\zap-generated\\PluginApplicationCallbacks.h', 'C:\\browan_project\\generic_node\\ncs_v2.3.0\\modules\\lib\\matter\\..\\..\\..\\nrf\\samples\\matter\\light_bulb\\src\\zap-generated\\callback-stub.cpp', 'C:\\browan_project\\generic_node\\ncs_v2.3.0\\modules\\lib\\matter\\..\\..\\..\\nrf\\samples\\matter\\light_bulb\\src\\zap-generated\\endpoint_config.h', 'C:\\browan_project\\generic_node\\ncs_v2.3.0\\modules\\lib\\matter\\..\\..\\..\\nrf\\samples\\matter\\light_bulb\\src\\zap-generated\\gen_config.h', 'C:\\browan_project\\generic_node\\ncs_v2.3.0\\modules\\lib\\matter\\..\\..\\..\\nrf\\samples\\matter\\light_bulb\\src\\zap-generated\\CHIPClientCallbacks.h', 'C:\\browan_project\\generic_node\\ncs_v2.3.0\\modules\\lib\\matter\\..\\..\\..\\nrf\\samples\\matter\\light_bulb\\src\\zap-generated\\IMClusterCommandHandler.cpp', 'C:\\browan_project\\generic_node\\ncs_v2.3.0\\modules\\lib\\matter\\..\\..\\..\\nrf\\samples\\matter\\light_bulb\\src\\zap-generated\\CHIPClusters.h', 'C:\\browan_project\\generic_node\\ncs_v2.3.0\\modules\\lib\\matter\\..\\..\\..\\nrf\\samples\\matter\\light_bulb\\src\\zap-generated\\access.h']' returned non-zero exit status 1.