Comments (8)
How is your proxy configured? The fetch
used is not https://github.com/github/fetch, but fetch model provided by coc.nvim https://github.com/neoclide/coc.nvim/blob/master/src/model/fetch.ts
from coc-marketplace.
This I didn't expect. I have the same proxy configuration in both Gnome and environment variables. It usually works fine when applications support system-wide proxy settings.
Gnome:
~/.bashrc
:
export http_proxy=http://proxiac:8080
export https_proxy=http://proxiac:8080
export ftp_proxy=http://proxiac:8080
export rsync_proxy=http://proxiac:8080
export all_proxy=http://proxiac:8080
export no_proxy="localhost,cy,127.0.0.1,127.0.0.1/8,::1,10.0.0.0/16,*.intra"
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$https_proxy
export FTP_PROXY=$ftp_proxy
export RSYNC_PROXY=$rsync_proxy
export ALL_PROXY=$all_proxy
export NO_PROXY=$no_proxy
I also tried to replace our proxy hostname with IP but it didn't change anything. To make it even more interesting, :CocInstall
works okay - my guess is it uses the same fetch
implementation(?).
I've found out Intelephense (PHP Language Server) looks for proxy in process.env.https_proxy
during license activation and it fails as well. Is this the same place coc-marketplace
checks for proxy setting? Is the value logged somewhere? My guess is it's coc.nvim
's issue on Linux even though calling :echo $https_proxy
in VIM outputs the environment variable value.
from coc-marketplace.
This has been fixed on coc.nvim mater neoclide/coc.nvim@f4d9aca
from coc-marketplace.
The issue was never related to lower or upper case, I have all environment variables declared in both. I'll post it upstream, though.
from coc-marketplace.
Yes, both :CocInstall
and coc-marketplace
are using same fetch
model.
You can try to add "http.proxy": "proxiac:8080"
to coc-settings.json
.
from coc-marketplace.
Can you see Using proxy from...
from :CocOpenLog
?
from coc-marketplace.
It's a false alarm... a tricky one I would never expect, but still, not an issue in coc-marketplace
, I think, but rather coc.nvim::fetch does something our proxy config doesn't like. When I connect to http://registry.npmjs.com in the browser or with curl
(through proxy) all works fine but when coc.nvim::fetch
connects to that URL (through proxy) it gets 403 Forbidden
. If by any chance it is anything that should be fixed on your end I'll let you know. I had the same issue with Intelephense when it was using built-in node.js module to activate the license and Ben Mewburn fixed it by switching to request
module instead (and by implication fixed coc-phpls
for me around version 1.3.7, see bmewburn/vscode-intelephense#915).
For the completeness sake - yes, I see proxy in the log:
11 2020-01-03T16:21:15.095 INFO (pid:29407) [model-fetch] - fetch: http://registry.npmjs.com/-/v1/search?text=keywords:coc.nvim&size=200&from=0
12 2020-01-03T16:21:15.095 INFO (pid:29407) [model-fetch] - Using proxy from: proxiac:8080
And I can confirm it's correctly read from coc-settings.json
(when set) or from environment variable.
from coc-marketplace.
Few months passed and I still don't know why it doesn't work but I don't think it's something that concerns other users so I'm closing the issue. Have an awesome week, cheers!
from coc-marketplace.
Related Issues (13)
- Questions & Suggestions
- Question: how to add a plugin in the Coc Marketplace HOT 1
- Every item is listed twice in the search result HOT 1
- You've done a wonderful job, just one suggestion... HOT 5
- Don't show or warn about archived repo HOT 2
- Install extension without closing the scratch window. HOT 1
- Provide a option to change the default api
- SSL version error HOT 1
- SSL version error when executing ":CocList marketplace" HOT 1
- 请问可以支持 Node 8 吗 ? HOT 3
- How to install multiple coc plug-ins once? HOT 2
- Possible to install with plugin manager HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-marketplace.