You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tab completion crashes with "wopt_index is out of range" #12078
$ (type part of command, press tab)
thread 'main' panicked at src/wgetopt.rs:183:9:
wopt_index is out of range
stack backtrace:
0: __rustc::rust_begin_unwind
1: core::panicking::panic_fmt
2: fish::text_face::parse_text_face_and_options
3: fish::text_face::parse_text_face
4: fish::highlight::highlight::HighlightColorResolver::resolve_spec_uncached::{{closure}}
5: fish::highlight::highlight::HighlightColorResolver::resolve_spec
6: fish::screen::Screen::write
7: fish::reader::reader::Reader::paint_layout
8: fish::reader::reader::Reader::handle_char_event
9: fish::reader::reader::Reader::readline
10: fish::reader::reader::reader_read
11: fish::throwing_main
12: fish::panic::panic_handler
13: fish::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
fish crashed, please report a bug. Debug PID 4772 or press Enter to exit
Fish version: 4.2.1
Terminal: Konsole 25.08.3
OS: NixOS unstable
Using NixOS' command-not-found, starship
Running sh -c 'env HOME=$(mktemp -d) XDG_CONFIG_HOME= XDG_DATA_DIRS= fish' makes the problem go away, so it may have something to do with an external component interfacing with Fish. But I don't know where the problem lies or how to find it.
changed the title [-]Tab completion crashes with `wopt_index` is out of range[/-][+]Tab completion crashes with "`wopt_index` is out of range"[/+]on Nov 18, 2025
it's probably crashing parsing one of your fish_color_* or fish_pager_color_* variables.
Can you bisect those (unset as many as possible, until only the offending color variable remains).
We'd need the value of that.
Activity
[-]Tab completion crashes with `wopt_index` is out of range[/-][+]Tab completion crashes with "`wopt_index` is out of range"[/+]krobelus commentedon Nov 18, 2025
it's probably crashing parsing one of your
fish_color_*orfish_pager_color_*variables.Can you bisect those (unset as many as possible, until only the offending color variable remains).
We'd need the value of that.
Rua commentedon Nov 18, 2025
Yes, that was it!
Setting it to
--italicswith two-fixes the crash.Don't try to use partially-parsed colors on error
Don't try to use partially-parsed colors on error