Comments (18)
@boydkelly what system are you on?
I am having trouble reproducing this on Arch in any of the mentioned paths, but on the macOS ~/.local/share/nvim/rocks/share/lua/5.1/rocks
is fail.
Also I cant reproduce the error in my plugins folder on any of the systems -> ~/.config/nvim/lua/plugins/
from rocks.nvim.
π€ I suppose it could be a bug in the luarocks loader?
Does it happen if you set enable_luarocks_loader = false
in your vim.g.rocks_nvim
config?
from rocks.nvim.
Can you reproduce?
I added:
-- Lua Rocks --
local rocks_config = {
rocks_path = vim.env.HOME .. "/.local/share/nvim/rocks",
luarocks_binary = vim.env.HOME .. "/.local/share/nvim/rocks/bin/luarocks",
enable_luarocks_loader = false
}
vim.g.rocks_nvim = rocks_config
and did the same cd
and nvim
as mentioned before. Same error
from rocks.nvim.
A bug in rocks-git
maybe?
from rocks.nvim.
Can you reproduce?
No, because I have rocks.nvim installed with nix.
@vhyrro are you able to reproduce this?
from rocks.nvim.
I also was just migrating my config files (from lazy) and had a lot of issues with this the last few days. My setup files are in the plugin directory. I finally figured out that if that is my cwd then I get the above errors for a good portion (but not all) of my setup files. I haven`t investigated that further as my workaround was just to back out of the plugin before editing any files there. Not sure what other info I might be able to provide.... (I am super happy with nvim-rocks!!!) Thanks!!
sample errors if cwd is nvim-rocks/plugin(otherwise no errors):
Error detected while processing /var/home/bkelly/.config/nvim-rocks/plugin/conform.lua:
E5113: Error while calling lua chunk: ./conform.lua:43: loop or previous error loading module 'conform'
stack traceback:
[C]: in function 'require'
./conform.lua:43: in main chunk
[C]: in function 'require'
/var/home/bkelly/.config/nvim-rocks/plugin/conform.lua:43: in main chunk
Error detected while processing /var/home/bkelly/.config/nvim-rocks/plugin/dressing.lua:
E5113: Error while calling lua chunk: ./dressing.lua:36: loop or previous error loading module 'dressing'
stack traceback:
[C]: in function 'require'
./dressing.lua:36: in main chunk
[C]: in function 'require'
/var/home/bkelly/.config/nvim-rocks/plugin/dressing.lua:36: in main chunk
Error detected while processing /var/home/bkelly/.config/nvim-rocks/plugin/fidget.lua:
E5113: Error while calling lua chunk: ./fidget.lua:1: loop or previous error loading module 'fidget'
stack traceback:
[C]: in function 'require'
./fidget.lua:1: in main chunk
[C]: in function 'require'
/var/home/bkelly/.config/nvim-rocks/plugin/fidget.lua:1: in main chunk
Error detected while processing /var/home/bkelly/.config/nvim-rocks/plugin/fzf-lua.lua:
E5113: Error while calling lua chunk: ./fzf-lua.lua:1: loop or previous error loading module 'fzf-lua'
stack traceback:
[C]: in function 'require'
./fzf-lua.lua:1: in main chunk
[C]: in function 'require'
/var/home/bkelly/.config/nvim-rocks/plugin/fzf-lua.lua:1: in main chunk
from rocks.nvim.
@boydkelly thanks for the input and nice words.
I just set up a minimal plain (non-nix) rocks.nvim installation (with NVIM_APPNAME
set to rocksvim
, no plugins installed),
and tried the following:
cd ~/.config/rocksvim
mkdir plugin
cd plugin
nvim dressing.lua
and did not encounter any errors.
Do you have a link to your rocks.toml so that I can try and bisect it?
from rocks.nvim.
@boydkelly what system are you on? I am having trouble reproducing this on Arch in any of the mentioned paths, but on the macOS
~/.local/share/nvim/rocks/share/lua/5.1/rocks
is fail. Also I cant reproduce the error in my plugins folder on any of the systems ->~/.config/nvim/lua/plugins/
Ooh, could it be a path with spaces in it or something? π€
from rocks.nvim.
@mrcjkb So strange! I am in a Fedora 40 container. I did have luarocks installed in the container and removed that but still the same issue. Here is the complete repo. (Its working mostly, although a work in progress moving from lazy)
https://gitlab.com/boydkelly/nvim-rocks.git
I am also using NVIM_APPNAME=nvim-rocks, and was wondering if that somehow might be a problem? I will try to move it all to ./config/nvim and see if that makes any difference. For now I just have to not edit any of the files in plugin.
My config does seem to be mostly working otherwise. Couple of issues that I will report later if I don't solve.
Just an fyi, I don't have to edit a file in plugin. If plugin is my cwd, then just running nvim-rocks will output an ton of those errors, but if i start nvim-rocks anywhere else it works fine.
from rocks.nvim.
Thanks. I'll see if I can reproduce it with your config later π
from rocks.nvim.
Running into a similar issue here on my Arch Linux install after the last Rocks update
. I can edit files just fine from anywhere but my plugin config folder, which in my case is ~/.config/nvim/lua/rocks-plugs
Errors:
Error detected while processing /home/kf/.local/share/nvim/rocks/lib/luarocks/rocks-5.1/luasnip/2.3.0-1/plugin/luasnip.lua:
E5113: Error while calling lua chunk: ....local/share/nvim/rocks/share/lua/5.1/luasnip/config.lua:100: attempt to index a boolean value
stack traceback:
....local/share/nvim/rocks/share/lua/5.1/luasnip/config.lua:100: in function '_setup'
...ib/luarocks/rocks-5.1/luasnip/2.3.0-1/plugin/luasnip.lua:79: in main chunk
and
Vim:E5113: Error while calling lua chunk: ....local/share/nvim/rocks/share/lua/5.1/luasnip/config.lua:100: attempt to index a boolean value
stack traceback:
^I....local/share/nvim/rocks/share/lua/5.1/luasnip/config.lua:100: in function '_setup'
^I...ib/luarocks/rocks-5.1/luasnip/2.3.0-1/plugin/luasnip.lua:79: in main chunk
^I[C]: at 0x61d5a6b8f110
^I[C]: in function 'pcall'
^I.../.local/share/nvim/rocks/share/lua/5.1/rocks/runtime.lua:35: in function 'packadd'
^I.../.local/share/nvim/rocks/share/lua/5.1/rocks/runtime.lua:61: in function 'source_start_plugins'
^I.../luarocks/rocks-5.1/rocks.nvim/2.27.1-1/plugin/rocks.lua:59: in main chunk
My dotfiles are here, hopefully they can help you replicate.
from rocks.nvim.
@boydkelly I just installed all of your plugins with NVIM_APPNAME = nvim-rocks
.
- I got a stack overflow error when starting (no matter what the
cwd
). This was caused by hotpot.nvim, so I removed it.
If you are facing the same error, you could probably work around it by settingvim.g.rocks_nvim.enable_luarocks_loader
to false. This is either a bug in the hotpot.nvim loader or in the luarocks loader. - I was not able to reproduce the behaviour π
@kflak the symptom seems related, but the error message looks different. It seems to be something thrown by luasnip. What makes it even stranger is that there's nothing but a parenthesis at the specified location (config.lua, line 100) at the v2.3.0 tag.
There's a call to require("luasnip")
at line 99. Maybe there's something funky going on with the luarocks loader and that is returning a boolean instead of a module?
But others have not been able to work around the issue by setting the enable_luarocks_loader
config to false
.
from rocks.nvim.
@kflak I just tried with you config too, and couldn't reproduce it either.
Maybe somehow your installations (rocks or plugins) got corrupted? You could try cleaning and reinstalling rocks.nvim and/or the affected plugins.
from rocks.nvim.
@kflak I just tried with you config too, and couldn't reproduce it either. Maybe somehow your installations (rocks or plugins) got corrupted? You could try cleaning and reinstalling rocks.nvim and/or the affected plugins.
OK, I've managed to narrow it down to luasnip
. The error doesn't happen when I install it with rocks-git
, so there's something smelly with the rocks package, I suppose...
from rocks.nvim.
@kflak I just tried with you config too, and couldn't reproduce it either. Maybe somehow your installations (rocks or plugins) got corrupted? You could try cleaning and reinstalling rocks.nvim and/or the affected plugins.
OK, I've managed to narrow it down to
luasnip
. The error doesn't happen when I install it withrocks-git
, so there's something smelly with the rocks package, I suppose...
Maybe the bug was fixed but not released yet?
from rocks.nvim.
@kflak I just tried with you config too, and couldn't reproduce it either. Maybe somehow your installations (rocks or plugins) got corrupted? You could try cleaning and reinstalling rocks.nvim and/or the affected plugins.
OK, I've managed to narrow it down to
luasnip
. The error doesn't happen when I install it withrocks-git
, so there's something smelly with the rocks package, I suppose...Maybe the bug was fixed but not released yet?
Kind of doubt it, there hasn't been a commit there since 14 April, and I didn't have this problem before now...
from rocks.nvim.
Kind of doubt it, there hasn't been a commit there since 14 April, and I didn't have this problem before now...
I'm seeing commits on April 16, 21 and 30.
from rocks.nvim.
Just an update here. I made a basic install with only:
[rocks]
# List of Neovim plugins to install alongside their versions.
# If the plugin name contains a dot then you must add quotes to the key name!
[plugins]
"rocks.nvim" = "2.29.0"
"rocks-git.nvim" = "1.5.1"
"rocks-treesitter.nvim" = "scm"
tree-sitter-vimdoc = "scm"
tree-sitter-lua = "scm"
"oil.nvim" = "2.9.0"
https://gitlab.com/boydkelly/nvim-nb.git
I still get the following error starting neovim if my cwd is plugin:
Error detected while processing /var/home/bkelly/.config/nvim-nb/plugin/oil.lua:
E5113: Error while calling lua chunk: ./oil.lua:1: loop or previous error loading module 'oil'
stack traceback:
[C]: in function 'require'
./oil.lua:1: in main chunk
[C]: in function 'require'
/var/home/bkelly/.config/nvim-nb/plugin/oil.lua:1: in main chunk
I get this same error in both an Arch and Fedora container, as well as on a Fedora workstation. Albeit both the Arch and Fedora containers are toolboxes and share the same bash profile etc. However I don't see anything in PATH or environment that could affect this. The Fedora container contains a bunch of development stuff, but the Arch install is only the base container image + neovim.
from rocks.nvim.
Related Issues (20)
- [Enhancement] pin luarocks version / manage luarocks installation
- vim.tbl_islist is deprecated HOT 6
- [Module]: `rocks-format.nvim` HOT 1
- doesn't work on systems without libgcc_s.so.1 HOT 8
- [BUG] Breaking change in luarocks cmdline interface HOT 2
- [Bug] "Failed to remove symlink" error log
- self install Rocks script failing HOT 7
- How to list all loaded plugins?
- Feline dependencie failure to install HOT 1
- Investigate `Rocks update` potentially not updating `scm`/`dev` plugins HOT 1
- Canβt install/build tree-sitter parsers HOT 1
- duplicated tree-sitter parsers in runtimepath HOT 13
- [External module] Support installing from local rockspec
- Install script: wrap `vim.system` calls to output nicer error messages if binary can't be found HOT 1
- [Feature] plugins installed with rocks-git, rocks-dev, ... should be recognized as dependencies
- E5113 error during install
- [QOL] Installer/Bootstrap scripts: Better error messages
- Fail to update / sync HOT 2
- [macos] bundled luarocks install doesn't pick up `LUA_PATH` HOT 2
- [Bug] Bundled luarocks fails with "luarocks.core.cfg not found" if temporary bootstrap luarocks install is removed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocks.nvim.