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

Update to Electron 28 #201935

Closed
verhovsky opened this issue Jan 6, 2024 · 8 comments · Fixed by #203956
Closed

Update to Electron 28 #201935

verhovsky opened this issue Jan 6, 2024 · 8 comments · Fixed by #203956
Assignees
Labels
electron Issues and items related to Electron electron-28-update engineering VS Code - Build / issue tracking / etc. insiders-released Patch has been released in VS Code Insiders on-testplan
Milestone

Comments

@verhovsky
Copy link

Electron 28 was released on December 5th, 2023. It finally supports ECMAScript Modules (ESM) https://www.electronjs.org/docs/latest/tutorial/esm which I would like to use in my VS Code extension.

@deepak1556 could you update Electron again please?

@deepak1556
Copy link
Collaborator

deepak1556 commented Jan 8, 2024

Todo

  • Update patches
  • Update native modules
  • Nightly Exploration builds
  • Update/Check LICENSE file in CG for new node.js version
  • Update LICENSE for new ffmpeg version

@deepak1556 deepak1556 added engineering VS Code - Build / issue tracking / etc. electron-28-update electron Issues and items related to Electron labels Jan 8, 2024
whitequark added a commit to YoWASP/vscode that referenced this issue Jan 20, 2024
The packages now generate a statement of the form `() => import`, which
was not handled by the hacky loader that the desktop code paths use.

Replacing `/\bimport\b/g` breaks pyodide. It is probably viable to
replace `/\bimport\(/g`, but that might still break things, and right
now loading the latest yosys bundle crashes the extension host, so
this commit does the simplest possible thing.

I can't wait to remove `importModuleCriminally`, which can be done once
microsoft/vscode#201935 is done.
@C0rn3j
Copy link

C0rn3j commented Jan 20, 2024

I would like to note that Electron 28 seemingly fixes some crashing issues on Wayland electron/electron#37531 (comment)

I have a hope it might, at least partially, resolve #184124 / electron/electron#39449.

Wasn't sure in which one of the three threads to link it, hope this is fine

EDIT: Actually this will also make VSC respect the ELECTRON_OZONE_PLATFORM_HINT env var so finally people will be able to shut up the pointless Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium. .

@fisforfaheem
Copy link

Kindly make sure to release this version with electron 28

@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Feb 26, 2024
@vscodenpa vscodenpa added this to the March 2024 milestone Feb 26, 2024
@Manish3323
Copy link

🤩

@vscodenpa vscodenpa added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Feb 28, 2024
@svipas
Copy link
Contributor

svipas commented Mar 3, 2024

@deepak1556 As I can see Electron 28 isn't released with 1.87.0, is it going to be included in 1.88.0?

Version: 1.87.0
Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
Date: 2024-02-27T23:42:51.279Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.87.0 Chrome/118.0.5993.159 Electron/27.3.2 Safari/537.36

@C0rn3j
Copy link

C0rn3j commented Mar 3, 2024

@svipas Feature targeted for March won't be present in a February build.

@deepak1556
Copy link
Collaborator

@svipas yes the update will be available in 1.88 release.

@AlexCannonball
Copy link

AlexCannonball commented Apr 4, 2024

I've tested 1.88 on Windows with an extension using ESM import-s and it doesn't work. I get the following error upon the extension activation:

Activating extension 'xxxxxx' failed: require() of ES Module d:\xxxxxx\out\extension.js from d:\Programs\VS_code\resources\app\out\vs\loader.js not supported. Instead change the require of extension.js in d:\Programs\VS_code\resources\app\out\vs\loader.js to a dynamic import() which is available in all CommonJS modules..

#209560

@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
electron Issues and items related to Electron electron-28-update engineering VS Code - Build / issue tracking / etc. insiders-released Patch has been released in VS Code Insiders on-testplan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants