I am unable to connect to the extension marketplace of Visual Studio Code - visual-studio-code

I found one solution, download latest version from VSCode website. I tried same but still facing this issue.
i want to add React Native extension.
I am unable to access this URL because of the Proxy.
How to resolve this issue?

I'm using VSCodium On Archlinux and had the same problem. I installed vscodium-bin-marketplace to make it work. There's also a package named code-marketplace for Code OSS.

I found a solution that works for me.
Stop VSCode.
Open ~/.vscode/argv.json if you're using VSCode
Open ~/.vscode-oss/argv.json if you're using VSCodium
Then add
// Browser Code Loading.
"enable-browser-code-loading": false
Don't forget to add a comma to the previous entry, since this is a JSON file (but you knew that already, right?).

This just worked for me:
Add the proxy server to VS Code settings.json (open it in VSCode command line)
Add keys "http.proxy" and "https.proxy" with values of your Proxy Server URL, for example:
settings.json:
{
...
"http.proxy": "http://my-http-proxy-server.com:123",
"https.proxy": "https://my-https-proxy-server.com:124"
}

Bypass the url from proxy.
Open proxy settings (run command - inetcpl.cpl)
Go to connection tab, now in your proxy add that url
If it works then ok . Else you have to contact network team or need to do some firewall settings

Unistall vscode from unins000.exe C:\Users\{username-PC}\AppData\Local\Programs\Microsoft VS Code
Delete C:\Users\{username-PC}\AppData\Roaming\Code
Delete C:\Users\{username-PC}\.vscode
Restart

I went to Toggle Developer Tools. As described in here. Saw that ERR_TUNNEL_CONNECTION_FAILED error is there.
I had a proxy server added to the network settings. (Which was working fine for other purposes) I had to remove the proxy server in order to get this working.

Deleting my .vscode (hidden folder) worked for me.
C:\Users\USERNAME.vscode
Other alternative could be uninstalling vscode and deleting the whole folder at
C:\Users\USERNAME\AppData\Local\Programs\Microsoft VS Code

1.Unistall vscode from unins000.exe C:\Users\{username-PC}\AppData\Local\Programs\Microsoft VS Code
2.Delete C:\Users\{username-PC}\AppData\Roaming\Code
3.Delete C:\Users\{username-PC}\.vscode
4.Restart
5.Reset your windows firewall
6.Restart and install Vscode

This worked for me: in extensions search box, wrote #color (I'm guessing searching for anything will do) and extensions tab populated with results. Never saw the error again.

I recommend this solution for linux operating systems:
in file ~/.vscode-oss/argv.json
add this line: "enable-browser-code-loading": false

I am using kaspersky antivirus, disable it for a while, and my problem solved.

If no option works above. You can install the extension through the Vsix file.You can download it from this site.
Vsix File Free Download

If you are using linux you can install code-marketplace using your package manager which in my case it's pamac.
Just like this:
pamac build code-marketplace
This fixed my problem loading extensions in vscode.

goto your pc settings and look for proxy
turn it all off
that worked for me

I just uninstalled vscode downloaded it again and it works fine now for me you can try out this once

When you look at the ip-traffic what it tries to do, it starts with DNS-query with A-record (good) and also with AAAA-record (not so good if you don't have proper v6 routing in place).
Application should have built-in code to try AAAA-record connections and if they fail, it should automatically fall back to v4-connections and routing. Now it fails to do so and just gives an error that it failed to connect marketplace. Well, you just didn't try hard enough, did you?
For Linux systems, you disable your host's v6 protocol with:
# sysctl -w net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.all.disable_ipv6 = 1
# sysctl -w net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6 = 1
and you might want to write them into /etc/sysctl.conf file as well.
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
I did it using the world's best editor Vim! :)
You need to restart the application before marketplace starts working.

Related

Tabnine Extension was unable to download its dependencies

please complete the following information:
Tabnine Extension was unable to download its dependencies. Please check your internet connection. If you use a proxy server, please visit https://code.visualstudio.com/docs/setup/network
Try to install 3.2.8. it worked for me.
Strictly speaking, this is not a solution, but it may help someone.
I met the same problem with a remote ssh Linux machine, and I tried the following solutions:
remove vscode-server extension directory under ~/.vscode-server then reinstall
set http proxy both vscode settings and linux environment (enabled before)
downgrade tabnine version
...
none of these worked.
But I noticed that if I cancel the proxy, the pop-up error takes longer.
Of course, the proxy works fine. I guess something went wrong with the network.
So, I switched my proxy to another region, and it worked.
I guess tabnine block my proxy ip for some re
So, the suggestion is:
change your network provider, make sure it can access tabnine.
Or set up http proxy in vscode settings, and switch to another one if it does not working.
for vscode remote user, make the proxy settings modified on remote host.
delete extension configs and reinstall, for vscode remote, delete vsocde-server

Can't Find certain extensions in CODE-OSS(Open source variant of Visual Studio Code)

I have been using Code-OSS in manjaro linux for some months now and this is the first time I am encountering this. (After I reinstalled manjaro) When I search for e.g, Java Extension Pack or Intellisense I don't get any result in the extension marketplace. I don't know if it's the problem of my setup or everyone is experiencing this. If you know of a solution please tell me.
Thanks in advance
This can be fixed by adding following to product.json:
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"itemUrl": "https://marketplace.visualstudio.com/items"
}
This can also be fixed by copying product.json from an official build (in the .zip archvie, product.json is under /usr/share/code/resources/app/product.json which contains above lines). Depending on your distribution, exact location may vary.
More information: https://github.com/Microsoft/vscode/issues/1557
As an alternative to manually editing product.json or building whole visual-studio-code-bin from AUR you can use different AUR package - code-marketplace - that patches product.json from Code OSS package (code)
Thank you #Clay for responding. I saw that post prior to me posting this question. Those bits of json code were already in my product.json file but still I was not able to get the extensions. Then I built the VISUAL STUDIO CODE (visual-studio-code-bin) from AUR and now its working normally as expected. I don't know what's the reason behind this,but that's how I fixed it.
Also if someone is reading this and wanna know about the different variants of VSCode then here is the archWiki page for VSCode.
For anyone using the lscr.io/linuxserver/code-server docker container like me, the .json is located at /app/code-server/lib/vscode/product.json.
I've encountered this using OSS Code on Manjaro as well, trying to install the Azure Resource Manager Tools extension. Not sure if this was an option when this question was posted, but you can download the extension (.vsix) file if possible, then bring up 'quick open' in OSS Code using Ctrl+Shift+P, search for "VSIX" and choose "Extensions: install from VSIX" to locate and install the downloaded .vsix file.
After this, the extension was installed and usable in OSS Code, and is also configurable in the extension manager panel.

Issue with the proxy settings when installing Eclipse

I have the same issue with Eclipse (Neon 4.6 eclipse installer by Oomph 32 bit) as in this question and as explained there I have downloaded the automatic configuration script (the script is set up through the Group Policy so I can’t change my LAN settings) that my browser is using. I used the host and port in the return statement and did as explained below
Select the "HTTP" line and click the edit button
Add the IP address and port number above to the http line:
Does anyone know what else I can try because I am still getting a network problem message?
Your help will be appreciated
Proxy Network problem message:
I have changed the active provider to Manual and retried again, then it worked.
I installed an old version and it's worked well.
this is the link for the old version:
https://www.eclipse.org/downloads/packages/release/oxygen/2
You can download a zip file of the Eclipse package you want and explode it in your filesystem where you want it,
Here is link for Eclipse package for windows:
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2021-06/R/eclipse-java-2021-06-R-win32-x86_64.zip&mirror_id=17
Or select another package here:
https://www.eclipse.org/downloads/packages/
For me, I had similar issues to this that related to my office network and their use of a security tool called Netskope which needed its root-certificate into the jvm that would be used by the Eclipse installer. I elaborated on my workaround steps in this other thread:
https://stackoverflow.com/a/69171147/1302220

VSCODE - Marketplace returned 'ECONNREFUSED'. Please check the 'http.proxy' setting

I am new to Visual Studio. I just installed Visual Studio Code (VSCODE). First time, I opened it and trying to install the extension for powershell. But, when I go to the Extensions tab, it gave an error that the proxy settings were not configured.
The pop up gave an option to 'Open User Settings' and it opened an editor.
As per my understanding, I wrote the following two lines in the User Settings file.
Our internal proxy server requires user authentication. How and where will I put the user credentials. I think, I am getting the error because I have not specified the user details.
Found out how.
The proxy details should be given in the following format. I was using the wrong format earlier.
My settings file looked something similar to below.
// Place your settings in this file to overwrite the default settings
{
"http.proxy": "http://user#domain.local:Password456#10.201.10.200:8080",
"http.proxyStrictSSL": false
}
The domain user name was domain\user, and it was provided in the user FQDN format
Password456 is the login password for the user
10.201.10.200:8080 is the proxy server
Hope this would help someone at some point of time.
I solved this problem like #Tom Jacob Chirayil, but I had to do a little extra. Here are the steps I followed:
Find your proxy server first by going to http://wpad/wpad.dat. My company's configuration had a bunch of proxy servers, and the one that I used was at the very bottom, in this format:
return "PROXY subdomain.company.com:port";
Then click on the Open User Settings button, and add the following line to the settings.json file to the right, within the braces:
"http.proxy": "http://subdomain.company.com:port"
NB: I had to add http:// to the front of the proxy address that I pulled from wpad.dat.
Then save settings.json, restart VS Code. (IDK for sure if you have to restart VS Code or not.)
Just to add a point, it seems that the new release (1.5.1) came with this issue. People on Mac, Linux or Windows suffering with "econnrefused" error in VSCode.
The new version (1.5.2) will have a fix for this, until then, we can use the nightly version.
Source: https://github.com/Microsoft/vscode/issues/11774

Pylint in Sublime Text 2

So, I've been using Sublime for a while as a simple text editor, but I'm venturing into the land of plugins for work and I've run into an issue getting pylint to work. Specifically I have it installed and have the Sublime package manager working, but I'm not sure how to include paths in my sublime settings.
I haven't found very useful documentation on this point, but if you are willing to point me towards it that would be a perfectly acceptable answer. My basic issue is that currently every time I save a file, the following error message shows up:
"Please define the full path to 'lint.py' in the settings"
I understand this error message which is great, I just have no idea where the sublime settings are or what the standard format for defining a path is. Any help would be appreciated.
There are quite complete directions at the SublimeLinter GitHub page that should describe how to set everything up. Briefly, go to Preferences->Package Settings->SublimeLinter->Settings - Default to see where the different settings are defined. Then, open Preferences->Package Settings->SublimeLinter->Settings - User to change anything, as the main settings will be overwritten when the package is updated. Remember that settings files are in JSON format, so you'll need opening and closing curly brackets to enclose settings, and a comma between them:
{
"sublimelinter_delay": 30,
"sublimelinter_mark_style": "none"
}
I haven't gotten the error you have, are you sure you're using the regular SublimeLinter and not the new beta version? I just installed it fresh on my work machine (I've been using it for a while at home) and after restarting ST2 it's working like a charm with Python.
I had the same problem. I found it to be coming from the package "Pylinter". I removed Pylinter and added SublimeLinter, it covers more than python and is well used. I'm enjoying it quite a bit.
From your command line just run:
sudo easy_install pylint
sudo easy_install pep8
After that restart your sublime.
I encounter the same situation today. In my case, that is because I have not installed the 'pylint' in my system yet. It works fine after I installed the 'pylint' through pip.
Just for other people reference.