Open hamidreza4dev opened 4 months ago
Logs:
[ERROR Thu Apr 4 12:57:02 2024] /Users/hamidreza4dev/.local/share/nvim/lazy/sg.nvim/lua/sg/vendored/vim-lsp-rpc.lua:211: client_error: INVALID_SERVER_MESSAGE {
code = 1,
message = "Failed to discover repo: Failed to access a directory, or path is not a directory: ''"
}
Can you try again with nvim 0.10 and latest plugin? I have pushed some updates that should help with this situation
I'm having the same problem too.. I'm using LazyVim
For me I have to call :CodyChat
or any Cody command so that sg.nvim
will be enabled and after that I can already use it again but when I exit neovim I have to do it again. I thought it was just me.
I've had the same problem and just resolved it by deactivating lazy loading for the sg.nvim plugin.
{
"sourcegraph/sg.nvim",
lazy = false,
dependencies = "nvim-lua/plenary.nvim",
config = function()
require("sg").setup()
end,
},
So the issue was that sg.nvim
just wouldn't load at startup. I have no idea whether there are any triggers that would load the plugin at runtime though.
https://github.com/sourcegraph/sg.nvim/assets/69403093/a2dbc47d-fefd-4f11-bfe5-df8e5c668b9f
:checkhealth sg
before exit::checkhealth sg
after exiting neovim:after exiting neovim I cant access to sourcegraph commands like
SourcegraphLogin
orSourcegraphDownloadBinaries