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

Insider update channel not working with vscode-remote #3874

Closed
EmbeddedBacon opened this issue Jul 4, 2019 · 16 comments
Closed

Insider update channel not working with vscode-remote #3874

EmbeddedBacon opened this issue Jul 4, 2019 · 16 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. insiders Currently only repros with our latest Insiders release. Language Service
Milestone

Comments

@EmbeddedBacon
Copy link

EmbeddedBacon commented Jul 4, 2019

Hello,

VSCode recently updated to 1.36 and the Remote-SSH extension was recently updated as I was waiting for this action item to be addressed, Handle Proxy Issues on Remote

I am able to install extension on the remote session which the main extension is this one, vscode-cpptools. This extension was installed/updated to 0.23.1. Now, I keep getting the notification of "The C/C++ Extension has been updated to version 0.24.0-insiders3. Please reload the window for the changes to take effect"

After I press the "Reload" button and VSCode restarts the same message reappears after a few minutes. I had reloaded and restarted the remote session a number of times, but I still keep getting this notification. I am not sure this is problem with this extension or the remote extension.

For now, I changed the configuration option C_Cpp:Update Channdel to "default" instead of "Insiders", though I would like to use the Insiders channel.

Mark

@sean-mcmanus
Copy link
Contributor

This appears to be the same issue as #3800 . There must be some unknown failure during the installation and we don't log enough info.

0.24.0 is the latest now, but you'll probably hit the same issue again with 0.25.0-insiders.

@sean-mcmanus sean-mcmanus added bug insiders Currently only repros with our latest Insiders release. Language Service labels Jul 4, 2019
@EmbeddedBacon
Copy link
Author

EmbeddedBacon commented Jul 4, 2019

@sean-mcmanus After seeing your post, I started a remote editing session to see if v0.24.0 would be seen and then install it. I did install it, but as the dependencies were downloaded/installed the following was seen on the Output Window:

Updating C/C++ dependencies...

Downloading package 'C/C++ language components (Linux / x86_64)' (8683 KB)  Done!
Downloading package 'ClangFormat (Linux / x86_64)' (812 KB)  Done!
Downloading package 'Mono Framework Assemblies' (5368 KB)  Failed. Retrying...(5368 KB)  Done!
Downloading package 'Mono Runtime (Linux / x86_64)' (1862 KB)  Done!

Installing package 'C/C++ language components (Linux / x86_64)'
Installing package 'ClangFormat (Linux / x86_64)'
Installing package 'Mono Framework Assemblies'
Failed at stage: installPackages
Error: invalid central directory file header signature: 0xbc94316e

If you work in an offline environment or repeatedly see this error, try downloading a version of the extension with all the dependencies pre-included from https://github.com/Microsoft/vscode-cpptools/releases, then use the "Install from VSIX" command in VS Code to install it.

Edit: Okay, after shutting down VSC and re-launching the remote session it seems the installation completed okay:

Updating C/C++ dependencies...

Downloading package 'C/C++ language components (Linux / x86_64)' (8683 KB)  Done!
Downloading package 'ClangFormat (Linux / x86_64)' (812 KB)  Done!
Downloading package 'Mono Framework Assemblies' (5368 KB)  Done!
Downloading package 'Mono Runtime (Linux / x86_64)' (1862 KB)  Done!

Installing package 'C/C++ language components (Linux / x86_64)'
Warning: File '/users/mrhicks/.vscode-server/extensions/ms-vscode.cpptools-0.24.0/bin/Microsoft.VSCode.CPP.Extension.linux' already exists and was not updated.
Warning: File '/users/mrhicks/.vscode-server/extensions/ms-vscode.cpptools-0.24.0/bin/Microsoft.VSCode.CPP.IntelliSense.Msvc.linux' already exists and was not updated.
Installing package 'ClangFormat (Linux / x86_64)'
Warning: File '/users/mrhicks/.vscode-server/extensions/ms-vscode.cpptools-0.24.0/LLVM/bin/clang-format' already exists and was not updated.
Installing package 'Mono Framework Assemblies'
Installing package 'Mono Runtime (Linux / x86_64)'

Finished installing dependencies

@christianparpart
Copy link

I am getting the exact same message:

The C/C++ Extension has been updated to version 0.25.0-insiders. Please reload the window for the changes to take effect.

For version 0.25.0-insiders though. I cannot get rid of it, no matter how often I click reload, and no matter how often I do a clean shutdown + restart of VSC.

I just updated VSCode and then to cpptools 0.25.0-insiders. One note to make is, that I am using remote-wsl extension to develop.

What logs could I provide you for a more detailed analysis?

@hoopoepg
Copy link

hoopoepg commented Aug 9, 2019

hi all
got same issue - after update to 0.25-insiders it ask to reload window to apply changes. I'm using SSH Remote plugin to Linux host.

to suppress this I updated config file:

<AppData>\Roaming\Code\User\settings.json

added string:

    "C_Cpp.updateChannel": "Default"

@bobbrow bobbrow added this to the August 2019 milestone Aug 9, 2019
@bobbrow
Copy link
Member

bobbrow commented Aug 9, 2019

We knew the update didn't work in the remote sessions yet (#3833), but if it's constantly nagging you about it, we should prioritize addressing this sooner.

Opting out of the Insiders channel as mentioned by @hoopoepg or ignoring the popup are the only workarounds right now.

@christianparpart
Copy link

Thanks for taking care, @bobbrow

@sean-mcmanus
Copy link
Contributor

This appears to be caused by VS Code bug #3874 (Command workbench.extensions.installExtension doesn't work on Remote Host). Not sure yet if we should try to workaround that bug or wait till they fix it?

@sean-mcmanus sean-mcmanus added the Visual Studio Code Caused by (or depends on changes from) VS Code label Aug 10, 2019
@stevenguh
Copy link

I think you meant https://github.com/microsoft/vscode/issues/78719 filed in vs code?

@sean-mcmanus
Copy link
Contributor

@stevenguh Yeah, thanks for providing the correct link :)

@sean-mcmanus sean-mcmanus modified the milestones: 0.25.0, 0.26.0 Aug 12, 2019
@sean-mcmanus sean-mcmanus removed their assignment Aug 12, 2019
@stevenguh
Copy link

FYI, there is a workaround provided in the microsoft/vscode-remote-release#1144 (which is the same issue in my last comment)

@sean-mcmanus
Copy link
Contributor

You mean the workaround of unzipping the .vsix ourselves to the extensions folder? Yeah, that might work (if necessary), but I think we're just going to wait for VS Code to fix their issue.

@stevenguh
Copy link

Yes. I tried the workaround, and it works with vs code remote ssh for me. I think it make sense to wait for VS Code to fix their bug. At least there is a workaround for people eager to try.

@bobbrow bobbrow changed the title Extension does not update after reload (vscode-remote editing) Insider update channel not working with vscode-remote Sep 25, 2019
@bobbrow bobbrow modified the milestones: 0.26.0, Triage, Tracking Sep 27, 2019
@EmbeddedBacon
Copy link
Author

When to update this extension for today while running VS Code 1.39.1 and now see it on the host machine, Windows 10

Updating C/C++ dependencies...

Downloading package 'C/C++ language components (Windows)' (5692 KB) Failed. Retrying...(5692 KB) Done!
Downloading package 'ClangFormat (Windows)' (1054 KB) Done!
Downloading package 'Visual Studio Windows Debugger' (13316 KB) Done!

Installing package 'C/C++ language components (Windows)'
Failed at stage: installPackages
Error: invalid central directory file header signature: 0x31d1fbe6

If you work in an offline environment or repeatedly see this error, try downloading a version of the extension with all the dependencies pre-included from https://github.com/Microsoft/vscode-cpptools/releases, then use the "Install from VSIX" command in VS Code to install it.

@sean-mcmanus sean-mcmanus removed this from the Tracking milestone Dec 2, 2019
@sean-mcmanus sean-mcmanus added this to the 0.26.3 milestone Dec 2, 2019
@sean-mcmanus sean-mcmanus removed Visual Studio Code Caused by (or depends on changes from) VS Code external labels Dec 2, 2019
@sean-mcmanus
Copy link
Contributor

@bobbrow @michelleangela @Colengms VS Code fixed their issue but we're still failing to install remotely (I tried WSL) with error "Failed to find VS Code script".

@bobbrow bobbrow modified the milestones: 0.26.3, On Deck Dec 6, 2019
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Dec 19, 2019
@sean-mcmanus sean-mcmanus modified the milestones: On Deck, 0.26.3 Dec 19, 2019
sean-mcmanus added a commit that referenced this issue Dec 19, 2019
Fix for #3874 .
This was also causing my previous "downgrade" fix to fail: #4760
@sean-mcmanus
Copy link
Contributor

The Insider channel should work with vscode-remote with https://github.com/microsoft/vscode-cpptools/releases/tag/0.26.3 (after we have our next Insiders available).

@robertcinciuc
Copy link

@hoopoepg Your solution worked for me! Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. insiders Currently only repros with our latest Insiders release. Language Service
Projects
None yet
Development

No branches or pull requests

7 participants