question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install update, in VSCode Insiders

See original GitHub issue

Issue Description

Error while trying to install latest update.

Steps to Reproduce

Try to install latest version.

Expected Behavior

Version installs successfully.

Actual Behavior

Installation fails:

[2021-12-02 10:09:55.790] [renderer2] [error] [Extension Host] (node:10324) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code - Insiders --trace-deprecation ...` to show where the warning was created)
[2021-12-02 10:10:28.806] [renderer2] [error] Problem invoking 'GetCodeActions' on OmniSharp server: Error: Request /v2/getcodeactions cancelled, id: 10
[2021-12-02 10:10:29.805] [renderer2] [error] Problem invoking 'GetCodeActions' on OmniSharp server: Error: Request /v2/getcodeactions cancelled, id: 18
[2021-12-02 10:10:30.790] [renderer2] [error] Problem invoking 'GetCodeActions' on OmniSharp server: Error: Request /v2/getcodeactions cancelled, id: 21
[2021-12-02 10:10:31.829] [renderer2] [error] Problem invoking 'GetCodeActions' on OmniSharp server: Error: Request /v2/getcodeactions cancelled, id: 23
[2021-12-03 08:57:40.253] [renderer2] [error] Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace: Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace
    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)
    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)
[2021-12-03 08:57:42.155] [renderer2] [error] ["Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace","    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)","    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)"]
[2021-12-03 08:57:42.157] [renderer2] [error] Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace: Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace
    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)
    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)
[2021-12-03 08:57:47.003] [renderer2] [error] ["Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace","    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)","    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)"]
[2021-12-03 08:57:47.005] [renderer2] [error] Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace: Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace
    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)
    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)
[2021-12-03 08:57:47.879] [renderer2] [error] ["Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace","    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)","    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)"]
[2021-12-03 08:57:48.560] [renderer2] [error] ["Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace","    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)","    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)"]
[2021-12-03 08:57:48.579] [renderer2] [error] Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace: Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace
    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)
    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)
[2021-12-03 08:57:49.283] [renderer2] [error] ["Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace","    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)","    at async A.installFromGallery (vscode-file://vscode-app/c:/Users/jtsombakos/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)"]

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.63.0-insider C# Extension: 1.23.16

Dotnet Information .NET SDK (reflecting any global.json): Version: 6.0.100 Commit: 9e8b04bbff

Runtime Environment: OS Name: Windows OS Version: 10.0.19044 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.100\

Host (useful for support): Version: 6.0.0 Commit: 4822e3c3aa

.NET SDKs installed: 5.0.403 [C:\Program Files\dotnet\sdk] 6.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
azure-account ms-vscode 0.9.11
csharp ms-dotnettools 1.23.16
git-graph mhutchie 1.30.0
github-vscode-theme GitHub 5.1.0
hexeditor ms-vscode 1.8.2
hl7tools RobHolme 1.13.2
horizon-extended lancewilhelm 0.1.5
material-icon-theme PKief 4.11.0
msbuild-project-tools tintoy 0.4.1
night-owl sdras 2.0.1
quicktype quicktype 12.0.46
TabOut albert 0.2.1
vsc-community-material-theme Equinusocio 1.4.4
vscode-azurefunctions ms-azuretools 1.6.0
vscode-azureresourcegroups ms-azuretools 0.4.0
vscode-azurestorage ms-azuretools 0.12.1
vscode-base64 adamhartford 0.1.0
vscode-thunder-client rangav 1.9.1
vscodeintellicode VisualStudioExptTeam 1.2.14

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
isidorncommented, Dec 6, 2021

Hi, VS Code team member here 👋 Sorry about this breakage and thank you very much for the investigation and for using VS Code Insiders 👏 @sandy081, @saikanth007 and me investigated and the root cause for this is VS Code changing header values when sending requests to the MP. For this release, we have decided to revert back to using the old header values. This issue captures that and it will be available in the next VS Code insiders later today https://github.com/microsoft/vscode/issues/138503

For a deeper investigation why the change of the user-agent header influenced the difference cdn link we have created this issue on the Marketplace side https://github.com/microsoft/vsmarketplace/issues/267 Since the real root causes was wrong cdn link to an extension manifest file that pointed to an outdated extension version.

1reaction
MariaSolOscommented, Dec 3, 2021

I have the same issue (“version mismatch in the marketplace”):

[2021-12-03 16:01:33.892] [renderer1] [error] ["Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace","    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)","    at async A.installFromGallery (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)"]
[2021-12-03 16:01:33.930] [renderer1] [error] Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace: Invalid: Cannot install 'ms-dotnettools.csharp' extension because of version mismatch in Marketplace
    at A.checkAndGetCompatibleVersion (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:13083)
    at async A.installFromGallery (vscode-file://vscode-app/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:2928)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Update VSCode insiders fails as keep asking to install update
Trying to update VSCode insiders, but setup seems to fail and keeps asking to restart vscode to update, but version remain as is....
Read more >
Visual Studio Code Frequently Asked Questions
The Insiders build installs side by side to your stable VS Code install and has isolated settings, configurations, and extensions. The Insiders build...
Read more >
Setting up Visual Studio Code
Most platforms support auto updating and you will be prompted to install the new release when it becomes available. You can also manually...
Read more >
November 2022 (version 1.74) - Visual Studio Code
Insiders : Want to try new features as soon as possible? You can download the nightly Insiders build and try the latest updates...
Read more >
Download Visual Studio Code Insiders
New builds at least everyday with features, bug fixes, and other recently closed issues. Side-by-side install. Insiders installs next to the Stable build, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found