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

OS Detection #25

Open AlexvZyl opened 1 year ago

AlexvZyl commented 1 year ago

I get this error when trying to setup this plugin on Arch.

image

Please let me know if you require further details.

lucasdf commented 1 year ago

I also use Arch and don't have this issue. What is the output of running uname in the terminal?

AlexvZyl commented 1 year ago

Apologies for only responding now. I still get this error. uname -a gives:

Linux archlinux 5.15.85-1-lts #1 SMP Thu, 22 Dec 2022 06:22:00 +0000 x86_64 GNU/Linux
RAprogramm commented 1 year ago

same on ubuntu 22.04.1 lts

ray-x commented 1 year ago

Same issue. Archlinux TIOCGWINSZ = 0x5413 ioctl returns -1

0xAdk commented 1 year ago

ioctl errno is 25 (ENOTTY) and checking ffi.C.isatty(1) returns 0. Doing a git bisect leads to https://github.com/neovim/neovim/commit/24488169564c39a506c235bf6a33b8e23a8cb528.

airpods69 commented 1 year ago

Could it be cause of nightly version of neovim?

Also putting in the code here so that if someone searches for the error, it shows up on the search engine

Logs:


E5113: Error while calling lua chunk: ...e/pack/packer/start/hologram.nvim/lua/hologram/state.lua:38: Hologram failed to get screen size: detected
OS is not supported.
stack traceback:
        [C]: in function 'assert'
        ...e/pack/packer/start/hologram.nvim/lua/hologram/state.lua:38: in function 'update_cell_size'
        ...te/pack/packer/start/hologram.nvim/lua/hologram/init.lua:12: in function 'setup'
       ~/.config/nvim/after/plugin/pets.lua:1: in main chunk```
airpods69 commented 1 year ago

Solution: (That worked for me) Yep Seems like it was a neovim version fault

I switched from nightly version to nvim v0.8.3 and everything seems to be working