sg.nvim icon indicating copy to clipboard operation
sg.nvim copied to clipboard

Not started

Open ChristinWhite opened this issue 1 year ago • 1 comments

I have a really stupid question, how do you start Cody? I don't see anything in the docs about it but I've got everything working and configured — I think — correctly.

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

sg.nvim report ~
- Machine: arm64, sysname: Darwin
- OK Valid nvim version: 0.10.0-dev+Homebrew
- OK Found `cargo` (cargo 1.77.1) is executable
-     Use `:SourcegraphDownloadBinaries` to avoid building locally.
- OK Found `sg-nvim-agent`: "/Users/cwhite/.local/share/nvim/lazy/sg.nvim/dist/sg-nvim-agent"
- OK Found `node` (config.node_executable) is executable.
      Version: '21.7.2'
- OK Found `cody-agent`: /Users/cwhite/.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 = "269208_2024-04-15_5.3-294d4b47f870",
      product = "269208_2024-04-15_5.3-294d4b47f870"
    }
  }
- To manage your Cody Account, navigate to: https://sourcegraph.com/cody/manage
- OK Cody Account Information: {
    chat_limit = 0,
    chat_usage = 18,
    code_limit = 0,
    code_usage = 25,
    cody_pro_enabled = true,
    username = "ChristinWhite-ekpom"
  }
- OK sg.nvim is ready to run

Plugin seems to be fine, auth appears to work, I can open the chat modal but it says: Status: Not started, even after I try :CodyRestart.

I don't see anything in the docs about how to start Cody, but maybe I've repeatedly missed something?

Environment

Pro user Install via Lazy, just"sourcegraph/sg.nvim", no version/branch/tag sg.nvim: 38.35ms Neovim: 0.10.0-dev-2859+g00e665188-Homebrew Apple macOS: Sonoma 14.4.1 Apple M1 Pro

ChristinWhite avatar Apr 17 '24 05:04 ChristinWhite

To add some additional information I meant to include last night, here's my sg.lua config:

local sg = {
	"sourcegraph/sg.nvim",
	dependencies = {
		"nvim-lua/plenary.nvim",
	},
	opts = {
		enable_cody = true,
		accept_tos = true,
		download_binaries = true,
	},
	config = function(opts)
		require("sg").setup(opts)
	end,
}

return sg

I've also tried excluding download_binaries = true and using :Sourcegraph Build which does run successfully.

Other things I've tried:

  • Reinstalling sg.nvim
  • Using :SourcegraphLogin instead of exporting SRC_ACCESS_TOKEN and SRC_ENDPOINT

ChristinWhite avatar Apr 17 '24 17:04 ChristinWhite

Rewrote my entire Neovim config and what was essentially the same sg spec worked this time, I don't have any clue what the source of the issue was but it seems to be resolved. More helpful errors would certainly have been appreciated but I'm glad I can use Cody again after switching from VS Code, even in this more limited form. Thanks!

ChristinWhite avatar Jun 19 '24 03:06 ChristinWhite