-
Notifications
You must be signed in to change notification settings - Fork 63
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
Magick rock not found #77
Comments
I vaguely remember getting this error myself, but can't recreate it now. I do remember having issues with the latest nvim (but is just working for me now so don't know). The error in my case was related to nvim 9.2 moving to |
@bananaboy139 If that's installed, then it's probably a path issue in some way or another, how did you install ImageMagick? If you haven't already seen it, #18 is a similar issue but on MacOS, the steps that I took to figure out what was wrong are outlined in the comments though, and could be helpful |
I have the same issue under arch and neovim 0.10.0-dev-9afbfb4 (nightly). ImageMagick is installed via paru from the aur and is accesible ( |
Could you test on stable just so we can rule that out? I don't have the issue on nightly on macos though so I'm not hopeful |
You could edit this file https://github.com/benlubas/image.nvim/blob/1355ea1dbc059136c6d6bd3fbefb0838ebe4ec85/lua/image/magick.lua#L1 so that it prints the full error (I should submit a PR to make this the default tbh). The variable If that doesn't give you anything useful you can go into the luarock itself and poke around (this is what I did) and go add some print statements. I can provide more detail if needed. but try the other things first. There's also one thing that you can do to verify that it's a neovim path issue that's mentioned in the other issue. This comment. |
Ah, if the pcall fails here local has_magick, magick = pcall(require, "magick") |
Yup |
Okay, so the error (for me) occurs on line 55 of init.lua, not in magick.lua. When this error is tripped, here's the contents of
Interestingly if I'm inside of the From what I understand, this is looking in the listed locations for magick.lua, but a quick For me, running |
Ah, just tested this with neovim v0.9.4 and the error doesn't occur, so it seems to be some problem with image.nvim and neovim 0.10. |
I followed the steps from https://github.com/leafo/magick, and ran
Now, when I run the I'm running kitty without tmux, if that's the issue maybe. |
@HawkinsT it's ok that there's no Do you have this in your Neovim config? package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?/init.lua;"
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?.lua;" |
@3rd I do, yes. Edit - from my config: {
"3rd/image.nvim",
config = function()
require("image").setup()
-- note: I removed redundant ';' from the ends of each path
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?/init.lua"
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?.lua"
end,
}, Edit2: |
@bananaboy139 what version of kitty are you using? Apt has an old version of Kitty that has caused issues in the past. So installing the latest kitty version could fix it |
Thanks! I installed kitty through the curl command and it works now. |
@bananaboy139 awesome! could you close this issue now that everyone is resolved? |
I am using POP OS, kitty, latest neovim nightly appimage
I installed magick with
luarocks --local --lua-version=5.1 install magick
, but when I try to runnvim --clean -c ":luafile minimal-setup.lua"
, I getI'm not sure why, I checked and magick is indeed in
~/.luarocks/share/lua/5.1
, maybe it's because the default installed lua is 5.3?The text was updated successfully, but these errors were encountered: