Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use neorocks #225

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

test: use neorocks #225

wants to merge 1 commit into from

Conversation

teto
Copy link
Collaborator

@teto teto commented Aug 28, 2023

This allows to use a neovim-aware lua interpreter
https://github.com/nvim-neorocks/neorocks/

$ busted tests/ fails with


suite tests/main_spec.lua
...uajit-2.1.0-2022-10-04-env/share/lua/5.1/plenary/log.lua:9: attempt to index global 'vim' (a nil value)

stack traceback:
	...uajit-2.1.0-2022-10-04-env/share/lua/5.1/plenary/log.lua:9: in main chunk

but because it ignores the interpreter set in luarocks, which is why the command to run really should be luarocks test but in my case it tries to install the busted package and fails: the luarocks config should be updated to contain busted (via nixpkgs' generateLuarocksConfig for instance).

This allows to use a neovim-aware lua interpreter
https://github.com/nvim-neorocks/neorocks/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant