acomagu/fish-async-prompt

Incompatible with oh-my-posh

FWest98 opened this issue · 3 comments

I have little understanding of what the code in this module does, but I do know that it is incompatible with the oh-my-posh prompt. To be specific, for some reason the variable $omp_status_cache seems to be empty, causing an invalid argument to be passed to the OMP executable here: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/src/shell/scripts/omp.fish#L32

When I try to set async_prompt_inherit_variables all, I get even more issues (set: Tried to change the read-only variable “status_generation”). Would you maybe have an idea what is happening here?

The error Tried to change the read-only variable “status_generation” is fixed at fcc8c25. Cloud you update the plugin and try async_prompt_inherit_variables all again?

If any problem still remains, please reopen. Thank you!

I still experience some issues with oh-my-posh. To be specific:

  • I get the following error message regularly: Error: invalid argument "--execution-time" for "-e, --error" flag: strconv.ParseInt: parsing "--execution-time": invalid syntax
  • The transient prompt feature does not work properly anymore

oh-my-posh seems to be using global variables. fish-async-prompt doesn't currently support such prompt functions, as we have not come up with a way to make it work. I'm sorry.