FR: Make jj config edit/path
work even if current config is invalid
#5235
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
Consider this scenario: you run
jj config edit --user
and write some invalid TOML to the config file.All future
jj
commands immediately fail because the user config can't be parsed, includingjj config edit
.Describe the solution you'd like
I would like the
jj config
subcommands to not require a working config to run.Describe alternatives you've considered
The error message contains
Hint: Check the config file: <path to config.toml>
which you can then open in an editor manuallyThe text was updated successfully, but these errors were encountered: