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

Unable to Start Cody #234

Open
ChristinWhite opened this issue Apr 17, 2024 · 1 comment
Open

Unable to Start Cody #234

ChristinWhite opened this issue Apr 17, 2024 · 1 comment

Comments

@ChristinWhite
Copy link

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
Copy link
Author

ChristinWhite commented Apr 17, 2024

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

@mmanela mmanela added the Migrated label May 6, 2024 — with Linear
@ChristinWhite ChristinWhite changed the title Not started Unable to Start Cody May 7, 2024
@eseliger eseliger removed the Migrated label May 21, 2024
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

4 participants