-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Config is resetted after a CONF_VERSION bump #7875
Comments
I remember that configuration options cannot contain the |
It should be possible to use the I think the problem occurs because the |
From what I remember, we are not consistent in whether we use basic interpolation or no interpolation. As far as I could determine, the reason is Python 2 compatibility. But this was quite a while ago, so I may not remember correctly and our code base may have changed; it is also quite possible I did not misunderstood our implementation as I did not try to get to the bottom of it. |
Hmm, looking at the traceback, your explanation makes more sense. |
I think you are right with this though. I've read something along this line on stackoverflow. |
@ccordoba12 We really need to fix this before Beta2 is release, because it causes Spyder config to be wiped every-time the conf version increase. I think this should be a fairly easy one to fix, but since it is LSP related, I'm not sure I'm the best one to do it. |
Yeah, I'll address this next week. My plan is to refactor the LSP gui options added by @andfoy. |
Ok cool, thanks! |
In the meanwhile, a workaround to avoid losing our config while developing is to go in try:
old_value = old_defaults.get(section, option)
except Exception:
old_value = None @CAM-Gerlach this might interest you |
@dalthviz, please also work on this one. |
Problem Description
After doing a minor bump to the
CONF_VERSION
, the config are resettled to default.A
configparser.InterpolationMissingOptionError
is raised when trying to load the config when theCONF_VERSION
after a minor version bump, so Spyder revert to producing a defaultspyder.ini
file.What steps reproduce the problem?
try
statement here in order to get a traceback.init
files in the.spyder-py3
folderCONF_VERSION
herePaste Traceback/Error Below (if applicable)
Versions
Dependencies
The text was updated successfully, but these errors were encountered: