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
46.88k stars 2.69k forks source link

Zscaler support #4350

Open padrepitufo opened 10 months ago

padrepitufo commented 10 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Receiving the following error (with some redactions):


Language server error: YAML

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-debug-0.log\n"

the log contents were (with redacted)


0 verbose cli /Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node /Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/npm
1 info using npm@9.5.0
2 info using node@v18.15.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 0ms
5 timing config:load:file:/Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 0ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/Users/<redacted-a>/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 0ms
16 timing config:load Completed in 2ms
17 timing npm:load:configload Completed in 2ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 1ms
20 verbose title npm info yaml-language-server
21 verbose argv "info" "yaml-language-server" "--json" "-fetch-retry-mintimeout" "2000" "-fetch-retry-maxtimeout" "5000" "-fetch-timeout" "5000"
22 timing npm:load:setTitle Completed in 5ms
23 timing config:load:flatten Completed in 1ms
24 timing npm:load:display Completed in 1ms
25 verbose logfile logs-max:10 dir:/Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-
0 verbose cli /Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node /Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/npm
1 info using npm@9.5.0
2 info using node@v18.15.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 0ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/.npmrc Completed in 0ms
10 timing config:load:project Completed in 0ms
11 timing config:load:file:/Users/<redacted-a>/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 0ms
16 timing config:load Completed in 3ms
17 timing npm:load:configload Completed in 3ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm info pyright
21 verbose argv "info" "pyright" "--json" "-fetch-retry-mintimeout" "2000" "-fetch-retry-maxtimeout" "5000" "-fetch-timeout" "5000"
22 timing npm:load:setTitle Completed in 6ms
23 timing config:load:flatten Completed in 1ms
24 timing npm:load:display Completed in 1ms
25 verbose logfile logs-max:10 dir:/Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-
26 verbose logfile /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-debug-0.log
27 timing npm:load:logFile Completed in 2ms
28 timing npm:load:timers Completed in 1ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 13ms
26 verbose logfile /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-debug-0.log
27 timing npm:load:logFile Completed in 2ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 14ms
31 silly logfile start cleaning logs, removing 3 files
31 silly logfile start cleaning logs, removing 3 files
32 silly logfile done cleaning log files
32 silly logfile done cleaning log files
33 timing command:info Completed in 7211ms
33 timing command:info Completed in 7211ms
34 verbose type system
34 verbose type system
35 verbose stack FetchError: request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate
35 verbose stack     at ClientRequest.<anonymous> (/Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
35 verbose stack     at ClientRequest.emit (node:events:513:28)
35 verbose stack     at TLSSocket.socketErrorListener (node:_http_client:502:9)
35 verbose stack     at TLSSocket.emit (node:events:525:35)
35 verbose stack     at emitErrorNT (node:internal/streams/destroy:151:8)
35 verbose stack     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
35 verbose stack     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
36 verbose cwd /
35 verbose stack FetchError: request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate
35 verbose stack     at ClientRequest.<anonymous> (/Users/<redacted-a>/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
35 verbose stack     at ClientRequest.emit (node:events:513:28)
35 verbose stack     at TLSSocket.socketErrorListener (node:_http_client:502:9)
35 verbose stack     at TLSSocket.emit (node:events:525:35)
35 verbose stack     at emitErrorNT (node:internal/streams/destroy:151:8)
35 verbose stack     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
35 verbose stack     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
37 verbose Darwin 23.0.0
36 verbose cwd /
38 verbose node v18.15.0
39 verbose npm  v9.5.0
37 verbose Darwin 23.0.0
40 error code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
38 verbose node v18.15.0
39 verbose npm  v9.5.0
40 error code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
41 error errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
41 error errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
42 error request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate
42 error request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate
43 verbose exit 1
43 verbose exit 1
44 timing npm Completed in 7237ms
44 timing npm Completed in 7237ms
45 verbose code 1
45 verbose code 1
46 error A complete log of this run can be found in:
46 error     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-debug-0.log
46 error A complete log of this run can be found in:
46 error     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-debug-0.log

Environment

TLDR

Complete ( ran: system_profiler SPHardwareDataType | pbcopy )

Hardware:

Hardware Overview:

  Model Name: MacBook Pro
  Model Identifier: Mac14,10
  Model Number: <REDACTED>
  Chip: Apple M2 Pro
  Total Number of Cores: 12 (8 performance and 4 efficiency)
  Memory: 32 GB
  System Firmware Version: 10151.1.1
  OS Loader Version: 10151.1.1
  Serial Number (system): <REDACTED>
  Hardware UUID: <REDACTED>
  Provisioning UDID: <REDACTED>
  Activation Lock Status: Disabled

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

image

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

cat ~/Library/Logs/Zed/Zed.log
2023-11-15T17:56:05 [INFO] ========== starting zed ==========
2023-11-15T17:56:05 [INFO] Opening main db
2023-11-15T17:56:05 [INFO] set environment variables from shell:/bin/zsh, path:/Users/<redacted-a>/google-cloud-sdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/opt/libpq/bin:/Users/<redacted-a>/.local/bin:/Users/<redacted-a>/.pyenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
2023-11-15T17:56:05 [ERROR] crates/settings/src/settings_file.rs:90: EOF while parsing a value at line 1 column 0
2023-11-15T17:56:05 [INFO] Opening main db
2023-11-15T17:56:06 [INFO] Node runtime install_if_needed
2023-11-15T17:56:22 [INFO] build git repository ".git"
2023-11-15T17:56:25 [INFO] Opening main db
2023-11-15T17:57:15 [INFO] Opening main db
2023-11-15T17:57:19 [ERROR] crates/terminal_view/src/terminal_view.rs:365: window was removed
2023-11-15T17:57:25 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 1
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [ERROR] failed to start language server "yaml-language-server": failed to launch npm subcommand info subcommand
2023-11-15T17:57:25 [ERROR] server stderr: Some("")
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [INFO] About to spawn test binary
2023-11-15T17:57:25 [WARN] test binary failed to launch
2023-11-15T17:57:25 [WARN] test binary check failed
2023-11-15T17:57:25 [INFO] beginning to reinstall server
2023-11-15T17:57:25 [INFO] deleting server container
2023-11-15T17:57:25 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 2
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [ERROR] failed to start language server "yaml-language-server": failed to launch npm subcommand info subcommand
2023-11-15T17:57:25 [ERROR] server stderr: Some("")
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [INFO] About to spawn test binary
2023-11-15T17:57:25 [WARN] test binary failed to launch
2023-11-15T17:57:25 [WARN] test binary check failed
2023-11-15T17:57:25 [INFO] beginning to reinstall server
2023-11-15T17:57:25 [INFO] deleting server container
2023-11-15T17:57:25 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 3
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [ERROR] failed to start language server "yaml-language-server": failed to launch npm subcommand info subcommand
2023-11-15T17:57:25 [ERROR] server stderr: Some("")
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [INFO] About to spawn test binary
2023-11-15T17:57:25 [WARN] test binary failed to launch
2023-11-15T17:57:25 [WARN] test binary check failed
2023-11-15T17:57:25 [INFO] beginning to reinstall server
2023-11-15T17:57:25 [INFO] deleting server container
2023-11-15T17:57:25 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 4
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [ERROR] failed to start language server "yaml-language-server": failed to launch npm subcommand info subcommand
2023-11-15T17:57:25 [ERROR] server stderr: Some("")
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [INFO] About to spawn test binary
2023-11-15T17:57:25 [WARN] test binary failed to launch
2023-11-15T17:57:25 [WARN] test binary check failed
2023-11-15T17:57:25 [INFO] beginning to reinstall server
2023-11-15T17:57:25 [INFO] deleting server container
2023-11-15T17:57:25 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 5
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [INFO] Node runtime install_if_needed
2023-11-15T17:57:25 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T17:57:25 [ERROR] failed to start language server "yaml-language-server": failed to launch npm subcommand info subcommand
2023-11-15T17:57:25 [ERROR] server stderr: Some("")
2023-11-15T17:57:25 [ERROR] Hit 4 max reinstallation attempts for "yaml-language-server"
2023-11-15T17:57:42 [INFO] build git repository ".git"
2023-11-15T17:57:57 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 6
2023-11-15T17:57:57 [INFO] Node runtime install_if_needed
2023-11-15T17:58:04 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:04 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T17_57_57_764Z-debug-0.log\n"
2023-11-15T17:58:04 [ERROR] server stderr: Some("")
2023-11-15T17:58:04 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:04 [INFO] About to spawn test binary
2023-11-15T17:58:04 [WARN] test binary failed to launch
2023-11-15T17:58:04 [WARN] test binary check failed
2023-11-15T17:58:04 [INFO] beginning to reinstall server
2023-11-15T17:58:04 [INFO] deleting server container
2023-11-15T17:58:04 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 7
2023-11-15T17:58:04 [INFO] Node runtime install_if_needed
2023-11-15T17:58:12 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:12 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T17_58_05_355Z-debug-0.log\n"
2023-11-15T17:58:12 [ERROR] server stderr: Some("")
2023-11-15T17:58:12 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:12 [INFO] About to spawn test binary
2023-11-15T17:58:12 [WARN] test binary failed to launch
2023-11-15T17:58:12 [WARN] test binary check failed
2023-11-15T17:58:12 [INFO] beginning to reinstall server
2023-11-15T17:58:12 [INFO] deleting server container
2023-11-15T17:58:12 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 8
2023-11-15T17:58:12 [INFO] Node runtime install_if_needed
2023-11-15T17:58:20 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:20 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T17_58_12_940Z-debug-0.log\n"
2023-11-15T17:58:20 [ERROR] server stderr: Some("")
2023-11-15T17:58:20 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:20 [INFO] About to spawn test binary
2023-11-15T17:58:20 [WARN] test binary failed to launch
2023-11-15T17:58:20 [WARN] test binary check failed
2023-11-15T17:58:20 [INFO] beginning to reinstall server
2023-11-15T17:58:20 [INFO] deleting server container
2023-11-15T17:58:20 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 9
2023-11-15T17:58:20 [INFO] Node runtime install_if_needed
2023-11-15T17:58:27 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:27 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T17_58_20_557Z-debug-0.log\n"
2023-11-15T17:58:27 [ERROR] server stderr: Some("")
2023-11-15T17:58:27 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:27 [INFO] About to spawn test binary
2023-11-15T17:58:27 [WARN] test binary failed to launch
2023-11-15T17:58:27 [WARN] test binary check failed
2023-11-15T17:58:27 [INFO] beginning to reinstall server
2023-11-15T17:58:27 [INFO] deleting server container
2023-11-15T17:58:27 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 10
2023-11-15T17:58:27 [INFO] Node runtime install_if_needed
2023-11-15T17:58:35 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T17:58:35 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T17_58_28_122Z-debug-0.log\n"
2023-11-15T17:58:35 [ERROR] server stderr: Some("")
2023-11-15T17:58:35 [ERROR] Hit 4 max reinstallation attempts for "pyright"
2023-11-15T18:00:15 [INFO] set status on client 0: Authenticating
2023-11-15T18:00:22 [INFO] set status on client 85064: Connecting
2023-11-15T18:00:22 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-11-15T18:00:23 [WARN] Sending fatal alert BadCertificate
2023-11-15T18:00:23 [INFO] set status on client 85064: ConnectionError
2023-11-15T18:00:23 [ERROR] crates/collab_ui/src/collab_titlebar_item.rs:864: IO error: invalid certificate: UnknownIssuer: IO error: invalid certificate: UnknownIssuer: invalid certificate: UnknownIssuer
2023-11-15T18:00:32 [INFO] set status on client 85064: Reauthenticating
2023-11-15T18:00:35 [INFO] set status on client 85064: Reconnecting
2023-11-15T18:00:35 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-11-15T18:00:35 [WARN] Sending fatal alert BadCertificate
2023-11-15T18:00:35 [INFO] set status on client 85064: ConnectionError
2023-11-15T18:00:35 [ERROR] crates/collab_ui/src/collab_titlebar_item.rs:864: IO error: invalid certificate: UnknownIssuer: IO error: invalid certificate: UnknownIssuer: invalid certificate: UnknownIssuer
2023-11-15T18:01:38 [INFO] ========== starting zed ==========
2023-11-15T18:01:38 [INFO] Opening main db
2023-11-15T18:01:38 [INFO] set environment variables from shell:/bin/zsh, path:/Users/<redacted-a>/google-cloud-sdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/opt/libpq/bin:/Users/<redacted-a>/.local/bin:/Users/<redacted-a>/.pyenv/shims:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
2023-11-15T18:01:38 [ERROR] crates/settings/src/settings_file.rs:90: EOF while parsing a value at line 1 column 0
2023-11-15T18:01:38 [INFO] Opening main db
2023-11-15T18:01:38 [INFO] build git repository ".git"
2023-11-15T18:01:38 [INFO] Opening main db
2023-11-15T18:01:38 [INFO] Opening main db
2023-11-15T18:01:38 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 1
2023-11-15T18:01:38 [INFO] Node runtime install_if_needed
2023-11-15T18:01:38 [INFO] Node runtime install_if_needed
2023-11-15T18:01:38 [ERROR] crates/workspace/src/persistence/model.rs:260: No path stored for this editor
2023-11-15T18:01:38 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 2
2023-11-15T18:01:38 [ERROR] crates/workspace/src/persistence/model.rs:260: No path stored for this editor
2023-11-15T18:01:38 [INFO] Node runtime install_if_needed
2023-11-15T18:01:38 [INFO] Node runtime install_if_needed
2023-11-15T18:01:39 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2023-11-15T18:01:39.460Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2023-11-15T18:01:39.460Z]",
  "extra": [
    "Agent service starting"
  ]
}
2023-11-15T18:01:39 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "2862041b-332c-4255-8aa1-38b3c529e680",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2023-11-15T18:01:39 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2023-11-15T18:01:39.468Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2023-11-15T18:01:39.468Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2023-11-15T18:01:42 [INFO] set status on client 0: Authenticating
2023-11-15T18:01:44 [INFO] set status on client 85064: Connecting
2023-11-15T18:01:44 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-11-15T18:01:44 [WARN] Sending fatal alert BadCertificate
2023-11-15T18:01:44 [INFO] set status on client 85064: ConnectionError
2023-11-15T18:01:44 [ERROR] crates/collab_ui/src/collab_titlebar_item.rs:864: IO error: invalid certificate: UnknownIssuer: IO error: invalid certificate: UnknownIssuer: invalid certificate: UnknownIssuer
2023-11-15T18:01:46 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:01:46 [ERROR] failed to start language server "yaml-language-server": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_01_39_438Z-debug-0.log\n"
2023-11-15T18:01:46 [ERROR] server stderr: Some("")
2023-11-15T18:01:46 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:01:46 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:01:46 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_01_39_437Z-debug-0.log\n"
2023-11-15T18:01:46 [ERROR] server stderr: Some("")
2023-11-15T18:01:46 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:01:46 [INFO] About to spawn test binary
2023-11-15T18:01:46 [WARN] test binary failed to launch
2023-11-15T18:01:46 [WARN] test binary check failed
2023-11-15T18:01:46 [INFO] beginning to reinstall server
2023-11-15T18:01:46 [INFO] About to spawn test binary
2023-11-15T18:01:46 [WARN] test binary failed to launch
2023-11-15T18:01:46 [WARN] test binary check failed
2023-11-15T18:01:46 [INFO] beginning to reinstall server
2023-11-15T18:01:46 [INFO] deleting server container
2023-11-15T18:01:46 [INFO] deleting server container
2023-11-15T18:01:46 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 3
2023-11-15T18:01:46 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 4
2023-11-15T18:01:46 [INFO] Node runtime install_if_needed
2023-11-15T18:01:46 [INFO] Node runtime install_if_needed
2023-11-15T18:01:54 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:01:54 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:01:54 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_01_47_115Z-debug-0.log\n"
2023-11-15T18:01:54 [ERROR] server stderr: Some("")
2023-11-15T18:01:54 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:01:54 [INFO] About to spawn test binary
2023-11-15T18:01:54 [WARN] test binary failed to launch
2023-11-15T18:01:54 [WARN] test binary check failed
2023-11-15T18:01:54 [INFO] beginning to reinstall server
2023-11-15T18:01:54 [ERROR] failed to start language server "yaml-language-server": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_01_47_115Z-debug-0.log\n"
2023-11-15T18:01:54 [ERROR] server stderr: Some("")
2023-11-15T18:01:54 [INFO] deleting server container
2023-11-15T18:01:54 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:01:54 [INFO] About to spawn test binary
2023-11-15T18:01:54 [WARN] test binary failed to launch
2023-11-15T18:01:54 [WARN] test binary check failed
2023-11-15T18:01:54 [INFO] beginning to reinstall server
2023-11-15T18:01:54 [INFO] deleting server container
2023-11-15T18:01:54 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 5
2023-11-15T18:01:54 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 6
2023-11-15T18:01:54 [INFO] Node runtime install_if_needed
2023-11-15T18:01:54 [INFO] Node runtime install_if_needed
2023-11-15T18:02:01 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:02:01 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_01_54_743Z-debug-0.log\n"
2023-11-15T18:02:01 [ERROR] server stderr: Some("")
2023-11-15T18:02:01 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:02:01 [INFO] About to spawn test binary
2023-11-15T18:02:01 [WARN] test binary failed to launch
2023-11-15T18:02:01 [WARN] test binary check failed
2023-11-15T18:02:01 [INFO] beginning to reinstall server
2023-11-15T18:02:01 [INFO] deleting server container
2023-11-15T18:02:01 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:02:01 [ERROR] failed to start language server "yaml-language-server": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_01_54_743Z-debug-0.log\n"
2023-11-15T18:02:01 [ERROR] server stderr: Some("")
2023-11-15T18:02:01 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 7
2023-11-15T18:02:01 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:02:01 [INFO] About to spawn test binary
2023-11-15T18:02:01 [WARN] test binary failed to launch
2023-11-15T18:02:01 [WARN] test binary check failed
2023-11-15T18:02:01 [INFO] beginning to reinstall server
2023-11-15T18:02:01 [INFO] Node runtime install_if_needed
2023-11-15T18:02:01 [INFO] deleting server container
2023-11-15T18:02:02 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 8
2023-11-15T18:02:02 [INFO] Node runtime install_if_needed
2023-11-15T18:02:09 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:02:09 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_02_428Z-debug-0.log\n"
2023-11-15T18:02:09 [ERROR] server stderr: Some("")
2023-11-15T18:02:09 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:02:09 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:02:09 [INFO] About to spawn test binary
2023-11-15T18:02:09 [WARN] test binary failed to launch
2023-11-15T18:02:09 [WARN] test binary check failed
2023-11-15T18:02:09 [INFO] beginning to reinstall server
2023-11-15T18:02:09 [INFO] deleting server container
2023-11-15T18:02:09 [ERROR] failed to start language server "yaml-language-server": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_02_427Z-debug-0.log\n"
2023-11-15T18:02:09 [ERROR] server stderr: Some("")
2023-11-15T18:02:09 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:02:09 [INFO] About to spawn test binary
2023-11-15T18:02:09 [WARN] test binary failed to launch
2023-11-15T18:02:09 [WARN] test binary check failed
2023-11-15T18:02:09 [INFO] beginning to reinstall server
2023-11-15T18:02:09 [INFO] deleting server container
2023-11-15T18:02:09 [INFO] starting language server "pyright", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 9
2023-11-15T18:02:09 [INFO] starting language server "yaml-language-server", path: "/Users/<redacted-a>/Projects/general/<redacted-c>", id: 10
2023-11-15T18:02:09 [INFO] Node runtime install_if_needed
2023-11-15T18:02:09 [INFO] Node runtime install_if_needed
2023-11-15T18:02:17 [ERROR] missing executable in directory "/Users/<redacted-a>/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js"
2023-11-15T18:02:17 [ERROR] failed to start language server "pyright": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/pyright failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-debug-0.log\n"
2023-11-15T18:02:17 [ERROR] server stderr: Some("")
2023-11-15T18:02:17 [ERROR] Hit 4 max reinstallation attempts for "pyright"
2023-11-15T18:02:17 [ERROR] crates/zed/src/languages/yaml.rs:141: no cached binary
2023-11-15T18:02:17 [ERROR] failed to start language server "yaml-language-server": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "Warning: Ignoring extra certs from `/Users/<redacted-a>/Documents/<redacted-b>/system-certs/cacert.pem`, load failed: error:80000001:system library::Operation not permitted\nnpm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/yaml-language-server failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/<redacted-a>/.npm/_logs/2023-11-15T18_02_10_071Z-debug-0.log\n"
2023-11-15T18:02:17 [ERROR] server stderr: Some("")
2023-11-15T18:02:17 [ERROR] Hit 4 max reinstallation attempts for "yaml-language-server"
padrepitufo commented 7 months ago

same bug with most recent release as of today (Zed 0.119.20), may not be a solution for this but here's Zscaler's current support page https://help.zscaler.com/zia/adding-custom-certificate-application-specific-trust-store

Evand3r commented 7 months ago

Same error, getting this when opening an Angular project and Zed tries to install the Typescript Language Server:

Language server error: TypeScript

failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"UNABLE_TO_GET_ISSUER_CERT_LOCALLY\",\n    \"summary\": \"request to https://registry.npmjs.org/typescript failed, reason: unable to get local issuer certificate\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY\nnpm ERR! request to https://registry.npmjs.org/typescript failed, reason: unable to get local issuer certificate\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/user/Library/Application Support/Zed/node/node-v18.15.0-darwin-x64/cache/_logs/2024-01-27T17_37_53_897Z-debug-0.log\n"
strayer commented 6 months ago

NodeJS isn't using the macOS certificate store, causing these problems. I have this in my fish shell to workaround this when working with NodeJS applications:

set -Ux NODE_EXTRA_CA_CERTS ~/company-root-ca.pem

I assume this needs to be implemented as a setting for Zed and passed to NPM, at least I couldn't find another workaround with a quick search.

Evand3r commented 6 months ago

Zed is currently using Node v18.15.0 as a dependency in ~/Library/Application Support/Zed/node/... and I can confirm this env variable (NODE_EXTRA_CA_CERTS) is getting loaded correctly in to the env variables: image

Despite this, the error continues

chbiel commented 2 months ago

I would suggest renaming the issue, that node custom certs is not supported, as zscaler is only one specific mitm proxy. there are also other proxies that need the same configuration.

PS: makes zed unusable behind a corporate proxy

DnOberon commented 4 weeks ago

I'm running into the same issue - Zed is unusable for next-ls the Elixir language server while behind the firewall. I have set the environment variables for the ca certificates - but they're not showing up in the logs.

There should be an env var called HEX_CACERTS_PATH - which I've confirmed is active in my environment and shell, but not Zed.

[Next LS] NextLS v0.22.8 has initialized!
[Next LS] Log file located at /Users/xxxxxxx/ingest/server/.elixir-tools/next-ls.log
[Next LS] [extension] Credo initializing with options %NextLS.InitOpts.Extensions.Credo{enable: true, cli_options: []}
stderr: ** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {~c"builds.hex.pm", 443}}, {:inet, [:inet], {:tls_alert, {:unknown_ca, ~c"TLS client: In state certify at ssl_handshake.erl:2174 generated CLIENT ALERT: Fatal - Unknown CA\n"}}}]}
stderr:
stderr: Could not install Rebar because Mix could not download metadata at https://builds.hex.pm/installs/rebar3-1.x.csv.
stderr:
[Next LS] Failed to unzip and install the bundled Elixir archive.

** (MatchError) no match of right hand side value: {"", 1}
    (next_ls 0.22.8) lib/next_ls/runtime/bundled_elixir.ex:49: NextLS.Runtime.BundledElixir.install/2
    (next_ls 0.22.8) lib/next_ls.ex:902: NextLS.handle_notification/2
    (gen_lsp 0.10.0) lib/gen_lsp.ex:478: anonymous fn/2 in GenLSP.loop/3
    (telemetry 1.2.1) /private/tmp/next-ls-20240531-10295-xqrzy1/next-ls-0.22.8/deps/telemetry/src/telemetry.erl:321: :telemetry.span/3
    (gen_lsp 0.10.0) lib/gen_lsp.ex:474: anonymous fn/7 in GenLSP.loop/3
    (gen_lsp 0.10.0) lib/gen_lsp.ex:553: GenLSP.attempt/4
    (stdlib 5.2.3) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
[Next LS] Booting runtimes...
[Next LS] Beginning DB migration...
[Next LS] Database is on the latest version: 7
[Next LS] Finished DB migration...
[Next LS] Booting runtime for .

- elixir: /Users/xxxxxx/.cache/elixir-tools/nextls/elixir/1-17-1/bin/elixir
- zombie wrapper script: /Users/xxxxxx/Library/Application Support/.burrito/next_ls_erts-14.2.5_0.22.8/lib/next_ls-0.22.8/priv/cmd
- working_dir: /Users/xxxxxx/ingest/server
- command: /Users/xxxxx/.cache/elixir-tools/nextls/elixir/1-17-1/bin/elixir --no-halt --sname nextls-runtime-1723725088671421708 --cookie xxxxxxx -S mix loadpaths --no-compile

Environment: 

LSP=nextls
NEXTLS_PARENT_PID=g1h3JW5leHQtbHMtMTcyMzcyNTA4NzkzNjk2NjIwOEBJTkw2MjE4MzYAAAEHAAAAAGa99SA=
MIX_ENV=dev
MIX_TARGET=host
MIX_BUILD_ROOT=.elixir-tools/_build
ROOTDIR=false
BINDIR=false
RELEASE_ROOT=false
RELEASE_SYS_CONFIG=false
PATH=/Users/xxxxxx/.cache/elixir-tools/nextls/elixir/1-17-1/bin:/Users/xxxx/Library/Application Support/.burrito/next_ls_erts-14.2.5_0.22.8/bin:/opt/homebrew/opt/openjdk@17/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/opt/openjdk@17/bin:/opt/homebrew/opt/openjdk@17/bin:/opt/homebrew/opt/openjdk@11/bin:/Users/xxxxxxx/.cache/rebar3/bin:/Users/xxxxx/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/go/bin:/opt/podman/bin:/Users/xxxxxxx/.cargo/bin:/Users/xxxxx/.local/bin:/Users/xxxxx/go/bin
MIX_HOME=/Users/xxxxxx/.cache/elixir-tools/nextls/elixir/1-17-1/.mix
[Next LS] Mix requires the Hex package manager to fetch dependencies
Shall I install Hex? (if running non-interactively, use "mix local.hex --force") [Yn]
[Next LS] ** (Mix) Could not find an SCM for dependency :argon2_elixir from Ingest.MixProject
[Next LS] Runtime for folder  failed to initialize
[Next LS] The runtime for  has successfully shut down.
[Next LS] Client does not support window/showMessageRequest