VSC

Hello,

I' have problem with CMAKE and Zephyr in VSC. Please, see following error:

[main] Building folder: blinky_13
[main] Configuring project: blinky_13
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SC:/ncs/FwDavide/blinky_13 -Bc:/ncs/FwDavide/blinky_13/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] Loading Zephyr default modules (Zephyr base (cached)).
[cmake] -- Application: C:/ncs/FwDavide/blinky_13
[cmake] -- CMake version: 3.29.3
[cmake] -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache
[cmake] -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr)
[cmake] -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
[cmake] CMake Error at C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_module.cmake:77 (message):
[cmake]   Traceback (most recent call last):
[cmake]
[cmake]     File "C:/ncs/v2.5.0/zephyr/scripts/zephyr_module.py", line 733, in <module>
[cmake]       main()
[cmake]     File "C:/ncs/v2.5.0/zephyr/scripts/zephyr_module.py", line 678, in main
[cmake]       west_projs = west_projects()
[cmake]     File "C:/ncs/v2.5.0/zephyr/scripts/zephyr_module.py", line 543, in west_projects
[cmake]       manifest = Manifest.from_file()
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 1263, in from_file
[cmake]       return Manifest(topdir=topdir, config=config,
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 1496, in __init__
[cmake]       self._load_validated()
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 1949, in _load_validated
[cmake]       self._load_projects(manifest_data, url_bases, defaults)
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 2271, in _load_projects
[cmake]       self._import_from_project(project, imp)
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 2462, in _import_from_project
[cmake]       self._import_map_from_project(project, imp)
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 2489, in _import_map_from_project
[cmake]       imported = self._import_content_from_project(project, imap.file)
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 2540, in _import_content_from_project
[cmake] -- Configuring incomplete, errors occurred!
[cmake]       project.is_cloned():
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 1026, in is_cloned
[cmake]       res = self.git('rev-parse --show-cdup', check=False, cwd=cwd,
[cmake]     File "C:\ncs\toolchains\c57af46cb7\opt\bin\lib\site-packages\west\manifest.py", line 923, in git
[cmake]       popen = subprocess.Popen(
[cmake]     File "subprocess.py", line 854, in __init__
[cmake]     File "subprocess.py", line 1307, in _execute_child
[cmake]
[cmake]   FileNotFoundError: [WinError 2] Impossibile trovare il file specificato
[cmake]
[cmake] Call Stack (most recent call first):
[cmake]   C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
[cmake]   C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
[cmake]   C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
[cmake]   CMakeLists.txt:5 (find_package)
[cmake]
[cmake]
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SC:/ncs/FwDavide/blinky_13 -Bc:/ncs/FwDavide/blinky_13/build -G Ninja exited with code: 1

Some solutions?

Thank you in advance.

Related