norcalli / nvim-colorizer.lua

The fastest Neovim colorizer.
Other
2.3k stars 118 forks source link

Bug: "attempt to call field 'create_namespace' (a nil value)" #37

Closed TannerYoung closed 4 years ago

TannerYoung commented 4 years ago

Describe the bug When enabling the plugin it causes neovim to crash

To Reproduce init.vim:

:let mapleader = ";"

:set number hlsearch tabstop=2 shiftwidth=2 expandtab
:set termguicolors
:syntax on
:set bg=dark

:map ' $
:noremap! jk <esc>
:noremap! <esc> <nop>
:nnoremap <leader>ev :vsplit $MYVIMRC<cr>
:nnoremap <leader>sv :source $MYVIMRC<cr>

call plug#begin()
Plug 'morhetz/gruvbox'

Plug 'norcalli/nvim-colorizer.lua'

call plug#end()
lua require 'colorizer'.setup()
:colorscheme gruvbox

terminal: termite

Expected behavior For it to work and not crash

Operating System: Ubuntu 18.04

Neovim Version: 0.2.2

Colorizer Version: 479bec1d73abd2b4f596b1d2c03c4f1f8e36ab76

Additional context Output on startup:

Error detected while processing /home/<user>/.config/nvim/init.vim:
line   20:
E5105: Error while calling lua chunk: ...config/nvim/plugged/nvim-colorizer.lua/lua/colorizer.lua:326: attempt to call field 'create_namespace' (a nil value)
Press ENTER or type command to continue
justinmk commented 4 years ago

from the readme:

Requires Neovim >= 0.4.0

TannerYoung commented 4 years ago

Welp that makes sense and seems obvious in retrospect. Guess I suspected the Ubuntu 18.04 package to be somewhat up to date for neovim.

On Tue, Feb 18, 2020, 11:33 PM Justin M. Keyes notifications@github.com wrote:

from the readme:

Requires Neovim >= 0.4.0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/norcalli/nvim-colorizer.lua/issues/37?email_source=notifications&email_token=AFUG37CBF6JDURX2RFRSL7TRDTOF5A5CNFSM4KXSAES2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMGVKMI#issuecomment-588076337, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFUG37HZZQSZ7HRK7FQD6O3RDTOF5ANCNFSM4KXSAESQ .