plenary.nvim icon indicating copy to clipboard operation
plenary.nvim copied to clipboard

<Plug>PlenaryTestFile errors on require module 'plenary.busted'

Open dendosan opened this issue 2 years ago • 4 comments

When I run <Plug>PlenaryTestFile, a popup opens with the following error: Screen Shot 2022-04-21 at 9 56 58 AM

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
========================================

dendosan avatar Apr 21 '22 13:04 dendosan

@tjdevries thanks for any help!

dendosan avatar Apr 21 '22 14:04 dendosan

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

Conni2461 avatar May 12 '22 14:05 Conni2461

I am also having issues with having the popup work properly as well.

LeviticusNelson avatar Jun 26 '22 07:06 LeviticusNelson