Exafunction / codeium

Other
200 stars 9 forks source link

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

Open iuhgnor opened 6 months ago

iuhgnor commented 6 months ago

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
njiang747 commented 6 months ago

Is this two projects in the same window or in two separate windows? If it's separate windows do both have this issue or only one? If you reload one does the issue go away?

iuhgnor commented 5 months ago

The two projects are in two separate windows, and only the second project has this issue. Reload the second project can't solve this problem.

iuhgnor commented 5 months ago

The two projects are in two separate windows, and only the second project has this issue. Reload the second project can't solve this problem.

The two projects are in WSL.

VenDream commented 5 months ago

Same problem with opening two projects in WSL :(

ogniwo100 commented 3 months ago

I only have this problem when both VSC windows are opened at the same time. If I open one window and let everything load and then the other one, then both windows work correctly with Codeium.