Skip to content

getting "string replace: Regular expression substitute error: unknown substring" after running commands #34

Description

@technicalpickles

Describe the bug

At some point in the last week or so, I've started seeing this while using fish after running any commands:

❯ cd -
string replace: Regular expression substitute error: unknown substring

It does not occur if no command is run, ie just hitting enter.

To Reproduce
Steps to reproduce the behavior:

  • fisher install gazorby/fish-abbreviation-tips
  • run any command, see the error
  • fisher remove gazorby/fish-abbreviation-tips
  • run any command, see no error

Expected behavior
A clear and concise description of what you expected to happen.

I don't expect to see an error from string replace

Screenshots
If applicable, add screenshots to help explain your problem.

System (please complete the following information):

  • fish version: fish, version 3.7.1
  • macOS 15.1

Additional context

I was able to narrow this down to fish-abbreviation-tips by finding

❯ functions --handlers
Event signal
SIGTRAP fish_sigtrap_handler
SIGWINCH __fish_winch_handler

Event variable
COLUMNS _tide_refresh_prompt
PWD __z_on_variable_pwd
PWD _tide_parent_dirs
__fish_git_prompt_char_cleanstate __fish_git_prompt_reset_char
__fish_git_prompt_char_dirtystate __fish_git_prompt_reset_char
__fish_git_prompt_char_invalidstate __fish_git_prompt_reset_char
__fish_git_prompt_char_stagedstate __fish_git_prompt_reset_char
__fish_git_prompt_char_stashstate __fish_git_prompt_reset_char
__fish_git_prompt_char_stateseparator __fish_git_prompt_reset_char
__fish_git_prompt_char_untrackedfiles __fish_git_prompt_reset_char
__fish_git_prompt_char_upstream_ahead __fish_git_prompt_reset_char
__fish_git_prompt_char_upstream_behind __fish_git_prompt_reset_char
__fish_git_prompt_char_upstream_diverged __fish_git_prompt_reset_char
__fish_git_prompt_char_upstream_equal __fish_git_prompt_reset_char
__fish_git_prompt_char_upstream_prefix __fish_git_prompt_reset_char
__fish_git_prompt_color __fish_git_prompt_reset_color
__fish_git_prompt_color_bare __fish_git_prompt_reset_color
__fish_git_prompt_color_branch __fish_git_prompt_reset_color
__fish_git_prompt_color_branch_detached __fish_git_prompt_reset_color
__fish_git_prompt_color_cleanstate __fish_git_prompt_reset_color
__fish_git_prompt_color_dirtystate __fish_git_prompt_reset_color
__fish_git_prompt_color_flags __fish_git_prompt_reset_color
__fish_git_prompt_color_invalidstate __fish_git_prompt_reset_color
__fish_git_prompt_color_merging __fish_git_prompt_reset_color
__fish_git_prompt_color_prefix __fish_git_prompt_reset_color
__fish_git_prompt_color_stagedstate __fish_git_prompt_reset_color
__fish_git_prompt_color_stashstate __fish_git_prompt_reset_color
__fish_git_prompt_color_suffix __fish_git_prompt_reset_color
__fish_git_prompt_color_untrackedfiles __fish_git_prompt_reset_color
__fish_git_prompt_color_upstream __fish_git_prompt_reset_color
__fish_git_prompt_show_informative_status __fish_git_prompt_reset
__fish_git_prompt_showcolorhints __fish_git_prompt_reset_color
__fish_git_prompt_use_informative_chars __fish_git_prompt_reset
_tide_prompt_46453 _tide_refresh_prompt
fish_key_bindings _autopair_fish_key_bindings
fish_key_bindings __fish_reload_key_bindings
fish_user_paths __fish_reconstruct_path

Event generic
_tide_init_install _tide_init_install
_tide_init_uninstall _tide_init_uninstall
_tide_init_update _tide_init_update
abbr_tips_install __abbr_tips_install
abbr_tips_uninstall __abbr_tips_uninstall
abbr_tips_update __abbr_tips_update
autopair_uninstall _autopair_uninstall
fish_cancel __vsc_cmd_clear
fish_command_not_found fish_command_not_found
fish_exit _tide_on_fish_exit
fish_exit __fish_disable_bracketed_paste
fish_postexec __vsc_cmd_finished
fish_postexec __abbr_tips
fish_postexec __fish_enable_focus
fish_preexec iterm2_preexec
fish_preexec __direnv_export_eval_2
fish_preexec __mise_env_eval_2
fish_preexec __fish_disable_bracketed_paste
fish_preexec __fish_disable_focus
fish_preexec __vsc_cmd_executed
fish_prompt __vsc_update_cwd
fish_prompt __direnv_export_eval
fish_prompt __mise_env_eval
fish_prompt __fish_enable_bracketed_paste
z_uninstall __z_uninstall

And seeing fish_postexec __abbr_tips.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions