vscode: Incompatible or Mismatched C/C++ Extension Binaries

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Steps to Reproduce:

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 30 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks for the logs and I think I know the root cause of this issue. It seems in your case the extension is being copied from local client (Windows) to remote (WSL) and hence the bits are being incompatible. This happens if VS Code cannot find a matching installed extension in the Marketplace. In this case, VS Code falls back to copy the extension.

Fixed it as follows:

Before using the fallback to copy

  • Try again to get the matching extension from the Marketplace
  • In the fallback check if the local extension is compatible with the remote platform.

This fix does not covers if you have manually installed an extension that does not exist in the Marketplace and is platform specific.