Exafunction / codeium

Other
232 stars 12 forks source link

WSL + VSCode - No such host #99

Closed voxivoid closed 3 weeks ago

voxivoid commented 3 weeks ago

Hello,

It seems that the vscode extension stopped working in WSL. I'm using VSCode 1.95.1 with WSL (Ubuntu 20.04.6 LTS). Here's the debug log:

(VSCode) 2024-11-05 10:30:22.251 [INFO]: No proxy settings found
(VSCode) 2024-11-05 10:30:23.545 [INFO]: Checking network connection...
(VSCode) 2024-11-05 10:30:24.512 [INFO]: No Network Issue connecting to https://server.codeium.com
(VSCode) 2024-11-05 10:30:26.256 [INFO]: Creating manager directory: /tmp/f6f12736-5b83-439b-b063-0fc3c45c9510/codeium/manager
(VSCode) 2024-11-05 10:30:26.575 [INFO]: Using cached LS with valid crc32: /home/voxivoid/.vscode-server/extensions/codeium.codeium-1.22.5/dist/1347d6f7fffdaec404d99b3f0ca3d8854448c787/language_server_linux_x64
(VSCode) 2024-11-05 10:30:26.579 [INFO]: Language server started
2024/11/05 10:30:26 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined
I1105 10:30:26.653455  1002 main.go:553] [Language Server Manager] Setting GOMAXPROCS to 16
I1105 10:30:26.653545  1002 main.go:667] [Language Server Manager] Release 1.22.5 (1347d6f7fffdaec404d99b3f0ca3d8854448c787)
I1105 10:30:26.653563  1002 main.go:746] [Language Server Manager] Starting language server manager with pid 1002
I1105 10:30:26.653905  1002 main.go:120] [Language Server Manager] Manager acquired its lock file /tmp/f6f12736-5b83-439b-b063-0fc3c45c9510/codeium/manager/locks/manager.lock
I1105 10:30:26.654592  1002 main.go:259] [Language Server Manager] Waiting for random port file in /tmp/f6f12736-5b83-439b-b063-0fc3c45c9510/codeium/manager/child_random_port_1730802626654098910_1571635684319824713 to be created
2024/11/05 10:30:26 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined
I1105 10:30:26.741500  1019 main.go:553] Setting GOMAXPROCS to 4
I1105 10:30:26.741637  1019 main.go:740] Starting language server process with pid 1019
I1105 10:30:26.741664  1019 server.go:183] Language server will attempt to listen on host 127.0.0.1
I1105 10:30:26.741759  1019 server.go:190] Language server listening on random port at 46703
W1105 10:30:27.162818  1019 proxy.go:128] proxy failed to connect: GET https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions giving up after 4 attempt(s): Get "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions": dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
I1105 10:30:27.162868  1019 unleash.go:93] Initializing Unleash
I1105 10:30:27.197273  1019 unleash.go:113] Successfully initialized Unleash
E1105 10:30:27.197346  1019 unleash.go:63] Unleash error: Get "https://unleash.codeium.com/api/client/features": dial tcp: lookup unleash.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:27.197367  1019 unleash.go:63] Unleash error: Post "https://unleash.codeium.com/api/client/register": dial tcp: lookup unleash.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:27.203767  1019 client_manager.go:275] Metadata is nil when trying to refresh user JWT
I1105 10:30:27.204066  1019 server.go:441] Successfully created API server client
I1105 10:30:27.227905  1019 server.go:456] Successfully initialized tokenizer
E1105 10:30:27.236709  1019 api_server_client.go:299] GetConfig error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
I1105 10:30:27.298760  1019 server.go:613] Local search is enabled, will index local files.
I1105 10:30:27.298798  1019 server.go:617] Using 4 indexer workers
I1105 10:30:27.339726  1019 sqlite_faiss_db_client.go:64] Successfully created embedding search database in 40ms
I1105 10:30:27.340015  1019 indexer.go:213] Using 4 embed workers
I1105 10:30:27.340083  1019 search_provider.go:274] Successfully created and started indexer
I1105 10:30:27.340138  1019 search_provider.go:304] Successfully created embedding search provider
I1105 10:30:27.344223  1019 server.go:703] Successfully created completion provider
I1105 10:30:27.344269  1019 server.go:752] Child process attempting to acquire lock file /tmp/f6f12736-5b83-439b-b063-0fc3c45c9510/codeium/manager/locks/child_lock_1730802626654239147_4521463761079166768
I1105 10:30:27.344342  1019 server.go:760] Child process acquired lock file /tmp/f6f12736-5b83-439b-b063-0fc3c45c9510/codeium/manager/locks/child_lock_1730802626654239147_4521463761079166768
I1105 10:30:27.347600  1019 server.go:265] LSP listening on random port at 39455
I1105 10:30:27.355697  1019 web_server.go:259] Chat Web Server listening at ws://127.0.0.1:38167
I1105 10:30:27.358189  1002 main.go:295] [Language Server Manager] Found random server port 46703
I1105 10:30:27.358236  1002 main.go:296] [Language Server Manager] Found random lsp port 39455
I1105 10:30:27.358255  1002 main.go:303] [Language Server Manager] Attempting to connect to language server at 127.0.0.1:46703
I1105 10:30:27.370710  1002 main.go:174] [Language Server Manager] Fixing language server port at 46703
I1105 10:30:27.370729  1002 main.go:355] [Language Server Manager] Successfully connected to new language server at 127.0.0.1:46703
39455
E1105 10:30:27.381446  1019 api_server_client.go:239] Ping error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
(VSCode) 2024-11-05 10:30:27.388 [INFO]: Found language server running on port 46703
I1105 10:30:27.399454  1019 utils.go:227] Analyzing workspace files for /home/voxivoid/code/eviso/giro-frontend
I1105 10:30:27.401074  1019 utils.go:281] Done analyzing workspace files for /home/voxivoid/code/eviso/giro-frontend
E1105 10:30:27.660210  1019 api_server_client.go:266] GetUserStatus error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:27.660216  1019 client_manager.go:294] Error getting user JWT: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
(VSCode) 2024-11-05 10:30:27.671 [ERROR]: [unknown] unavailable: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
(VSCode) 2024-11-05 10:30:27.824 [INFO]: openAllTextDocuments took 185.36838399999942ms
E1105 10:30:27.697660  1019 api_server_client.go:255] GetStatus error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
(VSCode) 2024-11-05 10:30:27.838 [ERROR]: [unknown] unavailable: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:27.878580  1019 telemetry.go:136] Error traces error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
I1105 10:30:28.265760  1019 lazy_model.go:31] Successfully created embedding store
E1105 10:30:28.277219  1019 api_server_client.go:299] GetConfig error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:29.307216  1019 api_server_client.go:299] GetConfig error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:30.338846  1019 api_server_client.go:299] GetConfig error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:31.368930  1019 api_server_client.go:299] GetConfig error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:32.400701  1019 api_server_client.go:299] GetConfig error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:33.430644  1019 api_server_client.go:299] GetConfig error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host
E1105 10:30:34.368285  1019 telemetry.go:136] Error traces error: dial tcp: lookup server.codeium.com on 10.255.255.254:53: no such host

As a note, I have it working properly when running VSCode on Windows 11 (without using wsl).

voxivoid commented 3 weeks ago

so I found out that this relates to a DNS issue introduced by some changes on how WSL deals with DNS. you can read more about it here: https://github.com/microsoft/WSL/issues/8022#issuecomment-1032554287

closing the issue since it is not directly related with codeium