martinvonz / jj

A Git-compatible VCS that is both simple and powerful
https://martinvonz.github.io/jj/
Apache License 2.0
8.26k stars 281 forks source link

jj throws a config error after setting "ui.paginate" incorrectly, refuses to correct this setting #4126

Open CSDUMMI opened 2 months ago

CSDUMMI commented 2 months ago

Description

I'm starting to learn jj and tried to setup the use of the pager. Because I new that never was an option for ui.paginate I guessed that the opposite value would be always, which it wasn't and which made all other jj commands afterwards fail.

Steps to Reproduce the Problem

  1. Run jj config set --user ui.paginate always
  2. Get Config error: Invalid ui.paginate
  3. Run jj config set --user ui.paginate auto

Expected Behavior

The configuration is corrected and set to auto, making it possible to use jj again.

Actual Behavior

All jj commands I tried (jj log, jj config set, jj --version) fail with the Config error ̇

Specifications

bnjmnt4n commented 2 months ago

This is improved in https://github.com/martinvonz/jj/pull/3852 (available in v0.19): https://github.com/martinvonz/jj/issues/3317#issuecomment-2166606998.