pure: I'm getting "illegal character: \"
General information
- Pure version: 1.7.0
- ZSH version: 5.4.2
- Terminal program & version: termite v13-11-g3e2c10f
- Operating system: Ubuntu 18.04
- ZSH framework: nothing, just zsh
I have:
- Tested with another terminal program and can reproduce the issue:
- Followed the Integration instructions for my framework
Tested and reproduced on xfce4-terminal.
I’ve installed it manually, just zsh and pure prompt.
Problem description
From time to time, I get the following error : "prompt_pure_async_callback:84: bad math expression: illegal character: " I did some digging and I found a few people have had this error or similar when in a git repo, and to my understanding this was fixed. I get this error often after when I leave vim, or other command line programs. But it also happens, seemingly randomly.
I just figured out that if I refresh i3, the next command will be preceded by the error message.
Reproduction steps
- Stay in vim for a while then exit, it usually spits out the error
- Refresh i3, type enter in terminal
My .zshrc:
autoload -U promptinit; promptinit prompt pure
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 28
Commits related to this issue
- Update zsh-async to 1.7.0 Fixes #420. — committed to sindresorhus/pure by mafredri 6 years ago
- Update zsh-async to 1.7.0 (#429) Fixes #420 — committed to sindresorhus/pure by mafredri 6 years ago
- Update zsh-async to 1.7.0 (#429) Fixes #420 — committed to kutsan/pure by mafredri 6 years ago
Hi guys, thanks for the help ! So no I’m not using any interactive password prompts, and yes I am using the master branch. I ran the command before and after the error and same as @mehalter I’m not getting a change in the output :
❯ pwd; typeset -p prompt_pure_vcs_info; typeset -p ASYNC_PROCESS_BUFFER /home/lcoyle typeset -A prompt_pure_vcs_info=( branch ‘’ top ‘’ ) typeset -A ASYNC_PROCESS_BUFFER=( prompt_pure ‘’ )
~ ❯
~ ❯ prompt_pure_async_callback:84: bad math expression: illegal character:
~ ❯ pwd; typeset -p prompt_pure_vcs_info; typeset -p ASYNC_PROCESS_BUFFER /home/lcoyle typeset -A prompt_pure_vcs_info=( branch ‘’ top ‘’ ) typeset -A ASYNC_PROCESS_BUFFER=( prompt_pure ‘’ )
I checked the version of async and indeed I was outdated, I went and updated to 1.6.0 but I’m still getting the error. I don’t see any other instance of async either.