DougBeney / pickachu

The Best Color Picker for Vim! - A Color, Date, and File Chooser for Vim/NeoVim using Zenity
https://dougie.io
MIT License
89 stars 1 forks source link

When picking transparant color (with zenity) pickachu crashes #2

Closed bitsofreedom closed 6 years ago

bitsofreedom commented 6 years ago

image

image

Error detected while processing function Pickachu:
line    4:
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/home/bart/dotfiles/vim/.vim/bundle/pickachu/plugin/pickachu.py", line 121, in MainFuncti
on
    output = runApp(CHOOSEN_APP, CHOOSEN_FORMAT)
  File "/home/bart/dotfiles/vim/.vim/bundle/pickachu/plugin/pickachu.py", line 99, in runApp
    return app['processor'](output.rstrip())
  File "/home/bart/dotfiles/vim/.vim/bundle/pickachu/plugin/pickachu.py", line 29, in colorProces
sor
    hex = '#%02x%02x%02x' % (int(array[0]), int(array[1]), int(array[2]))
ValueError: invalid literal for int() with base 10: 'a(37'
DougBeney commented 6 years ago

Thanks for using Pickachu! I just fixed this issue in the last commit. :) Update the plugin and you should be good to go.