GithubHelp home page GithubHelp logo

codeium's Introduction

codeium

codeium's People

Contributors

pqn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeium's Issues

Add / Document functionality to move `~/.codeium` directory

Hey there, love the project!

I was wondering if there is / are plans to implement functionality to move the ~/.codeium directory using something like environment variables? Configuration related things typically go into the ~/.config / $XDG_CONFIG_DIR directory, as it helps encapsulate configuration related files together for storage / backup / source control.

Would be happy to implement myself, but wasn't sure if the functionality was something that happened across the different implementations of Codeium, or just in NeoVim.

[BUG] language server port file not found

I encountered with following problem when using codeium on VSCode and Ubuntu.

language server port file not found

And the log says,

E0416 17:15:54.294760 471330 database.go:137] Error creating table: file is not a database (1) attached stack trace -- stack trace:
 | github.com/Exafunction/Exafunction/exa/language_server/embedding_search.NewDatabase
 | exa/language_server/embedding_search/database.go:136
 | github.com/Exafunction/Exafunction/exa/language_server/embedding_search.SetUpIndexComponents
 | exa/language_server/embedding_search/search_provider.go:177
 | github.com/Exafunction/Exafunction/exa/language_server.initServers
 | exa/language_server/server.go:430
 | github.com/Exafunction/Exafunction/exa/language_server.CreateLanguageServerAndServe
 | exa/language_server/server.go:167
 | main.main
 | exa/cmd/language_server/main.go:544
 | runtime.main
 | GOROOT/src/runtime/proc.go:267
 | runtime.goexit
 | src/runtime/asm_amd64.s:1650 
Wraps: (2) file is not a database 
Error types: (1) *withstack.withStack (2) sqlite3.Error 
F0416 17:15:54.294868 471330 main.go:546] Language server failed - file is not a database 
(1) attached stack trace 
  -- stack trace:
 | github.com/Exafunction/Exafunction/exa/language_server/embedding_search.NewDatabase
 | exa/language_server/embedding_search/database.go:136
 | github.com/Exafunction/Exafunction/exa/language_server/embedding_search.SetUpIndexComponents
 | exa/language_server/embedding_search/search_provider.go:177
 | github.com/Exafunction/Exafunction/exa/language_server.initServers | exa/language_server/server.go:430
 | github.com/Exafunction/Exafunction/exa/language_server.CreateLanguageServerAndServe
 | exa/language_server/server.go:167
 | main.main
 | exa/cmd/language_server/main.go:544
 | runtime.main
 | GOROOT/src/runtime/proc.go:267
 | runtime.goexit
 | src/runtime/asm_amd64.s:1650 
Wraps: (2) file is not a database 
Error types: (1) *withstack.withStack (2) sqlite3.Error

I reinstall Codeium for times, restart VSCode for times. Above ERROR occured all the time.
After I manually deleted the whole folder ~/.codeium, I can then use the codeium again.

  • I don't know how this error happens. It came suddenly after I use codeium for days.
  • The codeium can't handle this error itself, manual delete is required. Maybe some code should be added to solve this?

Asks for login information for every session

I have been using Codeium on and off for an year now. The reason I don't use it more often is that it keeps forgetting my login info, everytime the IDE is restarted.

Is this intended behaviour?

I am currently using VSCode 1.88.0 but this issue has been present since a long time.

Language server binary not found: undefined

Hi, I use VS Code on MacOS and it looks like every time codeium gets an update it downloads the new language server, says it did not find it, and stops working, even though the files are here and everything works after one (sometimes several) restart of VS Code...

Here is an example after restarting VS Code a first time (it was first failing for Codeium 1.6.26, here for 1.6.27):

2024-01-29 17:54:18.110 [INFO]: mac-ca initialized
2024-01-29 17:54:19.526 [INFO]: No proxy settings found
2024-01-29 17:54:25.961 [INFO]: Creating manager directory: /var/folders/w2/5hzs1fm560dc7wlhs625z1nm0000gn/T/df017ddf-baba-4eb8-92d0-940f20d49ca4/codeium/manager
2024-01-29 17:54:25.973 [INFO]: 2e835f65b3441bf3f8f401a88a45920578df95d6 not found, downloading language server
2024-01-29 17:54:27.043 [INFO]: No proxy settings found
2024-01-29 17:54:46.229 [ERROR]: Failed to download from https://github.com/Exafunction/codeium/releases/download/language-server-v1.6.27/language_server_macos_x64.gz
2024-01-29 17:54:46.236 [ERROR]: Language server binary not found: undefined

