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

cody runs for about a minute then hangs for 10 seconds and no longer works #40

Open
ntriisii opened this issue Sep 15, 2024 · 0 comments

Comments

@ntriisii
Copy link

whenever I run cody in any buffer I get it working for about a minute and it provides completions no problem, then after about a minute emacs hangs (most likely waiting for something as neither emacs nor cody processes are consuming CPU when I checked), then the server stops completion, I have to logout and then login again to make it work and again for about a minute and then the same thing happens.

I have this output in the * cody-$DIR output * buffer:

{"stack":"Error: Timeout\n    at Timeout._onTimeout (/mnt/rese-home/rese/.emacs.d/emacs-cody/dist/index.js:300564:20)\n    at listOnTimeout (node:internal/timers:573:17)\n    at process.processTimers (node:internal/timers:514:7)","message":"Timeout","name":"Error"}
Content-Length: 47

{"jsonrpc":"2.0","id":74,"result":{"items":[]}}Content-Length: 156

{"jsonrpc":"2.0","method":"debug/message","params":{"channel":"Cody by Sourcegraph","message":"█ telemetry-v2: recordEvent: cody.completion/noResponse "}}Content-Length: 47

{"jsonrpc":"2.0","id":75,"result":{"items":[]}}Content-Length: 156

{"jsonrpc":"2.0","method":"debug/message","params":{"channel":"Cody by Sourcegraph","message":"█ telemetry-v2: recordEvent: cody.completion/noResponse "}}Content-Length: 47

{"jsonrpc":"2.0","id":76,"result":{"items":[]}}Content-Length: 51

{"jsonrpc":"2.0","id":77,"result":{"success":true}}{"stack":"Error: Timeout\n    at Timeout._onTimeout (/mnt/rese-home/rese/.emacs.d/emacs-cody/dist/index.js:300564:20)\n    at listOnTimeout (node:internal/timers:573:17)\n    at process.processTimers (node:internal/timers:514:7)","message":"Timeout","name":"Error"}
Content-Length: 151

{"jsonrpc":"2.0","method":"debug/message","params":{"channel":"Cody by Sourcegraph","message":"█ UpstreamHealth: Ping took 379ms (Gateway: 505ms) "}}{"stack":"Error: Timeout\n    at Timeout._onTimeout (/mnt/rese-home/rese/.emacs.d/emacs-cody/dist/index.js:300564:20)\n    at listOnTimeout (node:internal/timers:573:17)\n    at process.processTimers (node:internal/timers:514:7)","message":"Timeout","name":"Error"}
Content-Length: 151

{"jsonrpc":"2.0","method":"debug/message","params":{"channel":"Cody by Sourcegraph","message":"█ UpstreamHealth: Ping took 518ms (Gateway: 583ms) "}}{"stack":"Error: Timeout\n    at Timeout._onTimeout (/mnt/rese-home/rese/.emacs.d/emacs-cody/dist/index.js:300564:20)\n    at listOnTimeout (node:internal/timers:573:17)\n    at process.processTimers (node:internal/timers:514:7)","message":"Timeout","name":"Error"}

I tested it with node 16.4, 20.4, 21.7 and it does the same thing across the three of them.
I have emacs 29.4.50 with jsonrpc version 1.0.25 and running on ubuntu 18.04

@ntriisii ntriisii changed the title cody runs for about a minute then hangs on timeout and no longer works cody runs for about a minute then hangs for 10 seconds and no longer works Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant