Module 'json' not found
Closed this issue · 3 comments
binarious commented
Can't run :lua require'phpcs'.cs()
:
E5108: Error executing lua ...im/site/pack/packer/start/nvim-phpcsf/lua/phpcs/init.lua:2: module 'json' not found:
no field package.preload['json']
no file './json.lua'
no file '/usr/share/luajit-2.1.0-beta3/json.lua'
no file '/usr/local/share/lua/5.1/json.lua'
no file '/usr/local/share/lua/5.1/json/init.lua'
no file '/usr/share/lua/5.1/json.lua'
no file '/usr/share/lua/5.1/json/init.lua'
no file '/home/myuser/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/json.lua'
no file '/home/myuser/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/json/init.lua'
no file '/home/myuser/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/json.lua'
no file '/home/myuser/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/json/init.lua'
no file './json.so'
no file '/usr/local/lib/lua/5.1/json.so'
no file '/usr/lib/lua/5.1/json.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/myuser/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/json.so'
stack traceback:
[C]: in function 'require'
...im/site/pack/packer/start/nvim-phpcsf/lua/phpcs/init.lua:2: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
plateena commented
same here. @binarious do solve the issue? Mind share it here.
binarious commented
@plateena I did a wget of https://raw.githubusercontent.com/praem90/nvim-phpcsf/master/lua/phpcs/json.lua to /usr/share/lua/5.1/json.lua
. It works after that.
plateena commented
@plateena I did a wget of https://raw.githubusercontent.com/praem90/nvim-phpcsf/master/lua/phpcs/json.lua to
/usr/share/lua/5.1/json.lua
. It works after that.
Thanks @binarious