zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.27k stars 3.09k forks source link

[Windows] With the proxy enabled, some language servers cannot start and ask for authentication for node. #18765

Open taimast opened 1 month ago

taimast commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

With the proxy enabled, some language servers cannot start and ask for authentication for node. And for some reason, every time it starts, it starts downloading language servers, although when it starts without a proxy, it has already installed them

The proxies are specified in the format "proxy": "http://log:pass@ip:port". In Assistant Window proxy works without problems

Environment

Zed: v0.157.0 (Zed Dev 37ded190cf3c755ea544b489715fd9c0bf0845d9) OS: Windows 10.0.22631 Memory: 63.2 GiB Architecture: x86_64 GPU: AMD Radeon RX 5600 XT || AMD proprietary driver || 24.5.1 (AMD proprietary shader compiler)

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

Language server error: yaml-language-server

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"E407\",\n    \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/yaml-language-server\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/yaml-language-server\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-05T17_25_58_401Z-debug-0.log\n"
-- stderr--

If applicable, attach your Zed.log file to this issue.

Zed.log

2024-10-05T20:24:50.8824542+03:00 [INFO] Using Windows API for pseudoconsole
2024-10-05T20:24:50.9904109+03:00 [INFO] Creating buffer 0x1e2befeab50 of size 65536, name 'chunk-1', handle 6
2024-10-05T20:24:51.0049646+03:00 [INFO] Creating buffer 0x1e2befeac50 of size 4704, name 'chunk-4', handle 7
2024-10-05T20:24:51.005043+03:00 [INFO] Creating buffer 0x1e2befeacd0 of size 8512, name 'chunk-5', handle 8
2024-10-05T20:24:51.005098+03:00 [INFO] Creating buffer 0x1e2befeb050 of size 79744, name 'chunk-6', handle 9
2024-10-05T20:24:51.0074829+03:00 [INFO] attempting to start language server "yaml-language-server", path: "G:\\CodeProjects\\PycharmProjects\\AutoAnswer", id: 1
2024-10-05T20:24:51.0076628+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:51.0078083+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:51.0194882+03:00 [INFO] Creating buffer 0x1e2f7abcbe0 of size 79744, name 'chunk-7', handle 10
2024-10-05T20:24:51.0219678+03:00 [INFO] fetching latest version of language server "yaml-language-server"
2024-10-05T20:24:51.0797734+03:00 [INFO] Creating buffer 0x1e2bf7cd810 of size 9296, name 'chunk-8', handle 11
2024-10-05T20:24:51.0798436+03:00 [INFO] Creating buffer 0x1e2bf7cd210 of size 8960, name 'chunk-9', handle 12
2024-10-05T20:24:51.0799017+03:00 [INFO] Creating buffer 0x1e2bf7cd290 of size 79744, name 'chunk-10', handle 13
2024-10-05T20:24:51.1122844+03:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-10-05T20:24:51.1940881+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:51.2651941+03:00 [INFO] Creating buffer 0x1e2f79c63c0 of size 65536, name 'chunk-2', handle 14
2024-10-05T20:24:51.2882907+03:00 [INFO] Creating buffer 0x1e2f79c64c0 of size 65536, name 'chunk-3', handle 15
2024-10-05T20:24:51.3704948+03:00 [WARN] unhandled message: Metadata(SupermavenMetadataMessage { dust_strings: None })
2024-10-05T20:24:51.4538488+03:00 [INFO] Creating texture 0x1e2f84a09a0 of size 1024x1024x1 and format Bgra8UnormSrgb, name 'atlas', handle 16
2024-10-05T20:24:51.5520726+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:51.5567862+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:24:51.5568655+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:24:51.5569274+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:24:51.6751543+03:00 [INFO] add connection to peer
2024-10-05T20:24:51.6752097+03:00 [INFO] add_connection;
2024-10-05T20:24:51.6752739+03:00 [INFO] waiting for server hello
2024-10-05T20:24:51.693488+03:00 [INFO] got server hello
2024-10-05T20:24:51.6935447+03:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 545, id: 9364249 })
2024-10-05T20:24:51.6936461+03:00 [INFO] set status on client 118327: Connected { peer_id: PeerId { owner_id: 545, id: 9364249 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-10-05T20:24:51.9626339+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:51.9634547+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:24:51.9635333+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:24:51.9635964+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:24:51.9779685+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:51.9786479+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:24:51.9787312+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:24:51.9787994+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:24:52.1412378+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:52.1480659+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:24:52.1481985+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:24:52.148267+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:24:52.1774112+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:52.1789163+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:24:52.1795496+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:24:52.1796343+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:24:52.179699+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:24:52.1797596+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:24:52.1798307+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:24:52.1798978+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:24:52.3512666+03:00 [ERROR] failed to fetch cached embeddings via cloud model

Caused by:
    RPC request GetCachedEmbeddings failed: permission denied
2024-10-05T20:24:52.852858+03:00 [WARN] unhandled message: ActiveRepo(SupermavenActiveRepoMessage { repo_simple_name: Some("AutoAnswer") })
2024-10-05T20:24:52.8529383+03:00 [WARN] unhandled message: TaskStatus(SupermavenTaskUpdateMessage { task: "Adapting to 'AutoAnswer'", status: Complete, percent_complete: None })
2024-10-05T20:24:53.1034788+03:00 [ERROR] missing executable in directory "C:\\Users\\taima\\AppData\\Local\\Zed\\languages\\yaml-language-server\\node_modules"
2024-10-05T20:24:53.1035614+03:00 [ERROR] Failed to start language server "yaml-language-server": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"E407\",\n    \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/yaml-language-server\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/yaml-language-server\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-05T17_24_52_603Z-debug-0.log\n"
2024-10-05T20:24:53.1036041+03:00 [ERROR] server stderr: ""
2024-10-05T20:24:56.0664319+03:00 [INFO] Creating buffer 0x1e2f86a8b50 of size 67424, name 'chunk-11', handle 17
2024-10-05T20:25:54.5378748+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-10-05T20:25:54.5403844+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-10-05T20:25:54.5427572+03:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-10-05T20:25:54.5483885+03:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-10-05T20:25:55.6339881+03:00 [INFO] Destroying texture 0x1e2befb56c0, handle 0
2024-10-05T20:25:55.6340474+03:00 [INFO] Destroying texture 0x1e2f84a09a0, handle 16
2024-10-05T20:25:55.6344112+03:00 [INFO] Destroying buffer 0x1e2bf29c580, handle 1
2024-10-05T20:25:55.6344578+03:00 [INFO] Destroying buffer 0x1e2befeab50, handle 6
2024-10-05T20:25:55.6344985+03:00 [INFO] Destroying buffer 0x1e2f79c63c0, handle 14
2024-10-05T20:25:55.6345388+03:00 [INFO] Destroying buffer 0x1e2f79c64c0, handle 15
2024-10-05T20:25:55.6348603+03:00 [INFO] Destroying buffer 0x1e2bf490890, handle 3
2024-10-05T20:25:55.6349067+03:00 [INFO] Destroying buffer 0x1e2bf7cdd10, handle 4
2024-10-05T20:25:55.6349515+03:00 [INFO] Destroying buffer 0x1e2bf7cd510, handle 5
2024-10-05T20:25:55.6349917+03:00 [INFO] Destroying buffer 0x1e2bf7cd810, handle 11
2024-10-05T20:25:55.6350322+03:00 [INFO] Destroying buffer 0x1e2befeac50, handle 7
2024-10-05T20:25:55.6350723+03:00 [INFO] Destroying buffer 0x1e2bf7cd210, handle 12
2024-10-05T20:25:55.6351156+03:00 [INFO] Destroying buffer 0x1e2f7abcbe0, handle 10
2024-10-05T20:25:55.6351558+03:00 [INFO] Destroying buffer 0x1e2bf7cd290, handle 13
2024-10-05T20:25:55.6351963+03:00 [INFO] Destroying buffer 0x1e2b6575510, handle 2
2024-10-05T20:25:55.6352371+03:00 [INFO] Destroying buffer 0x1e2befeacd0, handle 8
2024-10-05T20:25:55.6352772+03:00 [INFO] Destroying buffer 0x1e2befeb050, handle 9
2024-10-05T20:25:55.6353178+03:00 [INFO] Destroying buffer 0x1e2f86a8b50, handle 17
2024-10-05T20:25:56.1133485+03:00 [INFO] ========== starting zed ==========
2024-10-05T20:25:56.2004195+03:00 [INFO] Use Segoe UI as UI font.
2024-10-05T20:25:56.2015335+03:00 [INFO] Opening main db
2024-10-05T20:25:56.2067778+03:00 [INFO] Opening main db
2024-10-05T20:25:56.2112016+03:00 [INFO] Using git binary path: None
2024-10-05T20:25:56.2118871+03:00 [ERROR] SHELL environment variable is not assigned so we can't source login environment variables

Caused by:
    environment variable not found
2024-10-05T20:25:56.2370756+03:00 [INFO] initializing context server client
2024-10-05T20:25:56.2372128+03:00 [INFO] Registering built-in prompt template: content_prompt
2024-10-05T20:25:56.2375916+03:00 [INFO] Registering built-in prompt template: edit_workflow
2024-10-05T20:25:56.2377889+03:00 [INFO] Registering built-in prompt template: project_slash_command
2024-10-05T20:25:56.2378429+03:00 [INFO] Registering built-in prompt template: step_resolution
2024-10-05T20:25:56.2381791+03:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-10-05T20:25:56.2384943+03:00 [INFO] No prompt template overrides directory found at C:\Users\taima\AppData\Local\Zed\prompt_overrides. Using built-in prompts.
2024-10-05T20:25:56.2388434+03:00 [INFO] extensions updated. loading 11, reloading 0, unloading 0
2024-10-05T20:25:56.2568048+03:00 [INFO] Opening main db
2024-10-05T20:25:56.2583414+03:00 [INFO] set status on client 0: Authenticating
2024-10-05T20:25:56.2585775+03:00 [INFO] set status on client 118327: Connecting
2024-10-05T20:25:56.2593484+03:00 [ERROR] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
2024-10-05T20:25:56.2711536+03:00 [INFO] building git repository, `.git` path in the worktree: ".git"
2024-10-05T20:25:56.27817+03:00 [INFO] Enabling Vulkan Portability
2024-10-05T20:25:56.2782182+03:00 [INFO] Enabling color space support
2024-10-05T20:25:56.3195019+03:00 [INFO] Adapter: "AMD Radeon RX 5600 XT"
2024-10-05T20:25:56.3196672+03:00 [INFO] No ray tracing extensions are supported
2024-10-05T20:25:56.3257636+03:00 [WARN] Requested size 1x1 is outside of surface capabilities
2024-10-05T20:25:56.3258225+03:00 [ERROR] No composite alpha flag for transparency: OPAQUE
2024-10-05T20:25:56.3258715+03:00 [INFO] Using surface present mode FIFO_RELAXED
2024-10-05T20:25:56.394196+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-10-05T20:25:56.3948905+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-10-05T20:25:56.3949479+03:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-10-05T20:25:56.3969721+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.3973739+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.3978724+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.3983035+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.3988144+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.3990772+03:00 [INFO] Skip function Some("to_device_position_impl")
2024-10-05T20:25:56.3991265+03:00 [INFO] Skip function Some("to_device_position")
2024-10-05T20:25:56.3991765+03:00 [INFO] Skip function Some("to_device_position_transformed")
2024-10-05T20:25:56.3992226+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.3993167+03:00 [INFO] Skip function Some("blend_color")
2024-10-05T20:25:56.3997262+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.4000342+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.4003602+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.4009705+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.4015031+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.4018335+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.4020338+03:00 [INFO] Skip function Some("to_device_position_impl")
2024-10-05T20:25:56.4020813+03:00 [INFO] Skip function Some("to_device_position")
2024-10-05T20:25:56.4021334+03:00 [INFO] Skip function Some("to_device_position_transformed")
2024-10-05T20:25:56.4021821+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.4022786+03:00 [INFO] Skip function Some("blend_color")
2024-10-05T20:25:56.4058038+03:00 [ERROR] No composite alpha flag for transparency: OPAQUE
2024-10-05T20:25:56.4058546+03:00 [INFO] Using surface present mode FIFO_RELAXED
2024-10-05T20:25:56.4818289+03:00 [ERROR] No composite alpha flag for transparency: OPAQUE
2024-10-05T20:25:56.4818806+03:00 [INFO] Using surface present mode FIFO_RELAXED
2024-10-05T20:25:56.5444009+03:00 [INFO] Using surface present mode FIFO_RELAXED
2024-10-05T20:25:56.5986232+03:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-10-05T20:25:56.5998041+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6000148+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6002905+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6004737+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6006967+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6008605+03:00 [INFO] Skip function Some("to_device_position_impl")
2024-10-05T20:25:56.6009035+03:00 [INFO] Skip function Some("to_device_position")
2024-10-05T20:25:56.6009458+03:00 [INFO] Skip function Some("to_device_position_transformed")
2024-10-05T20:25:56.6009881+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6010755+03:00 [INFO] Skip function Some("blend_color")
2024-10-05T20:25:56.6013708+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6015747+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6017466+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6021208+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6024618+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6026915+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6028601+03:00 [INFO] Skip function Some("to_device_position_impl")
2024-10-05T20:25:56.6029043+03:00 [INFO] Skip function Some("to_device_position")
2024-10-05T20:25:56.6029474+03:00 [INFO] Skip function Some("to_device_position_transformed")
2024-10-05T20:25:56.6029907+03:00 [INFO] Skip function Some("to_tile_position")
2024-10-05T20:25:56.6030787+03:00 [INFO] Skip function Some("blend_color")
2024-10-05T20:25:56.6037727+03:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "AMD Radeon RX 5600 XT", driver_name: "AMD proprietary driver", driver_info: "24.5.1 (AMD proprietary shader compiler)" }
2024-10-05T20:25:56.6235409+03:00 [INFO] Using surface present mode FIFO_RELAXED
2024-10-05T20:25:56.6917743+03:00 [INFO] Creating texture 0x229d07e0480 of size 1024x1024x1 and format R8Unorm, name 'atlas', handle 0
2024-10-05T20:25:56.6925949+03:00 [INFO] Creating buffer 0x229e24c83d0 of size 65536, name 'chunk-0', handle 1
2024-10-05T20:25:56.7000775+03:00 [INFO] Creating buffer 0x2298ceb4d60 of size 4096, name 'chunk-0', handle 2
2024-10-05T20:25:56.7088555+03:00 [INFO] Opening main db
2024-10-05T20:25:56.7140215+03:00 [INFO] Creating buffer 0x229e234f530 of size 4096, name 'chunk-1', handle 3
2024-10-05T20:25:56.714832+03:00 [INFO] Creating buffer 0x229e234f5b0 of size 4096, name 'chunk-2', handle 4
2024-10-05T20:25:56.714897+03:00 [INFO] Creating buffer 0x229e234f430 of size 4096, name 'chunk-3', handle 5
2024-10-05T20:25:56.7155081+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:56.716011+03:00 [INFO] Opening main db
2024-10-05T20:25:56.7211139+03:00 [INFO] Using Windows API for pseudoconsole
2024-10-05T20:25:56.7788668+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:56.8150893+03:00 [INFO] Creating buffer 0x229d02d0fc0 of size 4928, name 'chunk-4', handle 6
2024-10-05T20:25:56.8151604+03:00 [INFO] Creating buffer 0x229d02d1c40 of size 56336, name 'chunk-5', handle 7
2024-10-05T20:25:56.8172961+03:00 [INFO] attempting to start language server "yaml-language-server", path: "G:\\CodeProjects\\PycharmProjects\\AutoAnswer", id: 1
2024-10-05T20:25:56.81747+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:56.8175939+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:56.8176579+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:56.820382+03:00 [INFO] fetching latest version of language server "yaml-language-server"
2024-10-05T20:25:56.8739693+03:00 [INFO] Creating buffer 0x229cfb2e340 of size 56336, name 'chunk-6', handle 8
2024-10-05T20:25:56.8742548+03:00 [INFO] Creating buffer 0x229cfb2db40 of size 9856, name 'chunk-7', handle 9
2024-10-05T20:25:56.8743237+03:00 [INFO] Creating buffer 0x229cfb2de40 of size 56336, name 'chunk-8', handle 10
2024-10-05T20:25:56.9841647+03:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-10-05T20:25:57.0135262+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:57.013605+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:57.0467185+03:00 [INFO] Creating buffer 0x22a7000a850 of size 65536, name 'chunk-1', handle 11
2024-10-05T20:25:57.0817687+03:00 [INFO] Creating buffer 0x229d09f3ea0 of size 65536, name 'chunk-2', handle 12
2024-10-05T20:25:57.0968312+03:00 [INFO] Creating buffer 0x229d09f4120 of size 57904, name 'chunk-9', handle 13
2024-10-05T20:25:57.2015385+03:00 [WARN] unhandled message: Metadata(SupermavenMetadataMessage { dust_strings: None })
2024-10-05T20:25:57.2790798+03:00 [INFO] Creating texture 0x22a7065ffe0 of size 1024x1024x1 and format Bgra8UnormSrgb, name 'atlas', handle 14
2024-10-05T20:25:57.2814987+03:00 [INFO] Creating buffer 0x22a7020ee50 of size 64848, name 'chunk-10', handle 15
2024-10-05T20:25:57.3266666+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:57.3267386+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:57.3277262+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:25:57.3284758+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:25:57.3285624+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:25:57.328627+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:25:57.5660835+03:00 [INFO] add connection to peer
2024-10-05T20:25:57.5661381+03:00 [INFO] add_connection;
2024-10-05T20:25:57.5661988+03:00 [INFO] waiting for server hello
2024-10-05T20:25:57.5663326+03:00 [INFO] got server hello
2024-10-05T20:25:57.5663786+03:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 545, id: 9365100 })
2024-10-05T20:25:57.5664529+03:00 [INFO] set status on client 118327: Connected { peer_id: PeerId { owner_id: 545, id: 9365100 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-10-05T20:25:57.6585031+03:00 [INFO] Creating buffer 0x2298d263430 of size 65520, name 'chunk-11', handle 16
2024-10-05T20:25:57.8170585+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:57.8171413+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:57.8180953+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:25:57.8182121+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:25:57.8182727+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:25:57.8314196+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:57.8315047+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:57.8322498+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:25:57.8323267+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:25:57.8323941+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:25:58.0033611+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:58.0034516+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:58.0088048+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:25:58.0088961+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:25:58.0089655+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:25:58.0371354+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:58.0372132+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:58.0423459+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:58.0424229+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:25:58.0430023+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:25:58.0430992+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:25:58.043163+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:25:58.0436131+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:25:58.0437117+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:25:58.0437851+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:25:58.2111932+03:00 [ERROR] failed to fetch cached embeddings via cloud model

Caused by:
    RPC request GetCachedEmbeddings failed: permission denied
2024-10-05T20:25:58.8983144+03:00 [ERROR] missing executable in directory "C:\\Users\\taima\\AppData\\Local\\Zed\\languages\\yaml-language-server\\node_modules"
2024-10-05T20:25:58.8983954+03:00 [ERROR] Failed to start language server "yaml-language-server": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"E407\",\n    \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/yaml-language-server\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/yaml-language-server\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-05T17_25_58_401Z-debug-0.log\n"
2024-10-05T20:25:58.8984367+03:00 [ERROR] server stderr: ""
2024-10-05T20:26:00.5764598+03:00 [INFO] Creating buffer 0x229e20829b0 of size 65520, name 'chunk-12', handle 17
2024-10-05T20:26:02.1762704+03:00 [WARN] unhandled message: ActiveRepo(SupermavenActiveRepoMessage { repo_simple_name: Some("AutoAnswer") })
2024-10-05T20:26:02.1763454+03:00 [WARN] unhandled message: TaskStatus(SupermavenTaskUpdateMessage { task: "Adapting to 'AutoAnswer'", status: Complete, percent_complete: None })
2024-10-05T20:26:12.2991299+03:00 [INFO] Creating buffer 0x22e7945c440 of size 66528, name 'chunk-13', handle 18
2024-10-05T20:26:14.1149259+03:00 [INFO] Creating buffer 0x22a705ee430 of size 70784, name 'chunk-14', handle 19
2024-10-05T20:26:14.1153498+03:00 [INFO] Creating buffer 0x22a705eea30 of size 70784, name 'chunk-15', handle 20
2024-10-05T20:26:14.3563569+03:00 [INFO] Creating buffer 0x22e7945c740 of size 73136, name 'chunk-16', handle 21
2024-10-05T20:26:14.3608049+03:00 [INFO] Creating buffer 0x22e7945cf40 of size 73136, name 'chunk-17', handle 22
2024-10-05T20:26:14.8140473+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:26:14.8152837+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:26:14.8153628+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:26:17.593915+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:26:17.5964608+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:26:17.8565554+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:26:17.8576308+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:26:17.8577097+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:26:18.6935306+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:26:18.7177429+03:00 [INFO] Creating buffer 0x22a70dcf060 of size 98000, name 'chunk-18', handle 23
2024-10-05T20:26:18.7180581+03:00 [INFO] Creating buffer 0x22a70dcf3e0 of size 98000, name 'chunk-19', handle 24
2024-10-05T20:26:18.9499859+03:00 [INFO] Creating buffer 0x22a70b14a00 of size 99232, name 'chunk-20', handle 25
2024-10-05T20:26:20.499912+03:00 [INFO] Creating buffer 0x22a70223e50 of size 99680, name 'chunk-21', handle 26
2024-10-05T20:26:20.5098999+03:00 [INFO] Creating buffer 0x22a702234d0 of size 99680, name 'chunk-22', handle 27
2024-10-05T20:26:20.5415871+03:00 [INFO] Creating buffer 0x22a70dcf8e0 of size 100352, name 'chunk-23', handle 28
2024-10-05T20:26:21.1381427+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:26:21.1404133+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:26:21.1404898+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:26:22.7420379+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:26:23.9547581+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:26:23.9560657+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:26:24.2122375+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:26:24.2132924+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disable_reason", value: String(".gitignore") })
2024-10-05T20:26:24.2133873+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(true) })
2024-10-05T20:26:24.7670337+03:00 [INFO] Initializing default prettier with plugins {}
2024-10-05T20:27:10.2816906+03:00 [ERROR] connection error: delay between messages too long
2024-10-05T20:27:10.2817701+03:00 [INFO] set status on client 118327: ConnectionLost
2024-10-05T20:27:10.2819724+03:00 [INFO] set status on client 118327: Reauthenticating
2024-10-05T20:27:10.2820162+03:00 [INFO] set status on client 118327: Reconnecting
2024-10-05T20:27:11.0658366+03:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-10-05T20:27:11.7589907+03:00 [INFO] add connection to peer
2024-10-05T20:27:11.7590357+03:00 [INFO] add_connection;
2024-10-05T20:27:11.759101+03:00 [INFO] waiting for server hello
2024-10-05T20:27:11.7592265+03:00 [INFO] got server hello
2024-10-05T20:27:11.7592905+03:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 1 }, peer id: PeerId { owner_id: 545, id: 9365989 })
2024-10-05T20:27:11.7593857+03:00 [INFO] set status on client 118327: Connected { peer_id: PeerId { owner_id: 545, id: 9365989 }, connection_id: ConnectionId { owner_id: 0, id: 1 } }
2024-10-05T20:27:34.2862636+03:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-10-05T20:27:35.4504029+03:00 [WARN] unhandled message: TaskStatus(SupermavenTaskUpdateMessage { task: "Initializing", status: Complete, percent_complete: None })
2024-10-05T20:27:35.4504834+03:00 [WARN] unhandled message: ActiveRepo(SupermavenActiveRepoMessage { repo_simple_name: None })
2024-10-05T20:27:48.6461078+03:00 [INFO] Creating texture 0x2367dd766e0 of size 1024x1024x1 and format R16Float, name 'atlas', handle 29
2024-10-05T20:27:48.6463518+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-10-05T20:27:48.6510231+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-10-05T20:27:48.6578257+03:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-10-05T20:27:48.6652053+03:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-10-05T20:27:48.7251445+03:00 [INFO] Creating texture 0x2367dd740c0 of size 1328x1024x1 and format R16Float, name 'atlas', handle 30
2024-10-05T20:27:48.797874+03:00 [INFO] Creating texture 0x2367dd7d940 of size 1342x1024x1 and format R16Float, name 'atlas', handle 31

