-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Messy output when do zplug update #419
Comments
I experience this when both installing plugins and updating. |
I have the same issue, and I found that I have the following line in my zshrc: If I remove that line, the rendering issues stop. I hope this helps. |
Mine doesn't contain similar line |
From
I am not manually setting this option either, and the default is |
Hmm, maybe it's a similar, but different issue then. I looked closer at the output and the error on the last line is different in my case:
|
Well, It turns out that non en_US locale cause this. |
@CarterLi I'm running Fedora 25. |
@bddenhartog What |
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8 |
Removing |
@spatz, that's very unlikely to be the cause:
|
Also:
|
@bddenhartog I read the documentation for that option and I don't know why it causes this bug, but the fact is that for me adding it causes it and removing it fixes it. |
@spatz If that's reproducible for you, then that's definitely weird. Perhaps there are multiple causes for this issue. |
I confirm this bug: $ zplug update
[zplug] Start to update 7 plugins in parallel
⠋ Updating... djui/alias-tips
⠋ Updating... zsh-users/zsh-completions
⠋ Updating... caarlos0/zsh-mkc
✔ Up-to-date djui/alias-tipsyntax-highlighting
✔ Up-to-date djui/alias-tipsompletionsions
⠸ Updating... zsh-users/zsh-completionsstring-search
✔ Up-to-date djui/alias-tipscntax-highlighting
✔ Up-to-date djui/alias-tipsompletionslighting
✔ Up-to-date zsh-users/zsh-completionsionsng-search
✔ Up-to-date caarlos0/zsh-mkcntax-highlightingearchperator expected at `0'
✔ Up-to-date zsh-users/zsh-syntax-highlighting
✔ Up-to-date zsh-users/zsh-autosuggestionsng-search
✔ Up-to-date zsh-users/zsh-history-substring-searchperator expected at `0'
✔ Up-to-date zplug/zplug
[zplug] Elapsed time: 1.7643 sec.tate:21: bad math expression: operator expected at `0'
==> Updating finished successfully! Setting $ LC_ALL=en_US.UTF-8 zplug update
[zplug] Start to update 7 plugins in parallel
✔ Up-to-date djui/alias-tips
✔ Up-to-date zsh-users/zsh-completions
✔ Up-to-date caarlos0/zsh-mkc
✔ Up-to-date zsh-users/zsh-syntax-highlighting
✔ Up-to-date zsh-users/zsh-autosuggestions
✔ Up-to-date zsh-users/zsh-history-substring-search
✔ Up-to-date zplug/zplug
[zplug] Elapsed time: 2.7418 sec.
==> Updating finished successfully! My locale: $ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL= |
I have the same problem as @sbusch, with system default locale being
Setting locale to
Setting locale to
For information :
My source ~/.zplug/init.zsh
zplug "zplug/zplug", hook-build:'zplug --self-manage'
# zplug "zsh-users/zsh-syntax-highlighting"
# Theme
# zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
# Install packages that have not been installed yet
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
else
echo
fi
fi
zplug load --verbose |
can confirm that Currently use this as a workaround in my zshrc:
|
zplug don't accept foreign language like French, Germain, Spain... when the command GIT is being used change git.zsh to fix this bug
Duplicate #363 |
Same problem. |
Same issue. |
used flags, I got rid of some anoying error messages when not using en_US.UTF-8 in LC_MESSAGES. Fixes zplug#419
For anyone struggling with setting $ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
$ git status
fatal: Kein Git-Repository (oder irgendeines der Elternverzeichnisse): .git
$ echo $LANGUAGE
de:en_US Even though
This also fixes zplug:
|
This issue still exist and setting the language (
|
Likewise, I'm still experiencing this too on any Linux machine, but not on MacOS. |
zplug --version
:2.4.1
zsh --version
:zsh 5.3.1-dev-0 (x86_64-apple-darwin16.6.0)
Also tried the stable versionuname -a
:Darwin litongzhoudeMacBook-Pro.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64 i386 MacBookPro11,5 Darwin
zplug env
Minimal zshrc (with less than 30 lines)
Step to reproduce
zplug update
Result
If I do full update, things get even worse
EDIT: If I redirect stdout into a file, I got this:
__zplug::utils::git::get_remote_state:21: bad math expression: operator expected at `0'
The text was updated successfully, but these errors were encountered: