fannheyward / coc-rust-analyzer

rust-analyzer extension for coc.nvim
MIT License
1.12k stars 39 forks source link

Failed to activate after setting a http_proxy #1237

Closed Smart-SangGe closed 5 months ago

Smart-SangGe commented 5 months ago

What's the output of :CocInfo

2024-03-1707:05:22.630 ERROR (pid:21234) [extensions-manage r] - Error on activate coc-rust-analyzer TypeError [ERR_INVA LID_URL]: Invalid URL at new NodeError (node:internal/errors:405:5) at new URL (node: internal/url:676:13) at new wp (/home/rock/.config/coc/extensions/node_module s/coc-rust-analyzer/lib/index.js:43:1682) at Object. (/home/rock/.config/coc/extensions /node_modules/coc-rust-analyzer/lib/index.js:46:315606) at Module._compile (/home/rock/.local/share/nvim/plugged /coc.nvim/build/index.js:255:18615) at Module._extensions..js (node:internal/modules/cjs/loa der: 1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32 ) at Module._load (node:internal/modules/cjs/loader:1013:1 2) at Module. require (node: internal/modules/cis/loader: 1225 :19) 36 at o. require (/home/rock/.local/share/nvim/plugged/coc.n vim/build/index.js:255:19257) { 37 input: '192.168.1.3:10809', 38 code: 'ERR_INVALID_URL' 39 } 40 2024-03-17T07:05:22.641 INFO (pid:21234) [plugin] - coc.nvim initialized with node: 18.19.1 after 1438

What's the output of :CocCommand rust-analyzer.serverVersion

no such command;

[coc.nvim] rust-analyzer 1.76.0 (07dca489 2024-02-04) (after unset proxy)

What's your coc-rust-analyzer version? You can get it from :CocList extensions

0.75.2

It can run after I unset my proxy.

fannheyward commented 5 months ago

export http_proxy=http://HOST:PORT, your http_proxy format is incorrect.