romgrk / barbar.nvim

The neovim tabline plugin.
2.29k stars 85 forks source link

Barbar crashes on startup after building the latest neovim #139

Closed alexfertel closed 3 years ago

alexfertel commented 3 years ago

Description

Compiled neovim from source and barbar stopped working. It shows the following message when opening neovim:

Barbar detected an error while running. Barbar disabled itself :/                                                                                                                                                    
Include this in your report: '.../share/nvim/plugged/barbar.nvim/lua/bufferline/utils.lua:15: attempt to get length of local ''value'' (a userdata value)'

It worked fine with a build from a month ago.

To Reproduce

Options:

let bufferline = get(g:, 'bufferline', {})
let bufferline.animation = v:true
let bufferline.auto_hide = v:false
let bufferline.tabpages = v:true
let bufferline.closable = v:true
let bufferline.clickable = v:true
let bufferline.icons = v:true
let bufferline.icon_custom_colors = v:false
let bufferline.icon_separator_active = '▎'
let bufferline.icon_separator_inactive = '▎'
let bufferline.icon_close_tab = ''
let bufferline.icon_close_tab_modified = '●'
let bufferline.maximum_padding = 4
let bufferline.maximum_length = 30
let bufferline.semantic_letters = v:true
let bufferline.letters =
  \ 'asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP'
let bufferline.no_name_title = v:null

Steps to reproduce the behavior:

Follow the instructions here. Namely:

git clone https://github.com/neovim/neovim
cd neovim
sudo make CMAKE_BUILD_TYPE=Release install

Screenshots Screenshot from 2021-05-31 17-31-45

Informations

NVIM v0.5.0-dev+1365-g2a1bc8657
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/alex/alex/software/neovim/build/config -I/home/alex/alex/software/neovim/src -I/home/alex/alex/software/neovim/.deps/usr/include -I/usr/include -I/home/alex/alex/software/neovim/build/src/nvim/auto -I/home/alex/alex/software/neovim/build/include

Dotfiles: https://github.com/alexfertel/dotfiles

romgrk commented 3 years ago

Can't reproduce because I hit a different bug, if anyone wanna submit a PR in the meantime you're welcome.

romgrk commented 3 years ago

I've solved my issue but I can't reproduce this. Are you able to reproduce with a minimal vimrc? Can you provide more details?

alexfertel commented 3 years ago

@romgrk I played a bit around and it seems that the issue is when opening nvim with the startify plugin. Could you try it out, please?

romgrk commented 3 years ago

Unable to reproduce after installing startify and re-starting neovim. I've pushed an update to display the whole stack trace, can you try to update barbar, reproduce again and post the whole stack trace?

alexfertel commented 3 years ago

Yeap, I updated barbar and now it doesn't crash, or at least it shows no error. Maybe there were some other changes that fixed the issue?

I think we can close this now 😁 Thanks for the fast responses! Great work with barbar.

romgrk commented 3 years ago

No other changes, ok I'll close.