Exafunction / codeium.nvim

A native neovim extension for Codeium
MIT License
639 stars 50 forks source link

feat: add chat actions #180

Open aliaksandr-trush opened 2 months ago

aliaksandr-trush commented 2 months ago

Start adding chat actions functionality. Already able to send GenerateCode prompt, but unable to receive response yet (need to find how to receive chat response).

aliaksandr-trush commented 1 month ago

Receiving error on server logs: E0504 23:30:17.785258 1108311 wire_format.go:24] Error unmarshalling request: proto: cannot parse invalid wire-format data E0504 23:30:17.785309 1108311 web_server.go:166] ParseRequest error: proto: cannot parse invalid wire-format data

For request: {"get_chat_message_request": {"chat_messages": [{"in_progress": false, "source": "CHAT_MESSAGE_SOURCE_USER", "intent": {"explain_function": {"language": 20, "file_path": "/home/user/Projects/CodeiumJetBrains/src/main/kotlin/com/codeium/intellij/chat_server_client/ChatServerClient.kt", "function_info": {"definitionLine": 45, "cleanFunction": "fun getClientUrl(): String {\n return "http://127.0.0.1:${languageServerService.chatClientPort}\"\n}", "rawSource": "/** Get the full http:// URL for the chat client. /\nfun getClientUrl(): String {\n return "http://127.0.0.1:${languageServerService.chatClientPort}\"\n}", "language": "LANGUAGE_KOTLIN", "leadingWhitespace": " ", "startLine": 44, "params": "()", "startCol": 2, "docstring": "Get the full http:// URL for the chat client./", "nodeName": "getClientUrl", "endCol": 3, "endLine": 47}}}, "conversation_id": "l5xMoayMvmLRbB7yO6dSc4i6DeLt3EbS", "timestamp": {"nanos": 1.233246e10, "seconds": 1714858569}, "message_id": "user-12332463000"}], "metadata": {"extension_name": "neovim", "ide_name": "neovim", "request_id": 79, "api_key": "5cf09402-0460-47cc-a015-7d519fa37bb0", "extension_version": "1.8.25", "ide_version": "0.9.5"}}}

Could somebody help me find the reason of such errors?