idf-eclipse-plugin icon indicating copy to clipboard operation
idf-eclipse-plugin copied to clipboard

using sdkconfig editor on sdkconfig.defaults fills it with redundant settings. (IEP-1399)

Open emaayan opened this issue 11 months ago • 2 comments

Describe the bug when double clicking on sdkconfig.defaults it launches the configuration editor, which automatically fills with with every default configuration there is.

To Reproduce Steps to reproduce the behavior:

  1. double sdkconfig.defaults, and wait for the editor to open
  2. RCM on sdkconfig.defaults and open with text editor
  3. the file is full of settings

Expected behavior the file should only contain the actual settings that were changed.

Screenshots If applicable, add screenshots to help explain your problem.

Espressif-IDE Product Information: Espressif > Product Information (Copy content from the console and attach as a file)

the whole point of sdkconfig.defaults is to have the minimal change settings required for the project rather than getting lost between myriad of other options that obscure what you really want to configure, it doesn't even wait for the editor to save, to give you a chance to revert the file, it just litters it with defaults.

emaayan avatar Jan 14 '25 08:01 emaayan

Hi @emaayan,

You’re right about the purpose of the sdkconfig.defaults. We should probably change the pattern to exclude sdkconfig.defaults files from being opened with the SDKConfig editor. Since these files contain only a few settings, there’s little benefit in using the SDKConfig editor for them.

As a workaround for now, you can do the following:

  1. Right-click on the sdkconfig.defaults file.
  2. Select Open with -> Other....
  3. Choose Generic Text Editor for all sdkconfig.defaults files. image

sigmaaa avatar Jan 15 '25 15:01 sigmaaa

Hi @emaayan,

You’re right about the purpose of the sdkconfig.defaults. We should probably change the pattern to exclude sdkconfig.defaults files from being opened with the SDKConfig editor. Since these files contain only a few settings, there’s little benefit in using the SDKConfig editor for them.

As a workaround for now, you can do the following:

  1. Right-click on the sdkconfig.defaults file.
  2. Select Open with -> Other....
  3. Choose Generic Text Editor for all sdkconfig.defaults files. image

thanks, not ust pure defaults, but also defaults.s3 etc.. but you should give it some minimal color syntax highlighting.

emaayan avatar Jan 15 '25 17:01 emaayan