markfinal / cruiz

Conan recipe user interface
https://cruiz.readthedocs.io/
Apache License 2.0
11 stars 1 forks source link

Changing config on a brand new local cache results in errors #130

Closed foundry-markf closed 4 months ago

foundry-markf commented 1 year ago

I had a local cache already on disk. I used the cruiz wizard to register it. Then I tried enabling revisions and print run commands, and got this error on the console

Traceback (most recent call last):
  File "/Users/mark.final/dev/conan/library_venv310/lib/python3.10/site-packages/cruiz/manage_local_cache/managelocalcachesdialog.py", line 728, in _config_toggle_revisions
    self._config_toggle(checked, ConanConfigBoolean.REVISIONS)
  File "/Users/mark.final/dev/conan/library_venv310/lib/python3.10/site-packages/cruiz/manage_local_cache/managelocalcachesdialog.py", line 715, in _config_toggle
    del self._modifications["Config"][config]
KeyError: 'Config'

cruiz v1.4.0a4

foundry-markf commented 4 months ago

Have tried this on an existing local cache, and a brand new local cache, and the error did not occur. Closing.