Open jeshwanth-harish opened 7 months ago
The secret to fixing this specific error is to edit the solarized.json
file in addition to default.json
: https://github.com/jaspernbrouwer/powerline-gitstatus/issues/5#issuecomment-104203416
In my case, this was ~/.local/lib/python3.8/site-packages/powerline/config_files/colorschemes/solarized.json
but it may be located elsewhere on your system (e.g. if you did not use pip to install powerline).
After doing this, if you still are not able to get the plugin to show, try powerline-daemon -k
to kill the daemon (for me it restarted immediately, working as intended=.
Hi there, power line doesn't show git status. Here are the files .bash_profile
powerline
export PATH="$PATH:/Users/jessyharish/Library/Python/3.9/bin/" export LC_ALL=en_US.UTF-8 powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 source /Users/jessyharish/Library/Python/3.9/lib/python/site-packages/powerline/bindings/bash/powerline.sh
~/.config/powerline/colorschems/default.json { "name": "Default", "groups": { "information:additional": { "fg": "gray9", "bg": "gray4", "attrs": [] }, "information:regular": { "fg": "gray10", "bg": "gray4", "attrs": ["bold"] }, "information:highlighted": { "fg": "white", "bg": "gray4", "attrs": [] }, "information:priority": { "fg": "brightyellow", "bg": "mediumorange", "attrs": [] }, "warning:regular": { "fg": "white", "bg": "brightred", "attrs": ["bold"] }, "critical:failure": { "fg": "white", "bg": "darkestred", "attrs": [] }, "critical:success": { "fg": "white", "bg": "darkestgreen", "attrs": [] }, "background": { "fg": "white", "bg": "gray0", "attrs": [] }, "background:divider": { "fg": "gray5", "bg": "gray0", "attrs": [] }, "session": { "fg": "black", "bg": "gray10", "attrs": ["bold"] }, "date": { "fg": "gray8", "bg": "gray2", "attrs": [] }, "time": { "fg": "gray10", "bg": "gray2", "attrs": ["bold"] }, "time:divider": { "fg": "gray5", "bg": "gray2", "attrs": [] }, "email_alert": "warning:regular", "email_alert_gradient": { "fg": "white", "bg": "yellow_orange_red", "attrs": ["bold"] }, "hostname": { "fg": "black", "bg": "gray10", "attrs": ["bold"] }, "weather": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "weather_temp_gradient": { "fg": "blue_red", "bg": "gray0", "attrs": [] }, "weather_condition_hot": { "fg": "khaki1", "bg": "gray0", "attrs": [] }, "weather_condition_snowy": { "fg": "skyblue1", "bg": "gray0", "attrs": [] }, "weather_condition_rainy": { "fg": "skyblue1", "bg": "gray0", "attrs": [] }, "uptime": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "external_ip": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "internal_ip": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "network_load": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "network_load_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] }, "network_load_sent_gradient": "network_load_gradient", "network_load_recv_gradient": "network_load_gradient", "network_load:divider": "background:divider", "system_load": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "system_load_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] }, "environment": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "cpu_load_percent": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "cpu_load_percent_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] }, "battery": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "battery_gradient": { "fg": "white_red", "bg": "gray0", "attrs": [] }, "battery_full": { "fg": "red", "bg": "gray0", "attrs": [] }, "battery_empty": { "fg": "white", "bg": "gray0", "attrs": [] }, "player": { "fg": "gray10", "bg": "black", "attrs": [] }, "user": { "fg": "brightyellow", "bg": "gray0", "attrs": ["bold"] }, "branch": { "fg": "gray9", "bg": "gray2", "attrs": [] }, "branch_dirty": { "fg": "brightyellow", "bg": "gray2", "attrs": [] }, "branch_clean": { "fg": "gray9", "bg": "gray2", "attrs": [] }, "branch:divider": { "fg": "gray7", "bg": "gray2", "attrs": [] }, "stash": "branch_dirty", "stash:divider": "branch:divider", "cwd": "information:additional", "cwd:current_folder": "information:regular", "cwd:divider": { "fg": "gray7", "bg": "gray4", "attrs": [] }, "virtualenv": { "fg": "white", "bg": "darkcyan", "attrs": [] }, "attached_clients": { "fg": "gray8", "bg": "gray0", "attrs": [] }, "gitstatus": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] }, "gitstatus_branch": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] }, "gitstatus_branch_clean": { "fg": "solarized:green", "bg": "solarized:base02", "attrs": [] }, "gitstatus_branch_dirty": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] }, "gitstatus_branch_detached": { "fg": "solarized:magenta", "bg": "solarized:base02", "attrs": [] }, "gitstatus_behind": { "fg": "solarized:base2", "bg": "solarized:base02", "attrs": [] }, "gitstatus_ahead": { "fg": "solarized:base2", "bg": "solarized:base02", "attrs": [] }, "gitstatus_staged": { "fg": "solarized:green", "bg": "solarized:base02", "attrs": [] }, "gitstatus_unmerged": { "fg": "solarized:red", "bg": "solarized:base02", "attrs": [] }, "gitstatus_changed": { "fg": "solarized:orange", "bg": "solarized:base02", "attrs": [] }, "gitstatus_untracked": { "fg": "solarized:yellow", "bg": "solarized:base02", "attrs": [] }, "gitstatus_stashed": { "fg": "solarized:blue", "bg": "solarized:base02", "attrs": [] }, "gitstatus:divider": { "fg": "solarized:base1", "bg": "solarized:base02", "attrs": [] } } }
~/.config/powerline/themes/shell/default.json { "segments": { "left": [ { "function": "powerline.segments.shell.mode" }, { "function": "powerline.segments.common.net.hostname", "priority": 10 }, { "function": "powerline.segments.common.env.user", "priority": 30 }, { "function": "powerline.segments.common.env.virtualenv", "priority": 50 }, { "function": "powerline.segments.shell.cwd", "priority": 10 }, { "function": "powerline.segments.shell.jobnum", "priority": 20 }, { "function": "powerline_gitstatus.gitstatus", "priority": 40 }
], "right": [ { "function": "powerline.segments.shell.last_pipe_status", "priority": 10 }, { "function": "powerline.segments.common.vcs.stash", "priority": 50 }, { "function": "powerline.segments.common.vcs.branch", "priority": 40 } ] } }
here is the ps info ps -ef|grep powerline-daemon 501 16195 1 0 2:57PM ?? /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python /Users/"user"/Library/Python/3.9/bin/powerline-daemon -q
powerline-lint
Error while checking theme (key /segments/left/list item 6/function) in "/Users/jessyharish/.config/powerline/themes/shell/default.json", line 28, column 40: ... function": "powerline_gitstatus.gitstatus", ^ found highlight group gitstatus:divider not defined in the following colorschemes: solarized, default (Group name was obtained from function documentation.) in "", line 27, column 34:
Divider highlight group used:
gitstatus:divider
. ^Error while checking theme (key /segments/left/list item 6/function) found highlight groups list (gitstatus_branch_detached) with all groups not defined in some colorschemes (Group names were taken from function documentation.) in "/Users/jessyharish/.config/powerline/themes/shell/default.json", line 28, column 40: ... function": "powerline_gitstatus.gitstatus", ^
Error while checking theme (key /segments/left/list item 6/function) found highlight group gitstatus_branch_detached not defined in the following colorschemes: solarized, default
Error while checking theme (key /segments/left/list item 6/function) found highlight groups list (gitstatus_branch_dirty) with all groups not defined in some colorschemes (Group names were taken from function documentation.) in "/Users/jessyharish/.config/powerline/themes/shell/default.json", line 28, column 40: ... function": "powerline_gitstatus.gitstatus",
what am I missing??