Exafunction / codeium

Other
233 stars 12 forks source link

Codeium LSP fails completetly when something is a directory (?) #64

Open ghost opened 5 months ago

ghost commented 5 months ago

Multiple days since the extension just times out. No login screen. Looking at extension logs I found something rather funny:

2024-06-07 12:21:44.036 [INFO]: [Language Server (stderr)]:
I0607 12:21:44.035102 3256023 search_provider.go:207] Successfully created embedding search database in 2ms
I0607 12:21:44.035554 3256023 search_provider.go:229] Successfully created and started indexer
I0607 12:21:44.035599 3256023 search_provider.go:255] Successfully created embedding search provider
I0607 12:21:44.035622 3256023 server.go:510] Successfully created exact search provider
2024-06-07 12:21:44.059 [INFO]: [Language Server (stderr)]:
F0607 12:21:44.056637 3256023 main.go:555] Language server failed - read /home/ventgrey/GitHub/project/models/Config: is a directory
(1) attached stack trace
  -- stack trace:
  | github.com/Exafunction/Exafunction/exa/language_server.CreateLanguageServerAndServe
  |     exa/language_server/server.go:167
  | main.main
  |     exa/cmd/language_server/main.go:553
  | runtime.main
  |     GOROOT/src/runtime/proc.go:267
Wraps: (2) attached stack trace
  -- stack trace:
  | github.com/Exafunction/Exafunction/exa/language_server.initServers
  |     exa/language_server/server.go:538
  | github.com/Exafunction/Exafunction/exa/language_server.CreateLanguageServerAndServe
  |     exa/language_server/server.go:165
  | main.main
  |     exa/cmd/language_server/main.go:553
  | runtime.main
  |     GOROOT/src/runtime/proc.go:267
Wraps: (3) attached stack trace
  -- stack trace:
  | github.com/Exafunction/Exafunction/exa/language_server/code_tracker.NewCodeTrackerManager
  |     exa/language_server/code_tracker/code_tracker_manager.go:128
  | [...repeated from below...]
Wraps: (4) attached stack trace
  -- stack trace:
  | github.com/Exafunction/Exafunction/exa/language_server/code_tracker.(*CodeTrackerManager).initialize
  |     exa/language_server/code_tracker/code_tracker_manager.go:281
  | github.com/Exafunction/Exafunction/exa/language_server/code_tracker.NewCodeTrackerManager
  |     exa/language_server/code_tracker/code_tracker_manager.go:127
  | github.com/Exafunction/Exafunction/exa/language_server/completion_provider.NewSessionRouter
  |     exa/language_server/completion_provider/session_router.go:83
  | github.com/Exafunction/Exafunction/exa/language_server.initServers
  |     exa/language_server/server.go:530
  | github.com/Exafunction/Exafunction/exa/language_server.CreateLanguageServerAndServe
  |     exa/language_server/server.go:165
  | main.main
  |     exa/cmd/language_server/main.go:553
  | runtime.main
  |     GOROOT/src/runtime/proc.go:267
  | runtime.goexit
  |     src/runtime/asm_amd64.s:1650
Wraps: (5) read /home/ventgrey/GitHub/projects/models/Config
Wraps: (6) is a directory

Which I don't know why is it happening since:

  1. I don't have such project opened.
  2. It happens on a "new window"

xDDDDDD

This happens until the server dies from a timeout:

Error types: (1) *withstack.withStack (2) *withstack.withStack (3) *withstack.withStack (4) *withstack.withStack (5) *fs.PathError (6) syscall.Errno
2024-06-07 12:21:57.191 [ERROR]: Language server port file not found in /tmp/f3a23039-c3b8-44e8-a2cb-edad157d41f2/codeium/manager after 60s
2024-06-07 12:21:57.719 [INFO]: [Language Server (stderr)]:
I0607 12:21:57.717962 3255972 main.go:279] Failed to get random ports within 15 seconds
2024-06-07 12:21:57.723 [INFO]: [Language Server (stderr)]:
I0607 12:21:57.718628 3255972 cmd_wrapper.go:267] LanguageServer exited with: exit code: 1
F0607 12:21:57.718778 3255972 main.go:172] Exceeded maximum number of connection failures 4
2024-06-07 12:21:57.751 [INFO]: Language server exited with code 1

If someone happens to encounter this bug you'll just have to log-out of your codeium credentials and delete the directory under ~/.codeium and reload VsCodium.

As of why the LSP dies in such way or why is it whining about Config being a totally separate directory idk (might be something to do with Deno lsp). I might as well chmod those correctly so codeium can't even see those directories.