When I hover over the (red) Codeium part of the bottom bar it shows an error message saying it could not rename/move the language_server_macos_x64.download file to language_server_macos_x64 but the file is here, in 2e835f65b3441bf3f8f401a88a45920578df95d6/language_server_macos_x64.

Again, it finally works if I restart again... But that is obviously a bug.

`musl` build

Please provide musl based build for Linux, or compile a fully static build.

codeium IntelliJ plugin memory leak

We received a few memeory reports showing that codeium intellij plugin is holding a strong reference to a disposed instance of PsiAwareTextEditorComponent. Unfortunately we can't say what plugin version was used, could you please take a look?

Root 1:
    84.4MB/1 objects          (root): java.lang.Class(com.intellij.openapi.progress.impl.ProgressSuspender)
    84.4MB/1 objects          (static): com.intellij.openapi.application.impl.ApplicationImpl
    76.6MB/1 objects          serviceInstanceHotCache: java.util.concurrent.ConcurrentHashMap
    76.6MB/1 objects          table: [Ljava.util.concurrent.ConcurrentHashMap$Node;
    28.5MB/1 objects          []: java.util.concurrent.ConcurrentHashMap$Node
    28.5MB/1 objects          val: codeium.h
    28.5MB/1 objects          d: java.util.LinkedHashMap
    28.5MB/1 objects          head: java.util.LinkedHashMap$Entry
    28.5MB/1 objects          key: com.intellij.openapi.editor.impl.EditorImpl
    27.2MB/1 objects          myPanel: javax.swing.JPanel
    27.2MB/1 objects          parent: com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorComponent(disposed)

Completion 28 error: deadline_exceeded

2023-12-16 11:12:02.804 [INFO]: Completion request was cancelled by token (69.09ms)
2023-12-16 11:12:07.961 [INFO]: [Language Server (stderr)]:
E1216 11:12:07.961099 3335 api_server_client.go:340] Completion 28 error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions": context deadline exceeded
2023-12-16 11:12:07.964 [ERROR]: [deadline_exceeded] Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions": context deadline exceeded
2023-12-16 11:12:07.964 [INFO]: Completion request errored (5083.42ms)
2023-12-16 11:12:07.964 [ERROR]: [deadline_exceeded] Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions": context deadline exceeded
2023-12-16 11:12:21.096 [INFO]: [Language Server (stderr)]:
E1216 11:12:21.095098 3335 api_server_client.go:1231] GetUserStatus error: deadline_exceeded: Post "https://server.codeium.com/exa.seat_management_pb.SeatManagementService/GetUserStatus": dial tcp 35.223.238.178:443: i/o timeout
2023-12-16 11:12:21.098 [ERROR]: [deadline_exceeded] Post "https://server.codeium.com/exa.seat_management_pb.SeatManagementService/GetUserStatus": dial tcp 35.223.238.178:443: i/o timeout
2023-12-16 11:12:21.526 [INFO]: [Language Server (stderr)]:
E1216 11:12:21.526296 3335 api_server_client.go:685] RecordEvent error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/RecordEvent": dial tcp 35.223.238.178:443: i/o timeout
2023-12-16 11:12:33.218 [INFO]: [Language Server (stderr)]:
E1216 11:12:33.216821 3335 api_server_client.go:597] GetEmbeddings error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetEmbeddings": dial tcp 35.223.238.178:443: i/o timeout
E1216 11:12:33.216821 3335 api_server_client.go:597] GetEmbeddings error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetEmbeddings": dial tcp 35.223.238.178:443: i/o timeout
E1216 11:12:33.216821 3335 api_server_client.go:597] GetEmbeddings error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetEmbeddings": dial tcp 35.223.238.178:443: i/o timeout
2023-12-16 11:12:50.849 [INFO]: [Language Server (stderr)]:
E1216 11:12:50.848850 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": dial tcp 35.223.238.178:443: i/o timeout (Client.Timeout exceeded while awaiting headers)