JunkuiZhang commented 1 month ago

When implementing the proxy setting, I didn’t have the chance to test the format http://user:password@domain_proxy:port, as I don’t have such a network environment. Some people on GitHub have reported issues with npm’s proxy settings when usernames or passwords contain special characters (e.g., !). Dose your username or password contain any special characters?

Reference: https://github.com/npm/npm/issues/14421#issuecomment-402897602

taimast commented 1 month ago

When implementing the proxy setting, I didn’t have the chance to test the format http://user:password@domain_proxy:port, as I don’t have such a network environment. Some people on GitHub have reported issues with npm’s proxy settings when usernames or passwords contain special characters (e.g., !). Dose your username or password contain any special characters?

Reference: npm/npm#14421 (comment)

No, just letters and numbers

JunkuiZhang commented 1 month ago

Dose the built-in Rust extension work for you? And can you log-in with this proxy?

notpeter commented 1 month ago

I noticed that the yaml-language-server in particular seems to have it's own setting for http.proxy.

Can you try passing your proxy as an explicit workspace setting to yaml-language-server and see if it helps (untested):

  "lsp": {
     "yaml-language-server":
       "settings": {
         "http": {
           "proxy": "http://whatever"
         }
       }
     }
   }

Are there other language servers which are also failing?

JunkuiZhang commented 1 month ago

@taimast Could you please try out this PR #19025? A previous commit caused the node proxy settings to stop working. If your issue is still not resolved, we may need to handle the user:pwd@ip:port format specially.

taimast commented 1 month ago

I noticed that the yaml-language-server in particular seems to have it's own setting for http.proxy.

Can you try passing your proxy as an explicit workspace setting to yaml-language-server and see if it helps (untested):

  "lsp": {
     "yaml-language-server":
       "settings": {
         "http": {
           "proxy": "http://whatever"
         }
       }
     }
   }

Are there other language servers which are also failing?

After that, the error continued anyway

There were no such errors with other language servers

taimast commented 1 month ago

@taimast Could you please try out this PR #19025? A previous commit caused the node proxy settings to stop working. If your issue is still not resolved, we may need to handle the user:pwd@ip:port format specially.

Yes, it helped

This revert #18892 also solved the problem

JunkuiZhang commented 1 month ago

@taimast If I understand you correctly, the current main branch works for you?

taimast commented 1 month ago

@JunkuiZhang It seems I was in a hurry, no, the problem has not been solved yet, this time I get an error with the json language server

Language server error: json-language-server

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"E407\",\n    \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-13T01_15_56_494Z-debug-0.log\n"
-- stderr--
JunkuiZhang commented 2 weeks ago

@JunkuiZhang It seems I was in a hurry, no, the problem has not been solved yet, this time I get an error with the json language server

Language server error: json-language-server

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"E407\",\n    \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-13T01_15_56_494Z-debug-0.log\n"
-- stderr--

Dose the current main branch work for you? The http_client thing has been refactored, it works fine on my end now.

taimast commented 1 week ago

@JunkuiZhang It seems I was in a hurry, no, the problem has not been solved yet, this time I get an error with the json language server

Language server error: json-language-server

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"E407\",\n    \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-13T01_15_56_494Z-debug-0.log\n"
-- stderr--

Dose the current main branch work for you? The http_client thing has been refactored, it works fine on my end now.

Last main branch version. Still get this errors for json, yml, etc

Zed: v0.161.0 (Zed Dev 50069a215376eb369554eefc0875719949309b38)
OS: Windows 10.0.22631
Memory: 63.2 GiB
Architecture: x86_64
GPU: AMD Radeon RX 5600 XT || AMD proprietary driver || 24.10.27.01 (AMD proprietary shader compiler)
Language server error: json-language-server

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"E407\",\n    \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-11-06T02_34_02_512Z-debug-0.log\n"
-- stderr--