Skip to content
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

Color and colorshemes override not working - gnome terminal - shell #2239

Open
november781 opened this issue Sep 6, 2023 · 3 comments
Open

Comments

@november781
Copy link

Using gnome terminal, I have gotten powerline running, I can switch themes and between default colorschemes using ~/.config/powerline/config.json.

I would like to change the colors but any time I make changes to the colors in ~/.config/powerline/colorschemes/shell/default.json they aren't reflected upon replacing the daemon.

Using a colorscheme file named something other than the 3 default shell themes results in my bashrc never loading

fedora38 workstation attached are my current terminal showing the colors that are being applied and my current selections for colors which I think are completely different from what are being shown.
image

@november781 november781 changed the title Color and colorthemes override not working - gnome terminal - shell Color and colorshemes override not working - gnome terminal - shell Sep 6, 2023
@PH111P
Copy link
Member

PH111P commented Sep 6, 2023

Hi @november781,

Thanks for your report.

Some more things that you can check:

  • Is the color "darkorange" defined?
  • Does powerline-lint produce some errors?

@november781
Copy link
Author

november781 commented Sep 6, 2023

Hi @november781,

Thanks for your report.

Some more things that you can check:

  • Is the color "darkorange" defined?
  • Does powerline-lint produce some errors?

"darkorange" is defined, it's one of the default colors in colors.json with a value of 94
powerline-lint does not show errors

@november781
Copy link
Author

november781 commented Sep 7, 2023

Hi @november781,

Thanks for your report.

Some more things that you can check:

  • Is the color "darkorange" defined?
  • Does powerline-lint produce some errors?

I have an update on powerline-lint I managed to get it to spit some errors by changing the name of default.json to default_test.json in my ~/.config/powerline/coloschemes/shell/ folder. I've attached the error message. I changed nothing from the previous test other than changing that one file. When the override file is named default.json or missing these errors don't show

note: I'm still telling powerline to use defualt.json in my config file and it loads fine when replacing the daemon since its using the default.json shipped in the ect/ folder as expected.

One of the either variants failed. Messages from the first variant:

    Error while loading groups (key /groups/continuation)
    'cwd' must be a dict instance, not str
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 3, column 27:
        >--->---"continuation":         "cwd",
                                        ^

messages from the next variant:

    Error while checking group definition in colorscheme (key /groups/continuation)
    name cwd is not present anywhere in 2 shell default_test colorschemes: /home/test/.config/powerline/colorschemes/shell/default_test.json, /etc/xdg/powerline/colorschemes/shell/__main__.json
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 3, column 27:
        >--->---"continuation":         "cwd",
                                        ^

One of the either variants failed. Messages from the first variant:

    Error while loading groups (key /groups/continuation:current)
    'cwd:current_folder' must be a dict instance, not str
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 4, column 27:
        >--->---"continuation:current": "cwd:current_folder",
                                        ^

messages from the next variant:

    Error while checking group definition in colorscheme (key /groups/continuation:current)
    name cwd:current_folder is not present anywhere in 2 shell default_test colorschemes: /home/test/.config/powerline/colorschemes/shell/default_test.json, /etc/xdg/powerline/colorschemes/shell/__main__.json
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 4, column 27:
        >--->---"continuation:current": "cwd:current_folder",
                                        ^

One of the either variants failed. Messages from the first variant:

    Error while loading groups (key /groups/exit_fail)
    'critical:failure' must be a dict instance, not str
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 5, column 27:
        >--->---"exit_fail":            "critical:failure",
                                        ^

messages from the next variant:

    Error while checking group definition in colorscheme (key /groups/exit_fail)
    name critical:failure is not present anywhere in 2 shell default_test colorschemes: /home/test/.config/powerline/colorschemes/shell/default_test.json, /etc/xdg/powerline/colorschemes/shell/__main__.json
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 5, column 27:
        >--->---"exit_fail":            "critical:failure",
                                        ^

One of the either variants failed. Messages from the first variant:

    Error while loading groups (key /groups/exit_success)
    'critical:success' must be a dict instance, not str
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 6, column 27:
        >--->---"exit_success":         "critical:success",
                                        ^

messages from the next variant:

    Error while checking group definition in colorscheme (key /groups/exit_success)
    name critical:success is not present anywhere in 2 shell default_test colorschemes: /home/test/.config/powerline/colorschemes/shell/default_test.json, /etc/xdg/powerline/colorschemes/shell/__main__.json
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 6, column 27:
        >--->---"exit_success":         "critical:success",
                                        ^

One of the either variants failed. Messages from the first variant:

    Error while loading groups (key /groups/jobnum)
    'information:priority' must be a dict instance, not str
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 7, column 27:
        >--->---"jobnum":               "information:priority",
                                        ^

messages from the next variant:

    Error while checking group definition in colorscheme (key /groups/jobnum)
    name information:priority is not present anywhere in 2 shell default_test colorschemes: /home/test/.config/powerline/colorschemes/shell/default_test.json, /etc/xdg/powerline/colorschemes/shell/__main__.json
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 7, column 27:
        >--->---"jobnum":               "information:priority",
                                        ^

One of the either variants failed. Messages from the first variant:

    Error while loading groups (key /groups/superuser)
    'warning:regular' must be a dict instance, not str
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 8, column 27:
        >--->---"superuser":            "warning:regular"
                                        ^

messages from the next variant:

    Error while checking group definition in colorscheme (key /groups/superuser)
    name warning:regular is not present anywhere in 2 shell default_test colorschemes: /home/test/.config/powerline/colorschemes/shell/default_test.json, /etc/xdg/powerline/colorschemes/shell/__main__.json
      in "/etc/xdg/powerline/colorschemes/shell/__main__.json", line 8, column 27:
        >--->---"superuser":            "warning:regular"
                                        ^

Error while checking theme (key /segments/left/list item 3/function)
found highlight group virtualenv not defined in the following colorschemes: default_test
(If not specified otherwise in documentation, highlight group for function segments
is the same as the function name.)
  in "/etc/xdg/powerline/themes/shell/default.json", line 16, column 48:
     ...  "powerline.segments.common.env.virtualenv",
                                         ^

Error while checking theme (key /segments/left/list item 4/function)
  in "/etc/xdg/powerline/themes/shell/default.json", line 20, column 43:
     ... ion": "powerline.segments.shell.cwd",
                                         ^
found highlight group cwd:divider not defined in the following colorschemes: default_test
(Group name was obtained from function documentation.)
  in "<cwd docstring>", line 23, column 34:
    Divider highlight group used: ``cwd:divider``.
                                    ^

Error while checking theme (key /segments/left/list item 4/function)
found highlight groups list (cwd:current_folder, cwd) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default.json", line 20, column 43:
     ... ion": "powerline.segments.shell.cwd",
                                         ^

Error while checking theme (key /segments/left/list item 4/function)
found highlight group cwd:current_folder not defined in the following colorschemes: default_test

Error while checking theme (key /segments/left/list item 4/function)
found highlight group cwd not defined in the following colorschemes: default_test

Error while checking theme (key /segments/right/list item 1/function)
found highlight groups list (stash) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default.json", line 34, column 48:
     ...  "powerline.segments.common.vcs.stash",
                                         ^

Error while checking theme (key /segments/right/list item 1/function)
found highlight group stash not defined in the following colorschemes: default_test

Error while checking theme (key /segments/right/list item 2/function)
found highlight groups list (branch_clean) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default.json", line 38, column 48:
     ...  "powerline.segments.common.vcs.branch",
                                         ^

Error while checking theme (key /segments/right/list item 2/function)
found highlight group branch_clean not defined in the following colorschemes: default_test

Error while checking theme (key /segments/right/list item 2/function)
found highlight groups list (branch_dirty) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default.json", line 38, column 48:
     ...  "powerline.segments.common.vcs.branch",
                                         ^

Error while checking theme (key /segments/right/list item 2/function)
found highlight group branch_dirty not defined in the following colorschemes: default_test

Error while checking theme (key /segments/right/list item 2/function)
found highlight groups list (branch) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default.json", line 38, column 48:
     ...  "powerline.segments.common.vcs.branch",
                                         ^

Error while checking theme (key /segments/right/list item 2/function)
found highlight group branch not defined in the following colorschemes: default_test

Error while checking theme (key /segments/left/list item 2/function)
found highlight group virtualenv not defined in the following colorschemes: default_test
(If not specified otherwise in documentation, highlight group for function segments
is the same as the function name.)
  in "/etc/xdg/powerline/themes/shell/default_leftonly.json", line 13, column 48:
     ...  "powerline.segments.common.env.virtualenv",
                                         ^

Error while checking theme (key /segments/left/list item 3/function)
found highlight groups list (branch_clean) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default_leftonly.json", line 17, column 48:
     ...  "powerline.segments.common.vcs.branch",
                                         ^

Error while checking theme (key /segments/left/list item 3/function)
found highlight group branch_clean not defined in the following colorschemes: default_test

Error while checking theme (key /segments/left/list item 3/function)
found highlight groups list (branch_dirty) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default_leftonly.json", line 17, column 48:
     ...  "powerline.segments.common.vcs.branch",
                                         ^

Error while checking theme (key /segments/left/list item 3/function)
found highlight group branch_dirty not defined in the following colorschemes: default_test

Error while checking theme (key /segments/left/list item 3/function)
found highlight groups list (branch) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default_leftonly.json", line 17, column 48:
     ...  "powerline.segments.common.vcs.branch",
                                         ^

Error while checking theme (key /segments/left/list item 3/function)
found highlight group branch not defined in the following colorschemes: default_test

Error while checking theme (key /segments/left/list item 4/function)
  in "/etc/xdg/powerline/themes/shell/default_leftonly.json", line 21, column 43:
     ... ion": "powerline.segments.shell.cwd",
                                         ^
found highlight group cwd:divider not defined in the following colorschemes: default_test
(Group name was obtained from function documentation.)
  in "<cwd docstring>", line 23, column 34:
    Divider highlight group used: ``cwd:divider``.
                                    ^

Error while checking theme (key /segments/left/list item 4/function)
found highlight groups list (cwd:current_folder, cwd) with all groups not defined in some colorschemes
(Group names were taken from function documentation.)
  in "/etc/xdg/powerline/themes/shell/default_leftonly.json", line 21, column 43:
     ... ion": "powerline.segments.shell.cwd",
                                         ^

Error while checking theme (key /segments/left/list item 4/function)
found highlight group cwd:current_folder not defined in the following colorschemes: default_test

Error while checking theme (key /segments/left/list item 4/function)
found highlight group cwd not defined in the following colorschemes: default_test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants