pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor
MIT License
2.24k stars 124 forks source link

[BUG]: Recieve blocking error with "attempt to call field 'nvim_win_text_height' (a nil value)" message when opening PR #569

Open Krr0ptioN opened 3 days ago

Krr0ptioN commented 3 days ago

Issue Description

Type: bug report

What happened

The below errors are shown as soon as the PR is open and blocks editing. By pressing enter key, errors are shown repeatedly.

Error:

E5108: Error executing lua ...l/share/nvim/lazy/octo.nvim/lua/octo/ui/statuscolumn.lua:37: attempt to call field 'nvim_win_text_height' (a nil value)
stack traceback:
        ...l/share/nvim/lazy/octo.nvim/lua/octo/ui/statuscolumn.lua:37: in function 'get_sign'
        ...l/share/nvim/lazy/octo.nvim/lua/octo/ui/statuscolumn.lua:67: in function <...l/share/nvim/lazy/octo.nvim/lua/octo/ui/statuscolumn.lua:62>
Press ENTER or type command to continue

Describe what you expected to happen

No blocking error

How to reproduce it (as minimally and precisely as possible)

  1. Open neovim (astronvim setup in my case) where the repo already has PR
  2. :Octo pr <pr-id>

Tell us your environment

Anything else we need to know?

I am using astronvim configuration setup provided in their community package which provides some default configuration and setup for plugins (including octo.nvim).

image