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

cmp-buffer throws E5113 during loadup #1063

Closed
2 tasks done
mrghosti3 opened this issue Jul 4, 2022 · 3 comments
Closed
2 tasks done

cmp-buffer throws E5113 during loadup #1063

mrghosti3 opened this issue Jul 4, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@mrghosti3
Copy link

FAQ

  • I have checked the FAQ and it didn't resolve my problem.

Announcement

Minimal reproducible full config

Minimal vim config:

if has('vim_starting')
  set encoding=utf-8
endif
scriptencoding utf-8
 
if &compatible
  set nocompatible
endif
 
let s:plug_dir = expand('/tmp/plugged/vim-plug')
if !filereadable(s:plug_dir .. '/plug.vim')
  execute printf('!curl -fLo %s/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim', s:plug_dir)
end
 
execute 'set runtimepath+=' . s:plug_dir
call plug#begin(s:plug_dir)
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-buffer'
call plug#end()
PlugInstall | quit

Description

Throws the following error during launch (after plugin is installed using packer and reopening neovim instance)

Error detected while processing /home/vagrant/.local/share/nvim/site/pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:
E5113: Error while calling lua chunk: ...pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:1: attempt to index a boolean value
stack traceback:
        ...pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:1: in main chunk

Steps to reproduce

  1. Open vim (happens in neovim 0.7.2 and 0.6.1).
  2. Download/Install the plugins.
  3. Relaunch neovim and get the error.

Expected behavior

Actual behavior

Throws error mentioned in the description.

Additional context

OS: Ubuntu LTS 22.04 (Pop os 22.04 LTS)

Neovim:

NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az164-457

plugins:

  • wbthomason/packer.nvim
  • nvim-lua/popup.nvim
  • nvim-lua/plenary.nvim
  • lunarvim/colorschemes
  • hrsh7th/nvim-cmp
  • hrsh7th/cmp-buffer

config based on: https://github.com/LunarVim/Neovim-from-scratch/tree/05-completion/lua/user

@mrghosti3 mrghosti3 added the bug Something isn't working label Jul 4, 2022
@mrghosti3
Copy link
Author

Never mind this, apparently I had a script named exactly as module in a plugin. Sorry for the sillyness

@Fobo00
Copy link

Fobo00 commented Sep 27, 2022

Hey could you tell me what was the problem because I have the same error and i can't manage to find it

@mrghosti3
Copy link
Author

Well for me it was namespace collission. My lua config file had the same name as one of the plugins, to which the solution was to move all my scripts under another folder to change the namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants