atom-community / atom

:atom: Community build of the hackable text editor

Home Page:https://atom-community.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update Electron

AlexWayfer opened this issue · comments

Summary

I see the same version of Electron as for mainstream, pretty outdated (EOL).

Please, update it.

Motivation

Atom started to crash with the latest stable version of glibc: https://bugs.archlinux.org/task/75902

Describe alternatives you've considered

--no-sandbox or --in-process-gpu flags, which don't look normal. Or locking an old version of glibc.

Additional context

We need for a good build of Atom Community in Arch Linux AUR!

Atom Official non-merged PR: atom#23540

(Btw, for additional context, a separate Arch Linux build requires modifying build script. This would be done on top of electron update. I haven't described what such a feature might look like overall but here's the main issue for that: #419)

I think this issue is not about updating electron but rather atom#23036 (Crash on Linux on Start)

It's just that updating electron to at least v13 (note that v20 is latest, pr is v16, we're on v11.5.0) fixes this problem.

note on dependencies and the large amount of work needed to upgrade electron

Many of atom's dependencies are based on nan, and I think it would be easier/it's practically required to update to napi before trying to upgrade Electron because napi doesn't depend on v8 implementation details.

Another non-implementation-detail-possibility is literally migrating to WebAssembly, but that's a topic for debate about unsure amount of benefits and would require much more effort than napi.

Overall, it would be so nice if there was a way to automatically update stuff instead of doing such things manually. An ideal picture would be an automated electron upgrade.

Anyways, dependencies are only the beginning. But they're a decent chunk, I think upgrading can be separated into:

  • fix dependency errors (by updates)
  • don't use outdated apis/features