E1216 11:12:50.848925 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:13:50.851 [INFO]: [Language Server (stderr)]:
E1216 11:13:50.850352 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:13:50.850452 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:14:50.851 [INFO]: [Language Server (stderr)]:
E1216 11:14:50.850642 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:14:50.850729 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:15:50.855 [INFO]: [Language Server (stderr)]:
E1216 11:15:50.854510 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:15:50.855 [INFO]: [Language Server (stderr)]:
E1216 11:15:50.854724 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:16:50.856 [INFO]: [Language Server (stderr)]:
E1216 11:16:50.856253 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:16:50.856277 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": dial tcp 35.223.238.178:443: i/o timeout (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:17:21.401 [INFO]: [Language Server (stderr)]:
E1216 11:17:21.400713 3335 api_server_client.go:665] Error traces error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/RecordAsyncTelemetry": dial tcp 35.223.238.178:443: i/o timeout
2023-12-16 11:17:50.857 [INFO]: [Language Server (stderr)]:
E1216 11:17:50.856658 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:17:50.856735 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:18:08.787 [INFO]: [Language Server (stderr)]:
E1216 11:18:08.785056 3335 api_server_client.go:597] GetEmbeddings error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetEmbeddings": dial tcp 35.223.238.178:443: i/o timeout
E1216 11:18:08.785070 3335 api_server_client.go:597] GetEmbeddings error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetEmbeddings": dial tcp 35.223.238.178:443: i/o timeout
E1216 11:18:08.785123 3335 api_server_client.go:597] GetEmbeddings error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetEmbeddings": dial tcp 35.223.238.178:443: i/o timeout
2023-12-16 11:18:50.868 [INFO]: [Language Server (stderr)]:
E1216 11:18:50.868106 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:18:50.868129 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:19:50.880 [INFO]: [Language Server (stderr)]:
E1216 11:19:50.879590 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:19:50.879646 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:20:50.879 [INFO]: [Language Server (stderr)]:
E1216 11:20:50.879182 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:20:50.879228 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:21:50.886 [INFO]: [Language Server (stderr)]:
E1216 11:21:50.883695 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:21:50.883840 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:22:21.101 [INFO]: [Language Server (stderr)]:
E1216 11:22:21.100154 3335 api_server_client.go:665] Error traces error: deadline_exceeded: Post "https://server.codeium.com/exa.api_server_pb.ApiServerService/RecordAsyncTelemetry": dial tcp 35.223.238.178:443: i/o timeout
2023-12-16 11:22:50.885 [INFO]: [Language Server (stderr)]:
E1216 11:22:50.883149 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:22:50.883277 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:23:50.887 [INFO]: [Language Server (stderr)]:
E1216 11:23:50.886348 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:23:50.887 [INFO]: [Language Server (stderr)]:
E1216 11:23:50.886803 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2023-12-16 11:24:50.886 [INFO]: [Language Server (stderr)]:
E1216 11:24:50.885417 3335 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

E1216 11:24:50.885488 3335 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

retry connection

On the same computer, vscode opens different projects. One project can use the chat function of codeium, but the other project cannot be used, prompting connected,[retry connection].
What is the reason for this?

Unhandled exception in [StandaloneCoroutine{Cancelling}@592639ed, Dispatchers.IO]

Unhandled exception in [StandaloneCoroutine{Cancelling}@592639ed, Dispatchers.IO]

java.lang.ExceptionInInitializerError
at codeium.x.a(SourceFile:104)
at codeium.x$1.invokeSuspend(SourceFile:59)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:100)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@592639ed, Dispatchers.IO]
Caused by: java.lang.IllegalArgumentException: Invalid URL port: "0"
at okhttp3.HttpUrl$Builder.parse$okhttp(HttpUrl.kt:1330)
at okhttp3.HttpUrl$Companion.get(HttpUrl.kt:1634)
at okhttp3.Request$Builder.url(Request.kt:184)
at codeium.w.a(SourceFile:51)
at codeium.w.(SourceFile:31)
... 10 more

Doesn't work on my mac terminal

I'm waiting for a new release for the fix.
I manually had to delete out the all the codeium/termium added lines from ./bashrc and ./zshrc files for my terminal to go back to normal.
Let me know if I can send more info to help you resolve the issue.

redownloading on each new session

os arch
editor microsoft vscode

status

the extension, upon installation ran a download ~26mb. i set it up with my account and it runs as expected mostly

issue

each time vscode closes and opens, refreshing or a new coding session, the extension initiates the same download. i don't think that's intended behaviour.

please ask for more information if you need it

idea plugin download language server failed

Sorry, I don't know where the problem of idea plug-in should be fed back, so I just feed back the problem here.codeium works fine on vscode, but I have this problem with idea.
image

Autocomplete stopped working

Autocomplete stops working after couple of successful complete and then throws this error in the log. Is it because a limit has reached?

Error log

2024-03-28 10:06:05.461 [INFO]: [Language Server (stderr)]:
E0328 10:06:05.460795 75302 completion.go:282] Completion 46 error: deadline_exceeded: context deadline exceeded
2024-03-28 10:06:05.466 [ERROR]: [deadline_exceeded] context deadline exceeded
2024-03-28 10:06:05.467 [INFO]: Completion request errored (5085.31ms)
2024-03-28 10:06:05.467 [ERROR]: [deadline_exceeded] context deadline exceeded
2024-03-28 10:06:41.673 [INFO]: [Language Server (stderr)]:
E0328 10:06:41.671984 75302 api_server_client.go:143] GetUserStatus error: unavailable: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024-03-28 10:06:41.675 [ERROR]: [unavailable] context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024-03-28 10:06:42.626 [INFO]: [Language Server (stderr)]:
E0328 10:06:42.625568 75302 unleash.go:57] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

API documentation

Is it possible to provide API documentation that would make possible to develop community-supported plugins for less-popular editors?

can´t auth

When I enter the token:
Sign in failed: ConnectError: [deadline_exceeded] the operation timed out
Linux manjaro xfce
image

Error on VS Code : `Client codeium: connection to server is erroring. Shutting down server.`

Output Error

[Error - 09:50:31] Client codeium: connection to server is erroring. Shutting down server.
[Error - 09:50:31] Client codeium: connection to server is erroring. Shutting down server.
[Error - 09:50:31] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
	at b.shutdown (/Users/zb/.vscode/extensions/codeium.codeium-1.6.10/dist/extension.js:2:2518208)
	at b.stop (/Users/zb/.vscode/extensions/codeium.codeium-1.6.10/dist/extension.js:2:2517789)
	at b.stop (/Users/zb/.vscode/extensions/codeium.codeium-1.6.10/dist/extension.js:2:2680077)
	at b.handleConnectionError (/Users/zb/.vscode/extensions/codeium.codeium-1.6.10/dist/extension.js:2:2524296)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 09:50:31] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
	at b.shutdown (/Users/zb/.vscode/extensions/codeium.codeium-1.6.10/dist/extension.js:2:2518208)
	at b.stop (/Users/zb/.vscode/extensions/codeium.codeium-1.6.10/dist/extension.js:2:2517789)
	at b.stop (/Users/zb/.vscode/extensions/codeium.codeium-1.6.10/dist/extension.js:2:2680077)
	at b.handleConnectionError (/Users/zb/.vscode/extensions/codeium.codeium-1.6.10/dist/extension.js:2:2524296)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 09:50:31] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 09:50:31] Connection to server got closed. Server will restart.
true
[Error - 09:50:31] codeium client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 09:50:31] codeium client: couldn't create connection to server.
Error: connect ECONNREFUSED 127.0.0.1:52516
	at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
[Error - 09:50:31] Restarting server failed
Error: connect ECONNREFUSED 127.0.0.1:52516
	at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)

VS Code version

Version: 1.85.1
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:48:16.874Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.2.0

VSCode Codeium extension returns error :"cannot find language server port file". Then I tried to download its windows version from here, sync the version of extension and language_server to 1.2.97, but still doesn't work.

The background is that Codeium worked well in my VSCode before. Just from today,
I meet the problem that "cannot find language server port file in C:\Users\xxx\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager in 60 secs"
I am not sure whether this is due to my Internet problem because I am in Hongkong, so I found a way that I can download the corresponding version of language server from this repo. So I download its windows version from here, (I am working in Windows OS) and sync the version of extension and language_server to 1.2.97.(I am using the 1.2.97 version extension)
Then I found the temp file folder of Codeium always change when I restart my VSCode, so I check the log in VSCode and found the temp folder, and put language server file into it. The full path is "C:\Users\xxx\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager\language_server_windows_x64.exe"
Then the error "cannot find language server port file" doesnt appear, but codeium still doesn't work and return the following message:

The log after I put server file is:

2023-10-07 18:10:43.402 [INFO]: win-ca initialized
2023-10-07 18:10:43.404 [ERROR]: undefined
2023-10-07 18:10:46.558 [INFO]: Creating manager directory: C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager
2023-10-07 18:10:49.507 [INFO]: Using cached LS with valid crc32: c:\Users\Sheng.Zhao\.vscode\extensions\codeium.codeium-1.2.97\dist\f3bda5b3eb4dc7c7904cb8e9a3156e9f25f1ebb9\language_server_windows_x64.exe
2023-10-07 18:10:49.520 [INFO]: Language server started
2023-10-07 18:10:50.581 [INFO]: [Language Server (stderr)]:
I1007 18:10:50.580641 18748 main.go:452] Starting language server manager with pid 18748
2023-10-07 18:10:50.590 [INFO]: [Language Server (stderr)]:
I1007 18:10:50.590636 18748 main.go:106] Manager acquired its lock file C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/locks/manager.lock
2023-10-07 18:10:50.656 [INFO]: [Language Server (stderr)]:
I1007 18:10:50.622654 18748 main.go:228] Waiting for random port file in C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/child_random_port_1696673450590636400_4784791657710900675 to be created
2023-10-07 18:10:51.159 [INFO]: [Language Server (stderr)]:
I1007 18:10:51.142084 38048 main.go:446] Starting language server process with pid 38048
2023-10-07 18:10:52.375 [INFO]: [Language Server (stderr)]:
I1007 18:10:52.375863 38048 proxy.go:93] proxyplease.proxy> No proxy provided. Attempting to infer from system.
2023-10-07 18:10:52.410 [INFO]: [Language Server (stderr)]:
2023/10/07 18:10:52 [proxy.Provider.readWinHttpProxy] No proxy discovered via AutoDetect: winapi error #12180
2023-10-07 18:10:52.609 [INFO]: [Language Server (stderr)]:
I1007 18:10:52.610101 38048 proxy.go:93] proxyplease.proxy> Inferred proxy from system: http://192.168.104.3:8080
2023-10-07 18:10:52.610 [INFO]: [Language Server (stderr)]:
I1007 18:10:52.610101 38048 client.go:589] [DEBUG] GET https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions
2023-10-07 18:10:52.815 [INFO]: [Language Server (stderr)]:
I1007 18:10:52.801078 38048 proxy.go:94] proxyplease.connect> Proxy successfully established. No authentication was required.
2023-10-07 18:10:53.349 [INFO]: [Language Server (stderr)]:
I1007 18:10:53.344298 38048 api_server_client.go:115] Successfully dialed proxy
I1007 18:10:53.344298 38048 server.go:387] Successfully created API server client
I1007 18:10:53.344298 38048 api_server_client.go:115] Successfully dialed proxy
I1007 18:10:53.344298 38048 server.go:393] Successfully created API streaming client
2023-10-07 18:10:53.400 [INFO]: [Language Server (stderr)]:
I1007 18:10:53.396303 38048 server.go:402] Successfully initialized tokenizer
I1007 18:10:53.396303 38048 unleash.go:57] Initializing Unleash with production environment
2023-10-07 18:10:59.634 [INFO]: Found language server running on port NaN
2023-10-07 18:11:05.645 [INFO]: [Language Server (stderr)]:
I1007 18:11:05.646115 18748 main.go:259] Failed to get random ports within 15 seconds
2023-10-07 18:11:09.692 [INFO]: [Language Server (stderr)]:
E1007 18:11:09.692282 18748 cmd_wrapper.go:266] LanguageServer wait failed: timed out while waiting on process 38048 at 1007 18:11:09.691798, sent SIGTERM then SIGKILL
2023-10-07 18:11:09.693 [INFO]: [Language Server (stderr)]:
E1007 18:11:09.692946 18748 main.go:211] Failed to remove stderr file C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/server_outputs/language_server_stderr_1696673450597636600_2497693638325532256: remove C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/server_outputs/language_server_stderr_1696673450597636600_2497693638325532256: The process cannot access the file because it is being used by another process.
2023-10-07 18:11:09.709 [INFO]: [Language Server (stderr)]:
I1007 18:11:09.710129 18748 main.go:228] Waiting for random port file in C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/child_random_port_1696673469695244700_7736025092012760781 to be created
2023-10-07 18:11:09.791 [INFO]: [Language Server (stderr)]:
I1007 18:11:09.790375  9616 main.go:446] Starting language server process with pid 9616
2023-10-07 18:11:09.868 [INFO]: [Language Server (stderr)]:
I1007 18:11:09.869222  9616 proxy.go:93] proxyplease.proxy> No proxy provided. Attempting to infer from system.
2023-10-07 18:11:09.881 [INFO]: [Language Server (stderr)]:
2023/10/07 18:11:09 [proxy.Provider.readWinHttpProxy] No proxy discovered via AutoDetect: winapi error #12180
2023-10-07 18:11:09.884 [INFO]: [Language Server (stderr)]:
I1007 18:11:09.885304  9616 proxy.go:93] proxyplease.proxy> Inferred proxy from system: http://192.168.104.3:8080
2023-10-07 18:11:09.885 [INFO]: [Language Server (stderr)]:
I1007 18:11:09.885854  9616 client.go:589] [DEBUG] GET https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions
2023-10-07 18:11:10.058 [INFO]: [Language Server (stderr)]:
I1007 18:11:10.059575  9616 proxy.go:94] proxyplease.connect> Proxy successfully established. No authentication was required.
2023-10-07 18:11:10.455 [INFO]: [Language Server (stderr)]:
I1007 18:11:10.457069  9616 api_server_client.go:115] Successfully dialed proxy
2023-10-07 18:11:10.456 [INFO]: [Language Server (stderr)]:
I1007 18:11:10.457069  9616 server.go:387] Successfully created API server client
I1007 18:11:10.457069  9616 api_server_client.go:115] Successfully dialed proxy
I1007 18:11:10.457637  9616 server.go:393] Successfully created API streaming client
2023-10-07 18:11:10.509 [INFO]: [Language Server (stderr)]:
I1007 18:11:10.510208  9616 server.go:402] Successfully initialized tokenizer
I1007 18:11:10.510208  9616 unleash.go:57] Initializing Unleash with production environment
2023-10-07 18:11:24.790 [INFO]: [Language Server (stderr)]:
I1007 18:11:24.791703 18748 main.go:259] Failed to get random ports within 15 seconds
2023-10-07 18:11:28.829 [INFO]: [Language Server (stderr)]:
E1007 18:11:28.830910 18748 cmd_wrapper.go:266] LanguageServer wait failed: timed out while waiting on process 9616 at 1007 18:11:28.830372, sent SIGTERM then SIGKILL
2023-10-07 18:11:28.830 [INFO]: [Language Server (stderr)]:
E1007 18:11:28.830910 18748 main.go:211] Failed to remove stderr file C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/server_outputs/language_server_stderr_1696673469695996600_6161909910470624704: remove C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/server_outputs/language_server_stderr_1696673469695996600_6161909910470624704: The process cannot access the file because it is being used by another process.
2023-10-07 18:11:28.841 [INFO]: [Language Server (stderr)]:
I1007 18:11:28.843497 18748 main.go:228] Waiting for random port file in C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/child_random_port_1696673488830910500_4515010168728142365 to be created
2023-10-07 18:11:28.908 [INFO]: [Language Server (stderr)]:
I1007 18:11:28.908338 69588 main.go:446] Starting language server process with pid 69588
2023-10-07 18:11:28.980 [INFO]: [Language Server (stderr)]:
I1007 18:11:28.981018 69588 proxy.go:93] proxyplease.proxy> No proxy provided. Attempting to infer from system.
2023-10-07 18:11:28.993 [INFO]: [Language Server (stderr)]:
2023/10/07 18:11:28 [proxy.Provider.readWinHttpProxy] No proxy discovered via AutoDetect: winapi error #12180
2023-10-07 18:11:28.998 [INFO]: [Language Server (stderr)]:
I1007 18:11:28.998702 69588 proxy.go:93] proxyplease.proxy> Inferred proxy from system: http://192.168.104.3:8080
2023-10-07 18:11:28.998 [INFO]: [Language Server (stderr)]:
I1007 18:11:28.999711 69588 client.go:589] [DEBUG] GET https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions
2023-10-07 18:11:29.176 [INFO]: [Language Server (stderr)]:
I1007 18:11:29.177289 69588 proxy.go:94] proxyplease.connect> Proxy successfully established. No authentication was required.
2023-10-07 18:11:29.552 [INFO]: [Language Server (stderr)]:
I1007 18:11:29.553331 69588 api_server_client.go:115] Successfully dialed proxy
2023-10-07 18:11:29.552 [INFO]: [Language Server (stderr)]:
I1007 18:11:29.553893 69588 server.go:387] Successfully created API server client
I1007 18:11:29.553893 69588 api_server_client.go:115] Successfully dialed proxy
I1007 18:11:29.554444 69588 server.go:393] Successfully created API streaming client
2023-10-07 18:11:29.603 [INFO]: [Language Server (stderr)]:
I1007 18:11:29.603926 69588 server.go:402] Successfully initialized tokenizer
I1007 18:11:29.604892 69588 unleash.go:57] Initializing Unleash with production environment
2023-10-07 18:11:43.888 [INFO]: [Language Server (stderr)]:
I1007 18:11:43.888174 18748 main.go:259] Failed to get random ports within 15 seconds
2023-10-07 18:11:47.933 [INFO]: [Language Server (stderr)]:
E1007 18:11:47.933775 18748 cmd_wrapper.go:266] LanguageServer wait failed: timed out while waiting on process 69588 at 1007 18:11:47.933775, sent SIGTERM then SIGKILL
2023-10-07 18:11:47.934 [INFO]: [Language Server (stderr)]:
E1007 18:11:47.934287 18748 main.go:211] Failed to remove stderr file C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/server_outputs/language_server_stderr_1696673488832094600_7105776963146391532: remove C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/server_outputs/language_server_stderr_1696673488832094600_7105776963146391532: The process cannot access the file because it is being used by another process.
2023-10-07 18:11:47.948 [INFO]: [Language Server (stderr)]:
I1007 18:11:47.949044 18748 main.go:228] Waiting for random port file in C:\Users\SHENG~1.ZHA\AppData\Local\Temp\460a35fe-dc23-4428-85ba-58051a947d18\codeium\manager/child_random_port_1696673507934404200_8713096811381230606 to be created
2023-10-07 18:11:48.022 [INFO]: [Language Server (stderr)]:
I1007 18:11:48.021512  6400 main.go:446] Starting language server process with pid 6400
2023-10-07 18:11:48.088 [INFO]: [Language Server (stderr)]:
I1007 18:11:48.087193  6400 proxy.go:93] proxyplease.proxy> No proxy provided. Attempting to infer from system.
2023-10-07 18:11:48.099 [INFO]: [Language Server (stderr)]:
2023/10/07 18:11:48 [proxy.Provider.readWinHttpProxy] No proxy discovered via AutoDetect: winapi error #12180
2023-10-07 18:11:48.101 [INFO]: [Language Server (stderr)]:
I1007 18:11:48.102262  6400 proxy.go:93] proxyplease.proxy> Inferred proxy from system: http://192.168.104.3:8080
I1007 18:11:48.102285  6400 client.go:589] [DEBUG] GET https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions
2023-10-07 18:11:48.288 [INFO]: [Language Server (stderr)]:
I1007 18:11:48.288511  6400 proxy.go:94] proxyplease.connect> Proxy successfully established. No authentication was required.
2023-10-07 18:11:48.663 [INFO]: [Language Server (stderr)]:
I1007 18:11:48.663434  6400 api_server_client.go:115] Successfully dialed proxy
2023-10-07 18:11:48.663 [INFO]: [Language Server (stderr)]:
I1007 18:11:48.663434  6400 server.go:387] Successfully created API server client
I1007 18:11:48.663434  6400 api_server_client.go:115] Successfully dialed proxy
I1007 18:11:48.663980  6400 server.go:393] Successfully created API streaming client
2023-10-07 18:11:48.711 [INFO]: [Language Server (stderr)]:
I1007 18:11:48.710520  6400 server.go:402] Successfully initialized tokenizer
I1007 18:11:48.711527  6400 unleash.go:57] Initializing Unleash with production environment
2023-10-07 18:11:52.961 [INFO]: [Language Server (stderr)]:
F1007 18:11:52.961575 18748 main.go:246] Failed to convert random server port to integer: strconv.Atoi: parsing "language": invalid syntax
2023-10-07 18:11:52.971 [INFO]: Language server exited with code 1

