sourcegraph / sg.nvim

Experimental Sourcegraph + Cody plugin for Neovim
Apache License 2.0
722 stars 50 forks source link

Enterprise - Cody Not Working #258

Open RobertBattaglia opened 3 months ago

RobertBattaglia commented 3 months ago

Hello, My org recently announced that Enterprise Model Selection is now available on our production instance.

Around the same time, Cody stopped working completely for me in Neovim. The version of this plugin did not change in the meantime, and I created a new Personal Access Token just in case.

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

sg.nvim report ~

Cody does appear to be working in other IDE Cody plugins, tested with IntelliJ. I can see all the models available: Screenshot 2024-08-22 at 5 11 28 PM.

In Neovim, I cannot see all these models: Screenshot 2024-08-22 at 5 17 04 PM

I also tried to set the model in the config.chat.defaultModel to match something I saw in the dropdown in IntelliJ.

Looks like error is somewhere in the Cody Agent from lsp.log [ERROR][2024-08-22 17:17:38] .../vim/lsp/rpc.lua:770 "rpc" "/Users/robbattaglia/.local/share/nvim/lazy/sg.nvim/dist/sg-nvim-agent" "stderr" "[sg-nvim-agent] failed to read message data did not match any variant of untagged enum Message\n" [ERROR][2024-08-22 17:17:39] .../vim/lsp/rpc.lua:770 "rpc" "/Users/robbattaglia/.local/share/nvim/lazy/sg.nvim/dist/sg-nvim-agent" "stderr" 'Recieved a message: Request { id: 2, data: SourcegraphRemoteURL { path: "/Users/robbattaglia/dotfiles/nvim/.config/nvim/" } }\nDATA : SourcegraphRemoteURL { path: "/Users/robbattaglia/dotfiles/nvim/.config/nvim/" }\n' [ERROR][2024-08-22 17:17:43] .../vim/lsp/rpc.lua:770 "rpc" "node" "stderr" '{"stack":"Error: Timeout\n at Timeout._onTimeout (/Users/robbattaglia/.local/share/nvim/lazy/sg.nvim/dist/cody-agent.js:277769:20)\n at listOnTimeout (node:internal/timers:569:17)\n at process.processTimers (node:internal/timers:512:7)","message":"Timeout","name":"Error"}\n' [WARN][2024-08-22 17:17:45] ...lsp/handlers.lua:135 "The language server copilot triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless" [ERROR][2024-08-22 17:18:05] .../vim/lsp/rpc.lua:770 "rpc" "node" "stderr" '{"stack":"Error: Timeout\n at Timeout._onTimeout (/Users/robbattaglia/.local/share/nvim/lazy/sg.nvim/dist/cody-agent.js:277769:20)\n at listOnTimeout (node:internal/timers:569:17)\n at process.processTimers (node:internal/timers:512:7)","message":"Timeout","name":"Error"}\n' [ERROR][2024-08-22 17:18:15] .../vim/lsp/rpc.lua:770 "rpc" "node" "stderr" '{"stack":"Error: Timeout\n at Timeout._onTimeout (/Users/robbattaglia/.local/share/nvim/lazy/sg.nvim/dist/cody-agent.js:277769:20)\n at listOnTimeout (node:internal/timers:569:17)\n at process.processTimers (node:internal/timers:512:7)","message":"Timeout","name":"Error"}\n' [ERROR][2024-08-22 17:18:19] .../vim/lsp/rpc.lua:770 "rpc" "node" "stderr" '{"stack":"Error: Timeout\n at Timeout._onTimeout (/Users/robbattaglia/.local/share/nvim/lazy/sg.nvim/dist/cody-agent.js:277769:20)\n at listOnTimeout (node:internal/timers:569:17)\n at process.processTimers (node:internal/timers:512:7)","message":"Timeout","name":"Error"}\n' [ERROR][2024-08-22 17:19:05] .../vim/lsp/rpc.lua:770 "rpc" "node" "stderr" '{"stack":"Error: Timeout\n at Timeout._onTimeout (/Users/robbattaglia/.local/share/nvim/lazy/sg.nvim/dist/cody-agent.js:277769:20)\n at listOnTimeout (node:internal/timers:569:17)\n at process.processTimers (node:internal/timers:512:7)","message":"Timeout","name":"Error"}\n' [ERROR][2024-08-22 17:19:19] .../vim/lsp/rpc.lua:770 "rpc" "node" "stderr" '{"stack":"Error: Timeout\n at Timeout._onTimeout (/Users/robbattaglia/.local/share/nvim/lazy/sg.nvim/dist/cody-agent.js:277769:20)\n at listOnTimeout (node:internal/timers:569:17)\n at process.processTimers (node:internal/timers:512:7)","message":"Timeout","name":"Error"}\n'

julienTraversier commented 1 month ago

Same here it used to work, but not anymore.

guillemaru commented 1 month ago

Same here, it stopped working in the last days, with an enterprise account...