Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E5101: Cannot convert given lua type #49

Closed
mawkler opened this issue Nov 5, 2020 · 5 comments
Closed

E5101: Cannot convert given lua type #49

mawkler opened this issue Nov 5, 2020 · 5 comments

Comments

@mawkler
Copy link
Collaborator

mawkler commented Nov 5, 2020

Description

I tried barbar.nvim on my Windows machine but I'm getting the following error:

Error detected while processing function bufferline#update[1]..bufferline#render:
Line    1:
E5101: Cannot convert given lua type

To Reproduce

init.vim:

call plug#begin('~/.vim/bundle')
Plug 'romgrk/barbar.nvim'
call plug#end()

Steps to reproduce the behavior:

  1. Edit a file
  2. Edit another file
  3. The error occurs

Information

Ouput of :version:

NVIM v0.5.0-496-gd2766b06c
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe /DWIN32 /D_WINDOWS /W3 /MD /Zi /O2 /Ob1 /DNDEBUG /W3 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DWIN32 -D_WIN32_WINNT=0x0600 -DINCLUDE_GENERATED_DECLARATIONS -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -IC:/projects/neovim/build/config -IC:/projects/neovim/src -IC:/projects/nvim-deps/usr/include -IC:/projects/neovim/build/src/nvim/auto -IC:/projects/neovim/build/include
Compiled by appveyor@APPVYR-WIN

Features: -acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM\sysinit.vim"
  fall-back for $VIM: "C:/Program Files/nvim/share/nvim"

Run :checkhealth for more info
@romgrk
Copy link
Owner

romgrk commented Nov 5, 2020

With that config icons would be enabled but not present, that would already be an issue. Otherwise could you update barbar and try again? I've added another guard for error reporting, normally it should now report the file & line number of any error.

@mawkler
Copy link
Collaborator Author

mawkler commented Nov 6, 2020

I updated barbar.nvim but I get the exact same error message:

Error detected while processing function bufferline#update[1]..bufferline#render:
Line    1:
E5101: Cannot convert given lua type

Also, I get the same error if I disable icons.

The first buffer tab gets rendered properly and without printing any error, but editing additional files raises the error and only renders the tab separator as seen in the following screenshot.

image

@romgrk
Copy link
Owner

romgrk commented Nov 7, 2020

I've been trying to build neovim on windows but my attempts have been met with failure. I will try again in the next days once I have regained my lost confidence. Meanwhile could you confirm that you're running a recent build of neovim? Could you also try to open the file .../barbar.nvim/lua/bufferline/render.lua, uncomment the line (around 255) that starts with -- print(render(... and tell me if any error(s) arise(s)?

@mawkler
Copy link
Collaborator Author

mawkler commented Nov 7, 2020

Ok I thought Neovim 0.5 was enough but I upgraded from v0.5.0-496-gd2766b06c to the latest available version (v0.5.0-811-g0227091fb) and now barbar.nvim seems to be working fine.

@romgrk
Copy link
Owner

romgrk commented Nov 7, 2020

Yes, 0.5 is unstable still. I'll close then.

@romgrk romgrk closed this as completed Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants