-
Notifications
You must be signed in to change notification settings - Fork 357
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
invalid config makes it hard to fix the config #3317
Comments
(Oh and of course, manually looking up the config path, editing the file to fix it, fixes the issue) |
Seems like the Maybe a better default here would be to warn about the invalid setting but revert to a default in case of invalid settings? |
Same goes for the other values that are read by
|
The error would be detected by Perhaps, failed |
Maybe the values in |
That's also doable, but I don't think we need to try to parse broken user settings as much as possible. If the config file had syntax error, the error would be detected earlier. So we'll probably need some fallback at the call site (= |
So, check for any errors from |
Yes. Btw, If |
So, consensus is to print the path and just fail? |
I personally think that's good enough. And the path thing will hopefully be resolved if we can upgrade config-rs. See #3023 (comment) for the blocker. Until then, maybe we can print all searched paths? |
Oh, wasn't aware of #3023. I'll whip up a PR then and just print all searched paths. |
This addresses issue jj-vcs#3317, where as discussed we want to show the paths to configuration files if they contain errors, to make it easier for the user to locate them.
This addresses issue jj-vcs#3317, where as discussed we want to show the paths to configuration files if they contain errors, to make it easier for the user to locate them.
This addresses issue jj-vcs#3317, where as discussed we want to show the paths to configuration files if they contain errors, to make it easier for the user to locate them.
This addresses issue jj-vcs#3317, where as discussed we want to show the paths to configuration files if they contain errors, to make it easier for the user to locate them.
This addresses issue jj-vcs#3317, where as discussed we want to show the paths to configuration files if they contain errors, to make it easier for the user to locate them.
This addresses issue #3317, where as discussed we want to show the paths to configuration files if they contain errors, to make it easier for the user to locate them.
With 3cd1fe4 merged, should this issue be closed? |
Agreed. Closing this, thanks! |
Excellent! Thanks so much for implementing this! Here's what it looks like:
|
Description
I managed to mis-configure
jj
:$ jj config set --user ui.paginate :builtin
An ominous silence (not really, it's just funnier to put it that way). This was an error, but I didn't get any error message.
This gives an error:
That's fine, I'll just set it to
auto
, what I meant to set it to in the first place:Uh oh. Where does the config live so I can edit it? Well:
Oh no.
Honestly this is a very funny bug.
Specifications
The text was updated successfully, but these errors were encountered: