che icon indicating copy to clipboard operation
che copied to clipboard

Upstream version of electron can not be used for the che-code

Open RomanNikitenko opened this issue 6 months ago • 0 comments

Is your task related to a problem? Please describe

ubi8-based build fails for the che-code with the following error:

npm error g++: error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?

I've found that

  • 34.5.1 version of electron is used by the 1.100 version of VS Code, see https://github.com/microsoft/vscode/blob/848b80aeb52026648a8ff9f7c45a9b0a80641e2e/package.json#L158
  • this electron version requires at least gcc10 package version
  • but ubi8 image contains gcc version 8.5.0 20210514 (Red Hat 8.5.0-24) (GCC)

See also https://github.com/electron/electron/blob/main/docs/breaking-changes.md: image

Describe the solution you'd like

The best solution would be upgrade gcc package for the ubi8 images.

Describe alternatives you've considered

I will try to downgrade electron version on the che-code side, but it will require changes for the VS Code sources + reviewing those source files at every alignment with upstream.

Additional context

No response

RomanNikitenko avatar May 29 '25 13:05 RomanNikitenko