edluffy / hologram.nvim

👻 A cross platform terminal image viewer for Neovim. Extensible and fast, written in Lua and C. Works on macOS and Linux.
MIT License
1.28k stars 31 forks source link

Error on macos: attempt to call method 'get_write_queue_size' #4

Open AdamWagner opened 3 years ago

AdamWagner commented 3 years ago

I have image_magik installed. Running kitty +kitten icat ~/Desktop/ricing/test.png' from commandline correctly displays the test image.

Based on https://github.com/edluffy/hologram.nvim/issues/2 and https://github.com/yutkat/dotfiles/blob/master/.config/nvim/lua/rc/pluginlist.lua#L513, it seems that other users are having similar issues.

I do not always get the error below, but I have never observed an image being rendered in the neovim buffer as shown in your readme.

I'm very keen on such a plugin, and appreciate your efforts! I report only in hopes that it is helpful.

nvim command preceding error

lua require('hologram').add_image(0, '/Users/adamwagner/Desktop/ricing/test.png', 5, 5)

Hologram Error

Error executing luv callback:
...e/pack/packer/start/hologram.nvim/lua/hologram/image.lua:265: attempt to call method 'get_write_queue_size' (a nil value)

kitty version

kitty 0.20.3 created by Kovid Goyal

OS

ProductName:    Mac OS X
ProductVersion: 10.15.7
BuildVersion:   19H1030

nvim

NVIM v0.5.0-dev+1357-g192f89ea1
Build type: Debug
LuaJIT 2.1.0-beta3
Compilation: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=1 -I/Users/adamwagner/Programming/Tools/neovim/build/config -I/Users/adamwagner/Programming/Tools/neovim/src -I/Users/adamwagner/Programming/Tools/neovim/.deps/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include -I/usr/local/opt/gettext/include -I/Users/adamwagner/Programming/Tools/neovim/build/src/nvim/auto -I/Users/adamwagner/Programming/Tools/neovim/build/include