I noticed the error this morning, but I don't think I have changed anything last night, so I am very confused right now. Perhaps I updated some utilities on my system and it somehow broke the back compatibility. Basically I got a
math: Error: Missing operator error when using tab completion.
Say I type
fish, and hit Tab to get the suggestions like
fish_add_path (here is an asciinema screencast in case you want to see it in action: https://asciinema.org/a/L3xr32eVMGHuCY0Gjr19gFzCu)
[I] ~ $ fishmath: Error: Missing operator 'Wed Dec 31 18:00:00 CST 1969 - 1655913830' ^ [I] ~ $ fish_config fish (command) fish_add_path fish_breakpoint_prompt fish_clipboard_copy …and 29 more rows
The tab completion does work, but the error looks very annoying. Looks like I am trying to evaluate a data string or something. How do I diagnose the bug?
I am on macOS Monterey. Here is my
set -px PATH /opt/local/bin /opt/local/sbin set -px PATH $HOME/.local/bin set -px PATH $HOME/bin set -px PATH /Applications/MacPorts/Alacritty.app/Contents/MacOS set -px PATH $HOME/Foreign/drawterm set -px PATH $HOME/google-cloud-sdk/bin set -x XDG_CONFIG_HOME $HOME/.config set -x PIPENV_VENV_IN_PROJECT 1 set -x PLAN9 /usr/local/plan9 set -px PATH $PLAN9/bin if test -e $HOME/.config/fish/sensitive.fish source $HOME/.config/fish/sensitive.fish end if status is-interactive # Commands to run in interactive sessions can go here alias vi='/opt/local/bin/nvim' set -gx EDITOR /opt/local/bin/nvim source /opt/local/share/fzf/shell/key-bindings.fish end set -g fish_key_bindings fish_hybrid_key_bindings alias matlab='/Applications/MATLAB_R2021b.app/bin/matlab -nodisplay' zoxide init fish | source direnv hook fish | source # The next line updates PATH for the Google Cloud SDK. if [ -f '/Users/qys/google-cloud-sdk/path.fish.inc' ]; . '/Users/qys/google-cloud-sdk/path.fish.inc'; end