plenary.nvim
plenary.nvim copied to clipboard
<Plug>PlenaryTestFile errors on require module 'plenary.busted'
When I run <Plug>PlenaryTestFile, a popup opens with the following error:
If I run this command () in a terminal I get the same error:
stackmap.nvim on main took 4s
[I] ➜ vim --headless -c "PlenaryBustedDirectory tests/"
Starting...Scheduling: tests//stackmap_spec.lua
Error detected while processing command line:
E5108: Error executing lua [string ":lua"]:1: module 'plenary.busted' not found:
no field package.preload['plenary.busted']
no file './plenary/busted.lua'
no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/plenary/busted.lua'
no file '/usr/local/share/lua/5.1/plenary/busted.lua'
no file '/usr/local/share/lua/5.1/plenary/busted/init.lua'
no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/plenary/busted.lua'
no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/plenary/busted/init.lua'
no file './plenary/busted.so'
no file '/usr/local/lib/lua/5.1/plenary/busted.so'
no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/plenary/busted.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './plenary.so'
no file '/usr/local/lib/lua/5.1/plenary.so'
no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/plenary.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
However, when I run PlenaryTestFile in the terminal, the tests run fine:
stackmap.nvim on main took 3m 10s
[I] ➜ lvim --headless -c "PlenaryBustedFile tests/stackmap_spec.lua"
========================================
Testing: tests/stackmap_spec.lua
Success || stackmap can be required
Success || stackmap can push a single mapping
Success: 2
Failed : 0
Errors : 0
========================================
@tjdevries thanks for any help!
try to run your command from cli with --noplugin -u scripts/minimal.vim
the minimal.vim
should only load your plugins and plenary
I cant reproduce <Plug>PlenaryTestFile
issue thought
I am also having issues with having the popup work properly as well.