After migrating from powerline/powerline
to PH111P/powerline
, my tmux config breaks (I get the tmux' default green bar).
When using powerline-lint
, the script fails, but still shows 'found duplicate key'
:
Traceback (most recent call last):
File "/home/fliife/bin/powerline-lint", line 13, in <module>
sys.exit(check(args.config_path, args.debug))
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/__init__.py", line 450, in check
find_all_ext_config_files(search_paths, 'themes'),
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/__init__.py", line 379, in find_all_ext_config_files
'type': subdir,
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/__init__.py", line 335, in updated_with_config
hadproblem, config, error = load_json_file(d['path'])
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/__init__.py", line 327, in load_json_file
config, hadproblem = load(F)
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/markedjson/__init__.py", line 16, in load
r = loader.get_single_data()
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/markedjson/constructor.py", line 48, in get_single_data
return self.construct_document(node)
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/markedjson/constructor.py", line 57, in construct_document
for dummy in generator:
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/markedjson/constructor.py", line 252, in construct_yaml_map
value = self.construct_mapping(node)
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/markedjson/constructor.py", line 205, in construct_mapping
return BaseConstructor.construct_mapping(self, node, deep=deep)
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/markedjson/constructor.py", line 19, in f
return gen_marked_value(func(self, node, *args, **kwargs), node.start_mark)
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/markedjson/constructor.py", line 140, in construct_mapping
'found duplicate key', key_node.start_mark
File "/home/fliife/local/lib/python2.7/site-packages/powerline/lint/markedjson/loader.py", line 24, in echoerr
echoerr(*args, **kwargs)
TypeError: echoerr() takes exactly 0 arguments (4 given)
I installed powerline through yaourt -S powerline-i3-git
Here is my theme, and here is my colourscheme. These are my defined colours.
Please note that this config works fine with the classic powerline
Also, important note, the default
theme and colourscheme doesn't work either.
Somehow, I was able to get something like hl() has unknown argument click
(something like that), but I fail to reproduce this error message. I'll let you know if I manage to find the exact message
EDIT: The exact error I described above is the following:
Traceback (most recent call last):
File "/home/fliife/bin/powerline-config", line 22, in <module>
args.function(pl, args)
File "/home/fliife/local/lib/python2.7/site-packages/powerline/commands/config.py", line 15, in
__call__
self.function(*args, **kwargs)
File "/home/fliife/local/lib/python2.7/site-packages/powerline/bindings/config.py", line 211, in tmux_setup
init_tmux_environment(pl, args, set_tmux_environment=ste)
File "/home/fliife/local/lib/python2.7/site-packages/powerline/bindings/config.py", line 125, in init_tmux_environment
set_tmux_environment(varname, powerline.renderer.hlstyle(**highlight)[2:-1])
TypeError: hlstyle() got an unexpected keyword argument 'click'
It can be obtained by running powerline-config tmux setup