Skip to content
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

menuconfig no option for altering save location (IDFGH-14762) #15503

Open
3 tasks done
hyansuper opened this issue Mar 2, 2025 · 8 comments
Open
3 tasks done

menuconfig no option for altering save location (IDFGH-14762) #15503

hyansuper opened this issue Mar 2, 2025 · 8 comments
Assignees
Labels
Status: Opened Issue is new Type: Feature Request Feature request for IDF

Comments

@hyansuper
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.4-683-g0ba53566fa

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

PowerShell

What is the expected behavior?

I just install esp-idf using the windows installation. with release/v5.4 version.

and I have read configuration guide on idf.py menuconfig.

What is the actual behavior?

but in menuconfig, when I hit [S] to save sdkconfig, I can't alter save location

also, the [D] for save minimal config can't alter save path

Steps to reproduce.

idf.py menuconfig
[O] to load default config
then [S] will save to the previuosly entered default config path, and overwrite the default config file

Build or installation Logs.


More Information.

No response

@hyansuper hyansuper added the Type: Bug bugs in IDF label Mar 2, 2025
@BitsForPeople
Copy link
Contributor

Why do you want to change the 'save path' of a project's sdkconfig file?

Every project has its own sdkconfig file, which stores the Kconfig settings for this project, and this project-specific file is what you edit via idf.py menuconfig.

@hyansuper
Copy link
Author

@BitsForPeople Hi, because I remember in previous version (idf v5.1) there's a prompt asking where you want config be saved.

Now there's a problem: surpose I have 2 minimal config files: "sdkconfig.release.defaults" and "sdkconfig.dev.defaults", So I hit [O] to load "sdkconfig.dev.defaults", then I hit [S] to save the full config, but now the saved path is fixed to previously selected "sdkconfig.dev.defaults" and overwrite it.

@Alvin1Zhang
Copy link
Collaborator

Thanks for reporting.

@github-actions github-actions bot changed the title menuconfig no option for altering save location menuconfig no option for altering save location (IDFGH-14762) Mar 3, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Mar 3, 2025
@espressif-bot espressif-bot added Type: Feature Request Feature request for IDF and removed Type: Bug bugs in IDF labels Mar 3, 2025
@dobairoland
Copy link
Collaborator

HI @hyansuper. I transfered this to feature request and we will consider it. Changing the sdkconfig file locations or names from menuconfig were never supported. I'm not sure if it ever will be.

@hyansuper
Copy link
Author

@dobairoland you don't necessarily have to support this feature, if default location is fix to sdkcobfig, and not overwrite other files.

@Honza0297
Copy link
Collaborator

Hi @hyansuper and thank you for reaching us! Currently, "our" menuconfig truly does not support changing the location where to save files (older versions did support it). It was removed on purpose, because most of the time (like 95 % of it) , the use case is just changing several values and wanting to save them back to sdkconfig.
I will consider how to support it for use cases like yours (something like "save as" option).

@hyansuper
Copy link
Author

I am sure in v5.1 there was an input text field prompt when you hit [D] or [S], just like [O]

@Honza0297
Copy link
Collaborator

You are right! Little bit of a context:
In ESP-IDF v5.2 and lower, we are using upstream kconfiglib for configuration, which has not been maintained for a long time (it is not our package, so we had to monkeypatch the most critical issues and live with the rest).
In ESP-IDf v5.3+, we are using our local "fork" (esp-idf-kconfig with forked kconfiglib) with some changes. The lack of saving window is one of them (it was removed in esp-idf-kconfig 2.3.0: https://github.com/espressif/esp-idf-kconfig/releases/tag/v2.3.0 on purpose as 95 % of the use-cases do not need it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

6 participants