vim-airline / vim-airline

lean & mean status/tabline for vim that's light as air
MIT License
17.78k stars 1.1k forks source link

Visual Bug: Intro instantly disappears in Neovim #1817

Closed LunarLambda closed 5 years ago

LunarLambda commented 5 years ago

The only plugin I have installed is airline, removing it fixes the issue. Interestingly, the intro screen disappears in Vim when running :redrawstatus, but not :redraw. This is likely to be related to that. I could disable the intro entirely but I'd like to keep it for novelty reasons.

environment

actual behavior

Intro immediately disappears (or doesn't show at all when no vimrc loaded)

expected behavior

[n]vim shows intro message on startup until input is received. (or the statusline is redrawn, see above)

chrisbra commented 5 years ago

yes something triggers a redraw. I don't know what.

chrisbra commented 5 years ago

relevant information: https://github.com/vim-airline/vim-airline/issues/1807#issuecomment-432029307

chrisbra commented 5 years ago

can you check if the old commit 13993d120e3e8a44fb8bc22b9 fixes it?

LunarLambda commented 5 years ago

Sure, need to get unstuck from traffic hell first tho :p

LunarLambda commented 5 years ago

It does fix it. Also: The bug doesn't happen (on master) when running neovim in tmux, wat

chrisbra commented 5 years ago

please check latest head 33a6337, ping @ZurrTum

LunarLambda commented 5 years ago

Works

rebelot commented 5 years ago

I have the same problem but it's not fixed.... everything is up to date.

chrisbra commented 5 years ago

please be precise. What versions are you using?

rebelot commented 5 years ago

neovim: NVIM v0.3.1-1-g489d32f

airline latest update: commit a334a89e5928af9650347b5ddcfae2d75b59325a (HEAD -> master, origin/master, origin/HEAD) Date: Thu Nov 8 07:54:01 2018 +0100

does not happen in vim8.1

chrisbra commented 5 years ago

just to be on the safe side, what does your nvim say about :echo exists('*timer_start') && exists('*funcref')

rebelot commented 5 years ago

a resounding 1

chrisbra commented 5 years ago

okay, good. So when does the intro message vanish? right after startup or more like 5 seconds afterwards? BTW: what terminal are you using? How about tmux?

rebelot commented 5 years ago

it disappears as soon as I launch nvim, so quickly I can't even see it. it does not seem to be tmux related as it happens both inside and outside tmux

chrisbra commented 5 years ago

so it is not the focusgained autocommand. Now we need to find out, what triggers the redraw for you. Did this work previously? Can you bisect which commit broke it? Can you try in a different terminal?

rebelot commented 5 years ago

alright, this is odd.... the problem is not airline itself.... it's airline + neomake, removing one of the two fixes the issue. I checked out airline commits of the last couple months before bisecting other plugins and found this conflict with neomake, tried to checkout neomake latest commits but I couldn't find the culprit

chrisbra commented 5 years ago

is neomake running on startup? That could trigger a redraw. Question is, why should neomake run on startup? ping @blueyed

blueyed commented 5 years ago

Depends on the config I guess.

@rebelot How do you configure Neomake?

rebelot commented 5 years ago

@blueyed

Plug 'neomake/neomake' that's it.

blueyed commented 5 years ago

@rebelot Then configure let g:neomake_logfile = '/tmp/neomake.log' and check if it is doing something. Also try if putting finish at the top of plugin/neomake.vim helps. Also try vim -V9 maybe. No further ideas though. Might also be a Neovim issue, since it works with Vim for you?!

rebelot commented 5 years ago

it works on vim indeed. neomake.log is not even written at startup (I have to issue a neomake command for the file to be created)

the really fun thing is that this happens only with neomake and airline together.

EDIT: setting let g:airline#extensions#neomake#enabled = 0 fixes the issue.

blueyed commented 5 years ago

Was about to ask that. So it appears related to be to the integration code that airline ships.

blueyed commented 5 years ago

@rebelot You might try if finishing here unconditionally fixes it: https://github.com/blueyed/vim-airline/blob/8c36d2b59544222238f40cf21ebe45a81258b465/autoload/airline/extensions/neomake.vim#L4-L6

If not, try to comment other stuff in there.

starwing commented 5 years ago

Intro still disapeared after CursorHold time, I think it's because the airline-whitespce function.

darrinholst commented 2 years ago

It was enabling airline_skip_empty_sections that was making this happen for me