Skip to content
BlaCk_Void edited this page Jun 22, 2020 · 1 revision

Installation Error

Icon Broken

icon-broken

Solution

WSL(Windows Subsystem for Linux)

https://medium.com/@slmeng/how-to-install-powerline-fonts-in-windows-b2eedecace58

Install fonts in local account(Don't have sudo permission)

Move fonts to ~/.local/share/fonts && fc-cache -f -v

Unknown locale

Sample

Traceback (most recent call last):
File "/Users/someone/.pyenv/versions/3.7.4/bin/powerline-config", line 20, in <module>    pl = config.create_powerline_logger(args)
File "/Users/someone/.pyenv/versions/3.7.4/lib/python3.7/site-packages/powerline/bindings/config.py", line 226, in create_powerline_logger    common_config = finish_common_config(get_preferred_output_encoding(), config['common'])
File "/Users/someone/.pyenv/versions/3.7.4/lib/python3.7/site-packages/powerline/lib/encoding.py", line 49, in get_preferred_output_encoding    or locale.getdefaultlocale()[1]
File "/Users/someone/.pyenv/versions/3.7.4/lib/python3.7/locale.py", line 568, in getdefaultlocale    return _parse_localename(localename)
File "/Users/someone/.pyenv/versions/3.7.4/lib/python3.7/locale.py", line 495, in _parse_localename    raise ValueError('unknown locale: %s' % localename)ValueError: unknown locale: UTF-8

Solution

Set your locale to ~/.zshenv.

Sample - en_US

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Sample - ko_KR

export LC_ALL=ko_KR.UTF-8
export LANG=ko_KR.UTF-8

WSL Performance

Issue #17

Solution

Reference: microsoft/WSL#4256 (comment)

Create a /etc/wsl.conf with

[automount]
enabled = false

[interop]
appendWindowsPath = false

You'll need to do a wsl.exe --shutdown after the change (or reboot).

Update Error

zinit Repository not found.

Developer of the zplugin removing the repo and creating a new one with zinit.

remote: Repository not found.
fatal: repository 'https://github.com/zdharma/zplugin.git/' not found
remote: Repository not found.
fatal: repository 'https://github.com/zdharma/zplugin.git/' not found
Compiling Zinit (zcompile)...
Reloading Zinit for the current session...

solution

cd $ZPLUGIN_DIR
git remote set-url origin https://github.com/zdharma/zinit.git