lewis6991 / fileline.nvim

Goto filenames with line info
MIT License
51 stars 3 forks source link

Error nvim/runtime/lua/editorconfig.lua:210: Invalid buffer id: 1 #3

Closed jetm closed 1 year ago

jetm commented 1 year ago

Thank you for writing this extension. I am getting the error below when a opening a file, like this: nvim file:3

Error detected while processing BufNewFile Autocommands for "*":                                                                                                                                              
Error executing lua callback: .../share/nvim/runtime/lua/editorconfig.lua:210: Invalid buffer id: 1                                                                                           
stack traceback:                                                                                                                                                                                              
        [C]: in function 'nvim_buf_get_name'                                                                                                                                                                  
        .../share/nvim/runtime/lua/editorconfig.lua:210: in function 'config'                                                                                                                 
        .../share/nvim/runtime/plugin/editorconfig.lua:11: in function <.../share/nvim/runtime/plugin/editorconfig.lua:4>

I can confirm this is not happening with an equivalent wsdjeg/vim-fetch extension.

❯ nvim --version               
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3
lewis6991 commented 1 year ago

This is an issue with editorconfig.

@gpanders

gpanders commented 1 year ago

Fixed in master and will be in the next backport release https://github.com/neovim/neovim/pull/23922

lewis6991 commented 1 year ago

Many thanks @gpanders!