karlstav / cava

Cross-platform Audio Visualizer
MIT License
4.22k stars 232 forks source link

not parsing color hex correctly #430

Closed ghost closed 2 years ago

ghost commented 2 years ago

When/where was the bug introduced?

Describe the bug I set background/foreground to format #123abc and 123abc, both didn't work

To Reproduce Steps to reproduce the behavior:

  1. set background parameter to "#123abc"
  2. observe error
  3. set background parameter to "123abc"
  4. observe error

Expected behavior for hex colors to parse correctly

Screenshots image

Desktop (please complete the following information):

Terminal emulator

Additional context nothing

karlstav commented 2 years ago

0.7.2 is not the latest version, please get the latest version and check if the issue still exists.

ghost commented 2 years ago

it appears that the fedora repos are outdated.. maybe should put that in the readme

ghost commented 2 years ago

tried on git, same error

karlstav commented 2 years ago

could you attach your config file?

ghost commented 2 years ago

config.log log file because github wont accept no file extension (i also tried with #abc123, didn't work either)

karlstav commented 2 years ago

you have

background = '111111'
foreground = 'c850eb'

this will not work it must have the # in front like this:

background = '#111111'
foreground = '#c850eb'

I can see that you already tried this.

could you perhaps have done something like this:

background = '111111'
foreground = 'c850eb'

background = '#111111'
foreground = '#c850eb'

then it would read the non-working config line first and exit with error.

ghost commented 2 years ago

huh, for some reason this time it worked, closing as user error