Code completion stopped working

Similar to #25:

2024-02-12 15:31:29 [INFO]: [Language Server (stderr)]:
E0212 15:31:29.612574 10176 completion.go:342] Completion 9382 error: deadline_exceeded: context deadline exceeded
2024-02-12 15:31:29 [INFO]: Completion request succeeded (5085.17ms)
2024-02-12 15:31:29 [INFO]: No completions were generated
2024-02-12 15:31:29 [INFO]: provideInlineCompletionItems request succeeded (5087.49ms)

Code completion stopped working in the editor (VSCode, but other editors have the same issues).
The chat functionality is working as expected.

Chatting in https://discord.com/channels/1027685395649015980/1051978677635784834/threads/1206520350599286794 indicates this might be LLM wide.

Compatibility with Warp Terminal

As of now, Warp doesn't support PROMPT_COMMAND. If the shell hook is installed, Warp will not respond to the Enter key, It seems like it got stuck. Is there any chance to use the $TERM_PROGRAM shell variable to ignore the shell hook when running in Warp?

image

www.codeium.com not working

The URL https://www.codeium.com/ not working while https://codeium.com/ is working.

I tested on Iran internet and Tor.

high cpu usage when moving code around

hi, i noticed that as i move code around by shifting lines up and down, the language server can cause the cpu can spike to 50-90%. i chose to turn off autocomplete for the language (tsx) but the cpu spike still happens. is there a toggle or keyboard shortcut to turn off autocomplete to prevent power drain on my pc, and turn it back on when i need autocomplete?

Can't work for two vscode projects in the same time

When open second vscode project, codeium can't work for the second project. Here is the log:

2024-01-03 13:38:08.970 [INFO]: [Language Server (stderr)]:
I0103 13:38:08.968740 25628 search_provider.go:158] Using database at /home/user/.codeium/database/9c0694567290725d9dcba14ade58e297/2/MODEL_EMBED_6591
2024-01-03 13:38:18.998 [INFO]: [Language Server (stderr)]:
E0103 13:38:18.994212 25628 database.go:140] Error creating table: locking protocol
(1) attached stack trace
  -- stack trace:
  | github.com/Exafunction/Exafunction/exa/language_server/embedding_search.NewDatabase
  | 	exa/language_server/embedding_search/database.go:139
  | github.com/Exafunction/Exafunction/exa/language_server/embedding_search.SetUpIndexComponents
  | 	exa/language_server/embedding_search/search_provider.go:166
  | github.com/Exafunction/Exafunction/exa/language_server.NewServer
  | 	exa/language_server/server.go:590
  | github.com/Exafunction/Exafunction/exa/language_server.CreateLanguageServerAndServe
  | 	exa/language_server/server.go:324
  | main.main
  | 	exa/cmd/language_server/main.go:533
  | runtime.main
  | 	GOROOT/src/runtime/proc.go:267
  | runtime.goexit
  | 	src/runtime/asm_amd64.s:1650
Wraps: (2) locking protocol
Error types: (1) *withstack.withStack (2) sqlite3.Error
F0103 13:38:18.994365 25628 main.go:535] Language server failed - locking protocol
(1) attached stack trace
  -- stack trace:
  | github.com/Exafunction/Exafunction/exa/language_server/embedding_search.NewDatabase
  | 	exa/language_server/embedding_search/database.go:139
  | github.com/Exafunction/Exafunction/exa/language_server/embedding_search.SetUpIndexComponents
  | 	exa/language_server/embedding_search/search_provider.go:166
  | github.com/Exafunction/Exafunction/exa/language_server.NewServer
  | 	exa/language_server/server.go:590
  | github.com/Exafunction/Exafunction/exa/language_server.CreateLanguageServerAndServe
  | 	exa/language_server/server.go:324
  | main.main
  | 	exa/cmd/language_server/main.go:533
  | runtime.main
  | 	GOROOT/src/runtime/proc.go:267
  | runtime.goexit
  | 	src/runtime/asm_amd64.s:1650
Wraps: (2) locking protocol
Error types: (1) *withstack.withStack (2) sqlite3.Error
2024-01-03 13:38:21.441 [ERROR]: Language server port file not found in /tmp/56cc4cc0-54c0-4751-bc8a-3f50e8056403/codeium/manager after 60s
2024-01-03 13:38:22.221 [INFO]: [Language Server (stderr)]:
I0103 13:38:22.219904 25426 main.go:276] Failed to get random ports within 15 seconds
2024-01-03 13:38:22.222 [INFO]: [Language Server (stderr)]:
I0103 13:38:22.220434 25426 cmd_wrapper.go:267] LanguageServer exited with: exit code: 1
F0103 13:38:22.220712 25426 main.go:169] Exceeded maximum number of connection failures 4
2024-01-03 13:38:22.224 [INFO]: Language server exited with code 1

I hope they can adapt to Spyder.

I used the Kite plugin before, but it doesn't work anymore. The built-in code completion plugin is not very good, and the common ones don't support Spyder. It's very uncomfortable. I hope they can adapt to Spyder.

Vim Plug install fails

Followed the instructions for vim-plug:
Plug 'Exafunction/codeium.vim' in my .vimrc.
running :PlugInstall:

x codeium:
    fatal: invalid reference: master

To fix it, you can either use master branch as default or change readme to point to your custom default branch name for Plug:

 Plug 'Exafunction/codeium', { 'branch': 'main' }

CodeLens thing keeps appearing randomly

Even though i have it set as "false".

I click the X, which takes me to the settings and it shows "false" and then when I return the editor the lens is not there anymore.

Version: 1.87.1 (user setup)
Commit: 1e790d77f81672c49be070e04474901747115651
Date: 2024-03-06T00:21:36.258Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.19045

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.