jmbuhr / quarto-nvim-kickstarter

Neovim configuration to show my plugins in action.
MIT License
221 stars 52 forks source link

Error while processing ~/.config/nvim/init.lua magick rock not found #92

Closed danni-storm closed 6 months ago

danni-storm commented 7 months ago

I have been playing around with different configurations of neovim to get a better handle on how it works with Quarto. However, when I cloned the repo onto my Mac I got the following error when first opening the configured Neovim. Attempts to install a version which works with this configuration were met with no success, also detailed below. Install was just migrated from LazyVim w/ Quarto additions. Please let me know if I can provide any other details.

Neovim Error ``` Error detected while processing /Users/section_31/.config/nvim/init.lua: image.nvim: magick rock not found, please install it and restart your editor Press ENTER or type command to continue ```
Brew/luarocks Install Attempts ``` ombiningIdeas git:dev ❯ luarocks install magick --check-lua-versions ⏎ ✭ magick not found for Lua 5.4. Checking if available for other Lua versions... Checking for Lua 5.1... Checking for Lua 5.2... Checking for Lua 5.3... Error: No results matching query were found for Lua 5.4. magick supports only Lua 5.1 but not Lua 5.4. combiningIdeas git:dev ❯ luarocks install magick --lua-version=5.1 ⏎ ✭ Installing https://luarocks.org/magick-1.6.0-1.src.rock magick 1.6.0-1 depends on lua 5.1 (5.1-1 provided by VM) No existing manifest. Attempting to rebuild... magick 1.6.0-1 is now installed in /Users/section_31/.luarocks (license: MIT) combiningIdeas git:dev ❯ luarocks --version ✭ /opt/homebrew/bin/luarocks 3.9.2 LuaRocks main command-line interface combiningIdeas git:dev ❯ lua -v ⏎ ✭ Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio ```
Machine Details ``` OS: macOS 14.3.1 23D60 arm64 Host: Mac14,6 Kernel: 23.3.0 Uptime: 5 days, 4 hours, 1 min Packages: 306 (brew) Shell: zsh 5.9 Resolution: 1728x1117, 3440x1440 DE: Aqua WM: yabai Terminal: /dev/ttys000 CPU: Apple M2 Max GPU: Apple M2 Max Memory: 4319MiB / 32768MiB ```
Neovim Version ``` NVIM v0.9.5 Build type: Release LuaJIT 2.1.1703358377 system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim" ```
Neovim Checkhealth ``` ============================================================================== conform: require("conform.health").check() conform.nvim report ~ - Log file: /Users/section_31/.local/state/nvim/conform.log - OK black ready (python) - OK isort ready (python) - OK mystylua ready (lua) ============================================================================== diffview: require("diffview.health").check() Checking plugin dependencies ~ - OK nvim-web-devicons installed. Checking VCS tools ~ - The plugin requires at least one of the supported VCS tools to be valid. - OK Git found. - OK Git is up-to-date. (2.44.0) - WARNING Configured `hg_cmd` is not executable: 'hg' ============================================================================== img-clip: require("img-clip.health").check() img-clip.nvim ~ - OK `osascript` is installed - OK `pngpaste` is installed ============================================================================== kickstart: require("kickstart.health").check() kickstart.nvim ~ - NOTE: Not every warning is a 'must-fix' in `:checkhealth` Fix only warnings for plugins and languages you intend to use. Mason will give warnings for languages that are not installed. You do not need to install, unless you want to use those languages! - System Information: { machine = "arm64", release = "23.3.0", sysname = "Darwin", version = "Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020" } - OK Neovim version is: 'table: 0x0102ebff08' - OK Found executable: 'git' - OK Found executable: 'make' - OK Found executable: 'unzip' - OK Found executable: 'rg' - WARNING nvim < 0.10 - WARNING magick luarock is not available ============================================================================== lazy: require("lazy.health").check() lazy.nvim ~ - OK Git installed - OK no existing packages found by other package managers - OK packer_compiled.lua not found ============================================================================== mason: require("mason.health").check() mason.nvim ~ - OK mason.nvim version v1.10.0 - OK PATH: prepend - OK Providers: mason.providers.registry-api mason.providers.client - OK neovim version >= 0.7.0 mason.nvim [Registries] ~ - OK Registry `github.com/mason-org/mason-registry version: 2024-03-05-frosty-waste` is installed. mason.nvim [Core utils] ~ - OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send` - OK wget: `GNU Wget 1.21.4 built on darwin22.4.0.` - OK curl: `curl 8.4.0 (x86_64-apple-darwin23.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0` - OK gzip: `Apple gzip 428` - OK tar: `bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.0.5 bz2lib/1.0.8 ` - OK bash: `GNU bash, version 5.2.26(1)-release (aarch64-apple-darwin23.2.0)` - OK sh: `Ok` mason.nvim [Languages] ~ - OK Ruby: `ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]` - OK Go: `go version go1.22.0 darwin/arm64` - OK cargo: `cargo 1.76.0` - OK luarocks: `/opt/homebrew/bin/luarocks 3.9.2` - OK node: `v21.6.2` - WARNING javac: not available - ADVICE: - spawn: javac failed with exit code 1 and signal 0. The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java. - WARNING java: not available - ADVICE: - spawn: java failed with exit code 1 and signal 0. The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java. - OK PHP: `PHP 8.3.3 (cli) (built: Feb 13 2024 15:41:14) (NTS)` - OK npm: `10.2.4` - OK RubyGem: `3.0.3.1` - OK Composer: `Composer version 2.7.1 2024-02-09 15:26:28` - OK python: `Python 3.10.10` - OK julia: `julia version 1.10.2` - OK pip: `pip 24.0 from /Users/section_31/.pyenv/versions/3.10.10/lib/python3.10/site-packages/pip (python 3.10)` - OK python venv: `Ok` mason.nvim [GitHub] ~ - OK GitHub API rate limit. Used: 1. Remaining: 59. Limit: 60. Reset: Tue Mar 5 16:23:01 2024. Install and authenticate via gh-cli to increase rate limit. ============================================================================== nvim: require("nvim.health").check() Configuration ~ - OK no issues found Runtime ~ - OK $VIMRUNTIME: /opt/homebrew/Cellar/neovim/0.9.5/share/nvim/runtime Performance ~ - OK Build type: Release Remote Plugins ~ - OK Up to date terminal ~ - key_backspace (kbs) terminfo entry: `key_backspace=\177` - key_dc (kdch1) terminfo entry: `key_dc=\E[3~` - $COLORTERM="truecolor" ============================================================================== nvim-treesitter: require("nvim-treesitter.health").check() Installation ~ - OK `tree-sitter` found 0.21.0 (parser generator, only needed for :TSInstallFromGrammar) - OK `node` found v21.6.2 (only needed for :TSInstallFromGrammar) - OK `git` executable found. - OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: Apple clang version 15.0.0 (clang-1500.1.0.2.5) - OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI. OS Info: { machine = "arm64", release = "23.3.0", sysname = "Darwin", version = "Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020" } ~ Parser/Features H L F I J - bash ✓ ✓ ✓ . ✓ - c ✓ ✓ ✓ ✓ ✓ - css ✓ . ✓ ✓ ✓ - diff ✓ . . . . - dot ✓ . . . ✓ - html ✓ ✓ ✓ ✓ ✓ - javascript ✓ ✓ ✓ ✓ ✓ - jsdoc ✓ . . . . - json ✓ ✓ ✓ ✓ . - jsonc ✓ ✓ ✓ ✓ ✓ - julia ✓ ✓ ✓ ✓ ✓ - latex ✓ . ✓ . ✓ - lua ✓ ✓ ✓ ✓ ✓ - luadoc ✓ . . . . - luap ✓ . . . . - markdown ✓ . ✓ ✓ ✓ - markdown_inline ✓ . . . ✓ - mermaid ✓ . . . . - norg . . . . ✓ - python ✓ ✓ ✓ ✓ ✓ - query ✓ ✓ ✓ ✓ ✓ - r ✓ ✓ . ✓ ✓ - regex ✓ . . . . - toml ✓ ✓ ✓ ✓ ✓ - tsx ✓ ✓ ✓ ✓ ✓ - typescript ✓ ✓ ✓ ✓ ✓ - vim ✓ ✓ ✓ . ✓ - vimdoc ✓ . . . ✓ - yaml ✓ ✓ ✓ ✓ ✓ Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} ~ ============================================================================== provider: health#provider#check Clipboard (optional) ~ - OK Clipboard tool found: pbcopy Python 3 provider (optional) ~ - pyenv: Path: /opt/homebrew/Cellar/pyenv/2.3.36/libexec/pyenv - pyenv: Root: /Users/section_31/.pyenv - `g:python3_host_prog` is not set. Searching for python3.11 in the environment. - WARNING pyenv is not set up optimally. - ADVICE: - Create a virtualenv specifically for Nvim using pyenv, and set `g:python3_host_prog`. This will avoid the need to install the pynvim module in each version/virtualenv. - Executable: /opt/homebrew/bin/python3.11 - Python version: 3.11.8 - pynvim version: 0.4.3 (outdated; from /opt/homebrew/lib/python3.11/site-packages/neovim) - WARNING Latest pynvim is NOT installed: 0.5.0 Python virtualenv ~ - OK no $VIRTUAL_ENV Ruby provider (optional) ~ - Ruby: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23] - WARNING `neovim-ruby-host` not found. - ADVICE: - Run `gem install neovim` to ensure the neovim RubyGem is installed. - Run `gem environment` to ensure the gem bin directory is in $PATH. - If you are using rvm/rbenv/chruby, try "rehashing". - See :help |g:ruby_host_prog| for non-standard gem installations. - You may disable this provider (and warning) by adding `let g:loaded_ruby_provider = 0` to your init.vim Node.js provider (optional) ~ - Node.js: v21.6.2 - Nvim node.js host: /opt/homebrew/lib/node_modules/neovim/bin/cli.js - OK Latest "neovim" npm/yarn/pnpm package is installed: 4.10.1 Perl provider (optional) ~ - WARNING "Neovim::Ext" cpan module is not installed - ADVICE: - See :help |provider-perl| for more information. - You may disable this provider (and warning) by adding `let g:loaded_perl_provider = 0` to your init.vim ============================================================================== telescope: require("telescope.health").check() Checking for required plugins ~ - OK plenary installed. - OK nvim-treesitter installed. Checking external dependencies ~ - OK rg: found ripgrep 14.1.0 - OK fd: found fd 9.0.0 ===== Installed extensions ===== ~ Telescope Extension: `dap` ~ - No healthcheck provided Telescope Extension: `ui-select` ~ - No healthcheck provided ============================================================================== vim.lsp: require("vim.lsp.health").check() - LSP log level : WARN - Log path: /Users/section_31/.local/state/nvim/lsp.log - Log size: 3016 KB vim.lsp: Active Clients ~ - copilot (id=1, root_dir=/Volumes/WorkFiles/infection-inequity-susceptibility/combiningIdeas) ============================================================================== vim.treesitter: require("vim.treesitter.health").check() - Nvim runtime ABI version: 14 - OK Parser: bash ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/bash.so - OK Parser: c ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/c.so - OK Parser: css ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/css.so - OK Parser: diff ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/diff.so - OK Parser: dot ABI: 13, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/dot.so - OK Parser: html ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/html.so - OK Parser: javascript ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/javascript.so - OK Parser: jsdoc ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/jsdoc.so - OK Parser: json ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/json.so - OK Parser: jsonc ABI: 13, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/jsonc.so - OK Parser: julia ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/julia.so - OK Parser: latex ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/latex.so - OK Parser: lua ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/lua.so - OK Parser: luadoc ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/luadoc.so - OK Parser: luap ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/luap.so - OK Parser: markdown ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/markdown.so - OK Parser: markdown_inline ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/markdown_inline.so - OK Parser: mermaid ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/mermaid.so - OK Parser: norg ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/norg.so - OK Parser: python ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/python.so - OK Parser: query ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/query.so - OK Parser: r ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/r.so - OK Parser: regex ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/regex.so - OK Parser: toml ABI: 13, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/toml.so - OK Parser: tsx ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/tsx.so - OK Parser: typescript ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/typescript.so - OK Parser: vim ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/vim.so - OK Parser: vimdoc ABI: 14, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/vimdoc.so - OK Parser: yaml ABI: 13, path: /Users/section_31/.local/share/nvim/lazy/nvim-treesitter/parser/yaml.so - OK Parser: c ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.5/lib/nvim/parser/c.so - OK Parser: lua ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.5/lib/nvim/parser/lua.so - OK Parser: query ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.5/lib/nvim/parser/query.so - OK Parser: vim ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.5/lib/nvim/parser/vim.so - OK Parser: vimdoc ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.5/lib/nvim/parser/vimdoc.so ============================================================================== which-key: require("which-key.health").check() WhichKey: checking conflicting keymaps ~ - WARNING conflicting keymap exists for mode **"n"**, lhs: **"yS"** - rhs: `(nvim-surround-normal-line)` - WARNING conflicting keymap exists for mode **"n"**, lhs: **"ys"** - rhs: `(nvim-surround-normal)` - WARNING conflicting keymap exists for mode **"n"**, lhs: **" gc"** - rhs: `:GitConflictRefresh` - WARNING conflicting keymap exists for mode **"n"**, lhs: **"gb"** - rhs: `(comment_toggle_blockwise)` - WARNING conflicting keymap exists for mode **"n"**, lhs: **"gc"** - rhs: `(comment_toggle_linewise)` ```
jmbuhr commented 7 months ago

See https://github.com/jmbuhr/quarto-nvim-kickstarter/blob/943dd5a2f88cc7babd5bf25879c08695a11905b9/lua/plugins/ui.lua#L247-L258

I need to document this better, or disable it by default (and still document it, maybe in the readme?).

danni-storm commented 7 months ago

Brilliant, thanks! I did search the code base but apparently didn't do a good job actually reading what came up. Sorry I am a dork. 🤦‍♀️

Considering the repo for the magick rocks was last updated in 2021 I believe, it might be a good idea to have it disabled by default but have documentation for people who want to enable it.

jmbuhr commented 7 months ago

There is a discussion in image.nvim on that topic and we are keeping an eye out, but it looks like the maintainer of the lua rock is still around (responded to a PR), there just hasn't been any need for changes lately.

jmbuhr commented 7 months ago

If you get around to installing the dependencies, I recommend giving image.nvim a shot. It blew my mind the first time I could see images directly in my quarto files in the terminal.

djheidihoe commented 6 months ago

same issue on Mac OS from my side.

Or is it a deprecated package??

Anyhow i would be glad to use some kitty power also in neovim.

jmbuhr commented 6 months ago

See comment above.