-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rocks update result in ENONET error after removing rocks-git plugin #37
Comments
Hey 👋 Thanks for reporting. I'll try to reproduce later today. |
Also, This looks suspicious in your config: local rocks_config = {
rocks_path = vim.fs.normalize(install_location),
luarocks_binary = vim.fs.joinpath(install_location, "bin", "luarocks"),
} That comes from a bug in the readme's old bootstrap snippet. So that it's local rocks_config = {
rocks_path = vim.fs.normalize(install_location),
} |
Another issue that may be related and could possibly provide more context : after following these steps after reinstallation that I mentioned above,
I also cannot re-install the plugin that I commented out. When I uncomment it and run |
I haven't been able to reproduce the behaviour you're describing. Could you please update to the latest versions and then see if the issue still persists? You should be able to update them individually with |
I've been running the latest versions, but I just haven't pushed my updated config to github yet. Nevertheless, I tried running |
If you push your updated config to another branch and link it for me, I can try and reproduce again 😄 |
So I was probing the source code of rocks.nvim and rocks-git.nvim to see if I could get more information and I found out why rocks-git wasn't installing plugins. I fixed the issue in this PR. Interestingly, I currently can't reproduce the ENONET error when I I also mentioned in the PR that rocks-git seems to install plugins fine on the first run of |
Thanks for digging and for the fix 🙏
I think it could be if rocks-git isn't installed yet. To make sure sync works when you first run it (before extensions like rocks-git are installed), rocks.nvim collects all the rocks it couldn't handle itself, loads external handlers after installing them, and then retries to install the rocks it couldn't install previously. |
I see, thanks for the explanation. Since I can't reproduce the ENONET error, this issue could probably be closed but I'll leave that up to you. Thanks for all the help and the great package manager :) |
When I run
:Rocks update
, I get the following error:It worked when I ran it earlier today, but after attempting to lazy-load my plugins with
rocks-lazy.nvim
I noticed that converting myrocks-git
plugins to useopt = true
wasn't working; they were staying in~/.local/share/nvim/site/pack/rocks/start
. When I tried uninstalling the plugin and reinstalling, it wouldn't install. I tried reinstallingrocks.nvim
by deleting~/.local/share/nvim/rocks/
and~/.local/share/nvim/site/pack/
and re-triggering the bootstrap. However, after reinstallation, I still get the error shown in the image when I run:Rocks update
.Update: I figured that this only occurs after removing a
rocks-git
plugin. So after doing a fresh install ofrocks.nvim
, this is the sequence I followed:The text was updated successfully, but these errors were encountered: