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

How to use rocks installed through packer? #252

Closed
VVKot opened this issue Mar 13, 2021 · 3 comments
Closed

How to use rocks installed through packer? #252

VVKot opened this issue Mar 13, 2021 · 3 comments

Comments

@VVKot
Copy link

VVKot commented Mar 13, 2021

I added use_rocks "lua-cjson" to my packer config and successfully installed them. My impression was that now I can do something like local json = require("cjson") in my Lua files and it will succeeded, however, it fails with module 'cjson' not found.

Admittedly I don't know much about Lua - maybe I am missing something obvious here? Is there some path setup that I should add?

@wbthomason
Copy link
Owner

packer should be doing the path setup you need. If you open your packer_compiled, do you see some lines setting package.path and package.cpath?

@VVKot
Copy link
Author

VVKot commented Mar 14, 2021

Eh, I tried to bust everything completely again, and reinstalled it - works now. 🤷 Maybe because at first I tried to install, and only then found #180 (comment)? In any case, sorry for the noise.

@VVKot VVKot closed this as completed Mar 14, 2021
@wbthomason
Copy link
Owner

Ah, that's possible. I'm glad things are working now - feel free to reopen if they break again.

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

No branches or pull requests

2 participants