Skip to content

sdkconfig file path in project configuration doesn't work as expected (VSC-1817) #1726

@DuePonto

Description

@DuePonto

OS

Windows

Operating System version

Win 11

Visual Studio Code version

1.107.1

ESP-IDF version

5.5.0

Python version

3.11.9

Doctor command output

report.txt

Extension

esp_idf_vsc_ext.log

Description

General
my aim is to create git repo that will contain 2 Project Configurations (for now let's call them Protected and Unprotected). I don't wanna use sdkconfig.default files because I will not switch between ESP-IDF versions in this proect. So, I want to specify settings for every Project Configuration via sdkconfig file (NOT sdkconfig.default), by setting sdkconfig_file_path for each Project Configuration

Specifics of the current problem
I created project configurations "Protected" and "Unpotected", set "Build_Directory_path" as build\unprotected and
"sdkconfig_file_path" as sdkconfigs\unprotected\sdkconfig. But the result is that the sdkconfig file is always generated inside my project's build directory (build\unprotected in this case) with incorrect settings. esp_idf_project_configuration.json file pinned below

esp_idf_project_configuration.json

Image

I also looked in CMakeCache.txt file and found that SDKCONFIG variable is UNINITIALIZED in the same time as it's path written in esp_idf_project_configuration.json

Image

Also here my CMakeLists.txt

CMakeLists.txt

Questions:

  1. Is it possible to use sdkconfig without sdkconfig.default files for multi Project Configurations?
  2. Why Project sdkconfig's path from esp_idf_project_configuration.json ignored. Maybe I made a mistake or the VSCode extension is not working properly or else?

Debug Message

Tell if u need anything, idk what will be usefull in this case

Other Steps to Reproduce

  1. make a project with at least 2 project configurations (using same versions)
  2. set specific path to sdkconfig file in each config that differs from default path.
  3. Try to build

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportBug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions