Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to install C/C++ extension in visual studio code #24399

Closed
sathish25071992 opened this issue Apr 10, 2017 · 30 comments
Closed

Not able to install C/C++ extension in visual studio code #24399

sathish25071992 opened this issue Apr 10, 2017 · 30 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@sathish25071992
Copy link

  • VSCode Version: 1.10
  • OS Version: Opensuse tumbleweed

Steps to Reproduce:

  1. Open vs code
  2. Install c/c++ extension

Hi,
Im using visual studio code for past 4 months. Everythings was working fine. All of a sudden im not able to upgrade C/C++ extension (version 0.10.5). So I un-installed the extension and tried installing back. Now I am unable to install the extension. When I try to install the extension its saying (Image attached), but not finishing the installation. No matter how long I wait, it is always saying installing. Please help me with this.
screenshot_20170410_111241

@chrmarti
Copy link
Contributor

Is there anything in the devtools' console? (Help > Toggle Developer Tools)

@sathish25071992
Copy link
Author

I am not able to click on any of the option in menu bar.

@sathish25071992
Copy link
Author

I created a keyboard shortcut and accessed the developer tools. I am seeing 2 error. Here is the attached image of the error
screenshot_20170410_112336

@joaomoreno
Copy link
Member

Are you behind a proxy?

@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Apr 10, 2017
@sathish25071992
Copy link
Author

sathish25071992 commented Apr 10, 2017

No. It is a direct connection from the internet provider.
I am able to Install other extensions without any problem. Only c/c++ extension is not installing.

@joaomoreno
Copy link
Member

Interesting. If you uninstall it, is it still in ~/.vscode/extensions?

@sathish25071992
Copy link
Author

sathish25071992 commented Apr 10, 2017

No. It is not there. I have 7 extensions installed now (I already un installed c/c++ extension). I am able to see 7 folders in ~/.vscode/extensions/ corresponding to the extensions installed.

@joaomoreno
Copy link
Member

If you wait long enough does it install? Check your network activity.

@sathish25071992
Copy link
Author

No. I left even for a day :( . It didn't install. Is it possible to reset the VS code to default, like factory reset or something, so that it will be clean as first time install?.

@joaomoreno
Copy link
Member

That shouldn't really do anything, but you can run

code --user-data-dir=new/data/dir --extensions-dir=new/extensions/dir

to try it out.

@joaomoreno
Copy link
Member

If you open the Developer Tools, is there any error in there?

@sathish25071992
Copy link
Author

No. I left even for a day :( . It didn't install. Is it possible to reset the VS code to default, like factory reset or something, so that it will be clean as first time install?.

@sathish25071992
Copy link
Author

Sorry for re commenting. These are the error message present in the console.
screenshot_20170410_112336

@sathish25071992
Copy link
Author

I tried code --user-data-dir=new/data/dir --extensions-dir=new/extensions/dir It didn't worked.

@joaomoreno
Copy link
Member

Are you sure any other extension installs correctly?

@sathish25071992
Copy link
Author

Yes im sure. with code --user-data-dir=new/data/dir --extensions-dir=new/extensions/dir command, I installed native debugger. It installed and asked to reload the window. But for C/C++ extension, It stuck at installing.

@sathish25071992
Copy link
Author

Is it something to do with Opensuse tumbleweed? I have a windows machine in which its is working perfect. And I also have opensuse leap 42.2. I think in that also it is working fine, I will confirm it.

@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Apr 10, 2017

Our cpptools team doesn't know why our extension would have any problem downloading/installing -- we assume it's a VS Code issue. Our vsix is only 1.1 MB. We haven't tried the repro on an OpenSUSE (the distro has <1% of usage in our telemetry). Our .vsix has an .exe binary, so maybe the OS has some file scan that blocks it. Maybe running with admin/sudo/root access would enable installation? Someone could send the user our cpptools.vsix and see if they can install it via the Extensions: Install from Vsix command.

@sathish25071992
Copy link
Author

ok. I will try to log in as root and try the same.

@sathish25071992
Copy link
Author

can I get the cpptools.vsix? where can I get it?

@sathish25071992
Copy link
Author

sathish25071992 commented Apr 11, 2017

Great... It worked with the vsix package. I got the .vsix package by following the procedure given by jevyn in this link microsoft/vscode-cpptools#298. After that I installed the .vsix package. With this procedure it worked.!!!!

@sean-mcmanus
Copy link
Contributor

Exactly which steps did you follow? I assume you just followed the steps for getting the .vsix and installing it and not the later steps for manually downloading the OS-specific binaries from the fwlinks in the package.json? It sounds like there is still a bug/issue with our extension getting installed via the Extensions UI, but we don't have a repro?

@sathish25071992
Copy link
Author

sathish25071992 commented Apr 11, 2017

ya sean. I followed exactly these steps,

  1. Go to cpptools marketplace (https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)
  2. right click, view source
  3. search for VSIXPackage, copy paste to new window to download ex: https://ms-vscode.gallerycdn.vsassets.io/extensions/ms-vscode/cpptools/0.9.2/1474583577220/Microsoft.VisualStudio.Services.VSIXPackage
  4. rename to cpptools.vsix

Then I used the cpptools.vsix to install the extension.

Is there any think I can do so that you guys can narrow down the problem?.

@joaomoreno
Copy link
Member

You could use a network analyser like Wireshark to see what is happening behind the scenes.

@sathish25071992
Copy link
Author

Ok. I will give it a try.

@joaomoreno
Copy link
Member

Let me know how it goes.

@sathish25071992
Copy link
Author

Today I got C/C++ extension update. Still same behavior. I will try to get network activity through wireshark.

@ghost
Copy link

ghost commented Jun 15, 2017

I installed the last version of VS Code.
I have the same error in both home and university . The install is pending like above picture forever.
These are the errors I can see in Developer Tools:

/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28 [C:\Users\Majid.vscode\extensions\tushortz.java-imports-snippets-0.0.1]: The "try catch"-snippet very likely confuses snippet-variables and snippet-placeholders. See https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax for more details.
t.$localShowMessage @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:29 [Extension Host] Not found
d.logExtensionHostMessage @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:29
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:29 ENOENT: no such file or directory, mkdir 'C:\Users\Majid\AppData\Local\Temp;C:'

Error: ENOENT: no such file or directory, mkdir 'C:\Users\Majid\AppData\Local\Temp;C:': Error: ENOENT: no such file or directory, mkdir 'C:\Users\Majid\AppData\Local\Temp;C:'

Error: ENOENT: no such file or directory, mkdir 'C:\Users\Majid\AppData\Local\Temp;C:'
at Timeout._onTimeout (C:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:4:44676)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)

@joaomoreno
Copy link
Member

@Majid-Khosh Don't hijack issues, create a new one.

@vscodebot vscodebot bot closed this as completed Jun 26, 2017
@vscodebot
Copy link

vscodebot bot commented Jun 26, 2017

This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants