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

bug: bug: java.util.concurrent.ExecutionException: com.sourcegraph.cody.agent.CodyAgentException: Failed to start Cody #3051

Open
koteswararaoVasa opened this issue Jan 31, 2025 · 1 comment
Labels
bug Something isn't working repo/jetbrains

Comments

@koteswararaoVasa
Copy link

IDE Information

IntelliJ IDEA 2022.3.1 (Community Edition)
Build #IC-223.8214.52, built on December 20, 2022
Runtime version: 17.0.5+1-b653.23 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1998M
Cores: 12
Registry:
ide.browser.jcef.jsQueryPoolSize=200
ide.browser.jcef.contextMenu.devTools.enabled=true

Non-Bundled Plugins:
com.github.continuedev.continueintellijextension (0.0.83)
com.intellij.mermaid (0.0.22+IJ.223)
gherkin (223.7571.113)
co.tula.MermaidChart (1.1.8)
cucumber-java (223.7571.123)
com.sourcegraph.jetbrains (6.0.34)

Kotlin: 223-1.7.21-release-272-IJ8214.52

Bug Description

Unable to send any request in COdy plugin

Additional context

Stacktrace:

java.util.concurrent.ExecutionException: com.sourcegraph.cody.agent.CodyAgentException: Failed to start Cody
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at com.sourcegraph.cody.agent.CodyAgentService$Companion.withAgent$lambda$2(CodyAgentService.kt:266)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:246)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: com.sourcegraph.cody.agent.CodyAgentException: Failed to start Cody
Caused by: java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: chatID is undefined

Error: chatID is undefined
    at Agent.createChatPanel (C:\Users\kkvasa\AppData\Roaming\JetBrains\IdeaIC2022.3\plugins\Sourcegraph\agent\index.js:139386:17)
    at async C:\Users\kkvasa\AppData\Roaming\JetBrains\IdeaIC2022.3\plugins\Sourcegraph\agent\index.js:137987:44
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.getNow(CompletableFuture.java:2134)
	at com.sourcegraph.cody.chat.AgentChatSession.getConnectionId(AgentChatSession.kt:68)
	at com.sourcegraph.cody.chat.AgentChatSessionService.restoreAllSessions(AgentChatSessionService.kt:40)
	at com.sourcegraph.cody.agent.CodyAgentService$2.invoke(CodyAgentService.kt:135)
	at com.sourcegraph.cody.agent.CodyAgentService$2.invoke(CodyAgentService.kt:59)
	at com.sourcegraph.cody.agent.CodyAgentService.startAgent$lambda$6(CodyAgentService.kt:178)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:246)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: chatID is undefined

Error: chatID is undefined
    at Agent.createChatPanel (C:\Users\kkvasa\AppData\Roaming\JetBrains\IdeaIC2022.3\plugins\Sourcegraph\agent\index.js:139386:17)
    at async C:\Users\kkvasa\AppData\Roaming\JetBrains\IdeaIC2022.3\plugins\Sourcegraph\agent\index.js:137987:44
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:185)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:97)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:114)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	... 1 more

Additional info: Failed to start Cody

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working repo/jetbrains
Projects
None yet
Development

No branches or pull requests

2 participants