sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.74k stars 105 forks source link

attempt to call field 'nvim_get_hl' (a nil value) #337

Closed LamprosPitsillos closed 1 year ago

LamprosPitsillos commented 1 year ago

Error at startup ,

Failed to run `config` for diffview.nvim                                                                           
....local/share/nvim/lazy/diffview.nvim/lua/diffview/hl.lua:129: attempt to call field 'nvim_get_hl' (a nil value) 
# stacktrace:                                                                                                      
  - /diffview.nvim/lua/diffview/hl.lua:129 _in_ **get_hl**                                                         
  - /diffview.nvim/lua/diffview/hl.lua:166 _in_ **get_hl_attr**                                                    
  - /diffview.nvim/lua/diffview/hl.lua:185 _in_ **get_fg**                                                         
  - /diffview.nvim/lua/diffview/hl.lua:466 _in_ **update_diff_hl**                                                 
  - /diffview.nvim/lua/diffview/hl.lua:475 _in_ **setup**                                                          
  - /diffview.nvim/lua/diffview/init.lua:25 _in_ **init**                                                          
  - /diffview.nvim/lua/diffview/init.lua:260                                                                       
  - .config/nvim/lua/Plugin-manager.lua:13         

Nvim version:

  NVIM v0.9.0-dev-1131+g7100a8025
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info
sindrets commented 1 year ago

You have an outdated nightly build. Recompile from master.

LamprosPitsillos commented 1 year ago
NVIM v0.9.0-dev-1131+g7100a8025
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info

I have pull the latest changes , make clean , and re installed Still get the error. Do i need to do something else?

sindrets commented 1 year ago

NVIM v0.9.0-dev-1131+g7100a8025

You definitely did not update correctly. You're ~200 commits behind. The version string that would be produced by current master (as of the moment I'm typing this comment) would be:

NVIM v0.9.0-dev-1307+g75e1b1d5c9
LamprosPitsillos commented 1 year ago

You seem to be right ... strange Thanks for the tip!