Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcegraph commands are missing after exit #230

Open
hamidreza4dev opened this issue Apr 4, 2024 · 3 comments
Open

Sourcegraph commands are missing after exit #230

hamidreza4dev opened this issue Apr 4, 2024 · 3 comments

Comments

@hamidreza4dev
Copy link

sg-nvim.mp4

:checkhealth sg before exit:

==============================================================================
sg: require("sg.health").check()

sg.nvim report ~
- Machine: arm64, sysname: Darwin
- OK Valid nvim version: table: 0x010539ff18
- WARNING Unable to find valid cargo executable. Trying to build sg.nvim locally will fail. Instead use `:SourcegraphDownloadBinaries`
- OK Found `sg-nvim-agent`: "/Users/hamidreza4dev/.local/share/nvim/lazy/sg.nvim/dist/sg-nvim-agent"
- OK Found `node` (config.node_executable) is executable.
  Version: '20.11.0'
- OK Found `cody-agent`: /Users/hamidreza4dev/.local/share/nvim/lazy/sg.nvim/dist/cody-agent.js
- OK   Authentication setup correctly
- OK     endpoint set to: https://sourcegraph.com
- OK Found correct binary versions: "1.1.0" = "1.1.0"
- OK   Sourcegraph Connection info: {
  access_token_set = true,
  endpoint = "https://sourcegraph.com",
  sg_nvim_version = "1.1.0",
  sourcegraph_version = {
  build = "267416_2024-04-03_5.3-363bc9682621",
  product = "267416_2024-04-03_5.3-363bc9682621"
  }
  }
- To manage your Cody Account, navigate to: https://sourcegraph.com/cody/manage
- OK Cody Account Information: {
  chat_limit = 0,
  chat_usage = 64,
  code_limit = 0,
  code_usage = 5105,
  cody_pro_enabled = true,
  username = "hamidreza4dev"
  }
- OK sg.nvim is ready to run

:checkhealth sg after exiting neovim:

sg: 

- ERROR No healthcheck found for "sg" plugin.

after exiting neovim I cant access to sourcegraph commands like SourcegraphLogin or SourcegraphDownloadBinaries

@hamidreza4dev
Copy link
Author

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: ''"
}

@tjdevries
Copy link
Collaborator

Can you try again with nvim 0.10 and latest plugin? I have pushed some updates that should help with this situation

@hamidreza4dev
Copy link
Author

Previously, I used NvChad for my configuration, but the problem disappeared after I switched from it. I also tested my previous configuration, and the problem persisted. However, you can review my configuration here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants