VSC installation BUG
Posted: Mon Dec 05, 2022 11:05 pm
Hi,
it's the end of 2022 and the visual studio code extension still doesn't work at first try(at least not on windows).
This is a pain in the ass for the developer.
I had to manually add the environment variables AGAIN and AGAIN and AGAIN in each new esp-idf installation, and it's still not working.
The project compiles with previous versions of cmake, now errors appear:
Component directory C:/projects/project_folder/components/communication does not contain a CMakeLists.txt file. No component will be added.
Component directory C:/projects/project_folder/components/ui does not contain a CMakeLists.txt file. No component will be added.
In Root project folder(C:/projects/project_folder/CMakeLists.txt) i have a CMakeLists.txt with:
My folder organization(before the new installation it compiled normally):
NOTE:
Edition: Windows 11 Enterprise
Version: 21H2
OS Compilation: 22000.1219
esp-idf version: v5.0
Thank's for the help.
it's the end of 2022 and the visual studio code extension still doesn't work at first try(at least not on windows).
This is a pain in the ass for the developer.
I had to manually add the environment variables AGAIN and AGAIN and AGAIN in each new esp-idf installation, and it's still not working.
The project compiles with previous versions of cmake, now errors appear:
Component directory C:/projects/project_folder/components/communication does not contain a CMakeLists.txt file. No component will be added.
Component directory C:/projects/project_folder/components/ui does not contain a CMakeLists.txt file. No component will be added.
In Root project folder(C:/projects/project_folder/CMakeLists.txt) i have a CMakeLists.txt with:
Code: Select all
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS "${CMAKE_SOURCE_DIR}/components/ui" "${CMAKE_SOURCE_DIR}/components/communication")
# ${CMAKE_SOURCE_DIR} -> project root folder.
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(project_name)
My folder organization(before the new installation it compiled normally):
Code: Select all
.project-folder
ª CMakeLists.txt
ª partitions.csv
ª README.md
ª sdkconfig
ª sdkconfig.old
ª
+---components
ª +---communication
ª ª +---my_wifi
ª ª ª ª CMakeLists.txt
ª ª ª ª
ª ª ª +---src
ª ª ª ª my_wifi.c
ª ª ª ª
ª ª ª +---include
ª ª ª my_wifi.h
ª ª ª
ª ª +---my_server
ª ª ª CMakeLists.txt
ª ª ª
ª ª +---certs
ª ª ª prvtkey.pem
ª ª ª servercert.pem
ª ª ª
ª ª +---src
ª ª ª my_server.c
ª ª ª
ª ª +---include
ª ª my_server.h
ª ª
ª +---ui
ª +---drv
ª ª ª CMakeLists.txt
ª ª ª
ª ª +---src
ª ª ª my_drive.c
ª ª ª
ª ª +---include
ª ª my_drive.h
NOTE:
Edition: Windows 11 Enterprise
Version: 21H2
OS Compilation: 22000.1219
esp-idf version: v5.0
Thank's for the help.