You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues of trouble.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.10.0-dev-3004+gb13e63db1-Homebrew
Operating system/version
macos 13.0
Describe the bug
Error executing vim.schedule lua callback: ...vim/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/util.lua:294: bad argument #1 to 'gmatch' (string expected, got nil)
stack traceback:
[C]: in function 'gmatch'
...vim/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/util.lua:294: in function 'get_lines'
...vim/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/util.lua:322: in function 'get_line'
...vim/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/util.lua:335: in function 'get_col'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:212: in function 'location'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:194: in function 'location_to_item'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:149: in function 'add'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:165: in function 'cb'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:100: in function 'handler'
...m/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/client.lua:693: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Steps To Reproduce
enable trouble v3 through Lazyvim { import = "lazyvim.plugins.extras.editor.trouble-v3" }
cd to an empty dir
nvim a.lua
run :enew
type a=1
run :setf lua
error msg show, and repeatly popup error after moving cursor
Expected Behavior
no error popup
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
"folke/trouble.nvim",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0-dev-3004+gb13e63db1-Homebrew
Operating system/version
macos 13.0
Describe the bug
Error executing vim.schedule lua callback: ...vim/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/util.lua:294: bad argument #1 to 'gmatch' (string expected, got nil)
stack traceback:
[C]: in function 'gmatch'
...vim/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/util.lua:294: in function 'get_lines'
...vim/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/util.lua:322: in function 'get_line'
...vim/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/util.lua:335: in function 'get_col'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:212: in function 'location'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:194: in function 'location_to_item'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:149: in function 'add'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:165: in function 'cb'
...share/nvim/lazy/trouble.nvim/lua/trouble/sources/lsp.lua:100: in function 'handler'
...m/HEAD-b13e63d/share/nvim/runtime/lua/vim/lsp/client.lua:693: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Steps To Reproduce
:enew
a=1
:setf lua
Expected Behavior
no error popup
Repro
The text was updated successfully, but these errors were encountered: