I’ve been trying to prepare my config for neovim 0.5 and all the good things that come with it but I find myself stuck.
Some plugins generate the following error at startup and don’t load:
E5108: Error executing lua vim.lua:291: module 'vim.uri' not found:
It points to this line in vim.lua:
elseif require('vim.uri')[key] ~= nil then -- Expose all `vim.uri` functions on the `vim` module. t[key] = require('vim.uri')[key] return t[key]
I don’t read Lua super well but it seems that if it can’t find anything named
vim.uri then it should just move on?
This happens with vim-airline and nvim-lspconfig.
For example, with the following
local cmd = vim.cmd cmd "call plug#begin('~/.vim/plugged')" cmd "Plug 'neovim/nvim-lspconfig'" cmd "call plug#end()"
:PlugInstall I get
Error detected while processing /Users/<my-user-name>/.vim/plugged/nvim-lspconfig/plugin/lspconfig.vim: line 11: E5108: Error executing lua vim.lua:291: module 'vim.uri' not found: no field package.preload['vim.uri'] no file './vim/uri.lua' [...]
The only other place I’ve seen the problem mentioned is here but the resolution was “Nvm. I ended up building and installing the current HEAD from source.”. This doesn’t help me because I did built neovim from source (specifically from 095f5da79cb8f108b67824039952c6b225cb3dac).
That comment also mentioned that their install was probably wrong, which is likely my case as well.
Starting neovim with
-u NONE and running
:lua require('vim.uri') predictably triggers
E5108: Error executing lua [string ":lua"]:1: module 'vim.uri' not found: no field package.preload['vim.uri'] no file './vim/uri.lua' [...]
Am I somehow missing a file?
I appreciate any help/pointers