blindFS / vim-taskwarrior

vim interface for taskwarrior
Other
518 stars 42 forks source link

statusbar errors #113

Closed linuxcaffe closed 9 years ago

linuxcaffe commented 9 years ago

I'm not sure where this is coming from, but I'm seeing some messed up status bar. It's been like this (for me) for a few weeks.

vim-tw_status-bar-errors_screenshot

I'm using an up-to-date vim-taskwarrior and vim-airline, I'm seeing the error with and without taskwiki active.

blindFS commented 9 years ago

What's the value of b:context? And the output of "task context show" in shell?

linuxcaffe commented 9 years ago

The output of 'task context show' is "No context is currently applied." but the statusbar weirdness persists with or without a context setting.

and I'm not sure how to issue the command 'b:context'

blindFS commented 9 years ago

:echo b:context. Will you please try to figure out which line in autoload/airline/extensions/taskwarrior.vim caused this ? (probably between line 4-8). You may try to comment out part of those lines to see what happens.

linuxcaffe commented 9 years ago

So sorry, there doesn't seem to be a taskwarrior.vim in the airline extensions, either locally, or in the repo; https://github.com/bling/vim-airline/tree/master/autoload/airline/extensions . otherwise, I would happily poke at it.

blindFS commented 9 years ago

That file exists in this repo. Not in vim-airline vim-taskwarrior/autoload/airline/extensions/taskwarrior.vim

linuxcaffe commented 9 years ago

ohh. sorry for being such a dunce Zc, I'll test with the vim-tw file.

blindFS commented 9 years ago

My bad, I should provide more details. Don't feel sorry.

linuxcaffe commented 9 years ago

Commenting out lines in taskwarrior.vim seemed to have no effect. I'm stumped! :)

blindFS commented 9 years ago

The output of echo airline#statusline(1)?

linuxcaffe commented 9 years ago

%{airline#check_mode(1)}%#airline_a#%( %#airline_a_bold#%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#%{airline#util#append(airline#pa rts#paste(),0)}%{airline#util#append("",0)}%{airline#util#append(airline#parts#iminsert(),0)} %)%#airline_a_to_airline_b#▶%#airline_b#%( %{airli ne#util#wrap(airline#extensions#branch#get_head(),0)} %)%#airline_b_to_airline_c#▶%#airline_c#%( %<%f%m %#airline_c_red#%{airline#util#wrap(airl ine#parts#readonly(),0)}%#airline_c# %)%=%#airline_c_to_airline_x#◀%#airline_x#%( %{airline#util#prepend(airline#extensions#tagbar#currenttag(), 0)}%{airline#util#wrap(airline#parts#filetype(),0)} %)%#airline_x_to_airline_y#◀%#airline_y#%( %{airline#util#wrap(airline#parts#ffenc(),0)} %)%

airline_y_to_airline_z#◀%#airline_z#%( %3p%% %{g:airline_symbols.linenr}%#airline_z_bold#%4l%#airline_z#:%3v %)%(%#airline_z_to_airline_warnin

g#◀%#airline_warning#%( %{airline#util#wrap(airline#extensions#whitespace#check(),0)} %)%)

blindFS commented 9 years ago

Do you get that output In a tw buffer?

linuxcaffe commented 9 years ago

.. uhh..no :) this was: %{airline#check_mode(1)}%#airline_a# Taskwarrior %=%#airline_a_to_airline_x#◀%#airline_x# %{b:now} < %{b:task_report_columns[taskwarrior#data#cu rrent_index()]} %#airline_x_to_airline_y#◀%#airline_y# %{b:sort} %#airline_y_to_airline_z#◀%#airline_z#%#airline_z_orange#%{airline#util#wrap(" 2 ",0)}%#airline_z#< %{b:summary[0]} <%#airline_z_green#%{airline#util#wrap(" 105 ",0)}%#airline_z#< %{b:summary[2]}

blindFS commented 9 years ago

OK, I think b:now caused this, execute this command task active limit:1 rc.verbose:nothing rc.report.active.sort=start- rc.report.active.columns=start.active,start.age,id,description.desc rc.report.active.labels=A,Age,ID,Description in shell should get 1-line output since verbose:nothing.

linuxcaffe commented 9 years ago

(self-corrected)

It doesn't, currently produce a single line of output..

 djp  ~  task active limit:1 rc.verbose:nothing rc.report.active.sort=start- rc.report.active.columns=start.active,start.age,id,description.desc rc.report.active.labels=A,Age,ID,Description
A Age ID Description    
* 2d  98 get Smart Serve

that's one line of labels, one line of data..

"b:now caused this"?

I'm using task 2.3.3

blindFS commented 9 years ago

Should be no line of labels. Pull and see whether 63c2ea3585905d6e5c37b553d8afbef39a061fb5 can fix your problem.

linuxcaffe commented 9 years ago

Sure does Zc! Thanks again, working perfectly now!