Static code analysis using clung

vijaypanchal96
Posts: 1
Joined: Fri Dec 16, 2022 12:53 pm

Static code analysis using clung

Postby vijaypanchal96 » Fri Dec 16, 2022 1:13 pm

Hi,
I am using esp-idf-v4.4.2 for ESP32. I want to apply static code analysis on my code.
I have followed steps from here.
https://docs.espressif.com/projects/esp ... tidy.html

But as I run idf.py clang-check. I got error like this. Please check and share your suggestion to make it working. [Codebox]C:\workspace\project\EVSE\evse-dvt\gateway-esp32>idf.py clang-check
Executing action: clang-check
Running command: "idf.py -B build reconfigure"...
Traceback (most recent call last):
File "C:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf.py", line 816, in <module>
main()
File "C:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf.py", line 734, in main
cli(sys.argv[1:], prog_name=PROG, complete_var='_IDF.PY_COMPLETE')
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\click\core.py", line 1691, in invoke
return _process_result(rv)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\click\core.py", line 1628, in _process_result
value = ctx.invoke(self._result_callback, value, **ctx.params)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "C:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf.py", line 636, in execute_tasks
task(ctx, global_args, task.action_args)
File "C:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf.py", line 217, in __call__
self.callback(self.name, context, global_args, **action_args)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\pyclang\idf_extension.py", line 25, in call_runner
runner()
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\pyclang\runner.py", line 184, in __call__
self._run(folder, log_fs, output_dir)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\pyclang\runner.py", line 155, in _run
func(folder, log_fs, output_dir)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\pyclang\runner.py", line 198, in _f
return func(self, *args, **kwargs)
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\pyclang\runner.py", line 223, in idf_reconfigure
run_cmd(
File "C:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\pyclang\utils.py", line 37, in run_cmd
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
File "subprocess.py", line 854, in __init__
File "subprocess.py", line 1307, in _execute_child
OSError: [WinError 193] %1 is not a valid Win32 application[/Codebox]

Thank you, best regards.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Static code analysis using clung

Postby ESP_igrr » Fri Dec 16, 2022 8:18 pm

Could you please report this bug here so that we can track it? https://github.com/espressif/clang-tidy-runner/issues

Surjeet
Posts: 3
Joined: Mon Mar 06, 2023 8:05 pm

Re: Static code analysis using clung

Postby Surjeet » Tue Mar 07, 2023 12:22 pm

Hi Team,

Could you able to solve the issue - "OSError: [WinError 193] %1 is not a valid Win32 application"? I have tried multiple ways but no luck yet.

Who is online

Users browsing this forum: No registered users and 141 guests