-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select project configuration does not work as expected (VSC-1573) #1408
Comments
Also "Flash device" button must flash file from current config build directory. |
Hi @VasylMA, L.E.2: Found the tutorial for multiple config in the new documentation format https://docs.espressif.com/projects/vscode-esp-idf-extension/en/latest/additionalfeatures/multiple-projects.html#use-multiple-build-configurations-in-the-same-workspace-folder If the multiple projects is setup properly, the flash button will use the correct build directory as well. If you still have issues setting up multiple configs for your project after reviewing the above tutorial, please do the followings in order for me to be able to investigate your project example:
|
esp_idf_project_configuration.json file:
|
Hi @VasylMA, The problem seems to be with the file names: sdkconfig.defaullts.level3 and sdkconfig.defaullts.level3 , the default word in your case have double "L" . I also found a bug in regards to the build paths, they work only if they are absolute path, such as:
I'm going to make a fix for the build paths, but as a workaround for now, you can use absolute paths. |
Thanks! With relative path it works. Please add message "Default config file not found" |
Hi @VasylMA,
That's interesting, cause for me, if I try to use your settings from esp_idf_project_configuration.json , I get the following error when I try to build:
Can you confirm both build worked? And what action are you using to build? Is it the status bar icon |
|
I changed the defaults to make example work correctly. |
From what I can see, you've change the paths to be absolute, right?
or you needed to make this path absolute, like I can see you've modified it in your repo:
|
With relative path there is error |
Hey, I've made a PR for fixing the relative path issue: If you want, you can test these changes by installing this VSIX by click menu View -> Command Palette..., type Install from VSIX and then select downloaded esp-idf-extension.vsix file to install the extension. |
And now the problem with absolute paths, like
|
Hi @VasylMA, Thanks for pointing this out. The reason this happens is because the path does not exist anymore. Do you have suggestions on the behaviour you would like to see? Should you get an error notification informing you that the paths in the configuration don't exist and display a button that would run "ESP-IDF: Open Project Configuration" so that you edit the absolute path yourself? |
In my opinion, if there is a configuration file, the button should be there anyway. If we click it, a message may appear if the path is outside the project. |
There should also be the following warning: |
OS
Windows
Operating System version
Windows 10
Visual Studio Code version
1.96.4 (last)
ESP-IDF version
5.3.1
Python version
3.13.0
Doctor command output
Not required to reproduce the error
Extension
No response
Description
Create simple project with two config.
Build. -> Build directory is wrong.
Try edit "esp_idf_project_configuration.json" -> Changes does not applied
Switch config in bottom bar -> build error.
hello_world.zip
The idea is good. Implementation still wants better.
Debug Message
No Backtrace
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: