Repository navigation
Upgrade to Electron 2.0.0 - #17273
Conversation
Example build failure: https://ci.appveyor.com/project/Atom/atom/build/job/fvtxos5ys6a5lek1#L634 As of Node 8.0.0, Module._cache.hasOwnProperty is no longer a function: nodejs/node@https://github.com/nodejs/node/commit/403b89e72b6367934ca3c36d389ce0f3214ffbf5
|
The core render tests are passing now. 😅 Only two packages have failing tests: the archive-view package and the github package. I'm hopeful that we can resolve the archive-view failures by:
I'll look into the github package failures next. |
|
I glanced at the failing GitHub package tests and it looks like they're all related to the prompt server. We use a Unix domain socket or a Windows named pipe to communicate with a subprocess spawned by git to be able to prompt for credentials through Atom dialogs... but those tests have always been a bit of a headache, because they're prone to timing problems and stalls when the OS decides to buffer data. If there were changes to node's net module, even fairly subtle ones, that could cause our tests to fail and/or actually break the prompt. I'd be happy to help figure out how to get them passing on here; I have fairly recent context on them 😄 |
|
Electron 2.0 uses Node 8.9.3. Atom's build currently uses Node 6.9.4 [A]. Should we update Atom's build to match the Node version used in Electron? @as-cii: Do you happen to know whether the Node version in the Atom build needs to match the Node version that's in the version of Electron that we're using? [A] There are a handful of places where we specify a dependency on Node 6.9.4. It's in |
|
I believe it's not strictly required but I guess it might be nice to get them to match from a "language capabilities" standpoint, so that we can use the same set of language constructs and APIs for Atom as well as for build scripts. |
|
On the other hand, we should probably still have something checking that Node.js v6 still works to build Atom, at least until it's maintenance period ends or we drop support for it due to this:
|
|
Lol, what The |
|
Okay, that's fixed. Those two dialog cancellation tests are still timing out on CircleCI, though. |
✅😅 Big thanks to @smashwilson. ⚡ |
|
Nice work! I'm building this branch now to dogfood it until we're ready to merge this PR. |
|
@lee-dohm let me know that this problem shows up in 1.28-dev without the Electron 2.0 change, so that's not the culprit here! |
|
I'm super happy to see this getting unstuck. Thank you @jasonrudolph and @codebytere for doing this! 💚 |
Seems unrelated to this branch, happens on master too. Made a new issue: atom/about#78 |
|
For my own reference, here's the stacktrace that @jasonrudolph is seeing: |
|
@jasonrudolph possibly! flying back to durham today, sorry for late follow-up! |
|
@jasonrudolph Running this branch as part of daily work to see if I notice anything. I also tested some of the items in the test plan. Most of the Windows things are checked off already though ⚡ Big Files: Loss of subpixel AA: |
|
@codebytere: In case it helps, regarding the problem committing from the GitHub package (i.e., the suspected asar issue), it seems to be due a change that occurs somewhere between Electron 1.8.6 and Electron 2.0.0. Committing from the GitHub package works when using the Electron 1.8.6 build of Atom from #16755. But it fails when using the Electron 2.0.0 build of Atom from this pull request.
|
|
UPDATE: This doesn't appear to be a problem after all. See #17273 (comment) and #17273 (comment).
|
|
@jasonrudolph Depending on the DPI of your screen, this may be expected. I'll try to find the Chromium bug tracker references I mention there for more details. |
@lee-dohm: Thanks for pointing that out! That inspired me to check on my Retina display, and I am indeed seeing subpixel rendering there. So, I'm going to remove that item from the list of regressions related to this upgrade. |
@50Wliu: Thanks for pointing that out. I'm pretty sure that's a change in the GitHub package, and not a result of the Electron upgrade. I installed Atom from the current master branch (using Electron 1.7.14) and then installed I'll ping the folks working on the GitHub package to see if they're aware of that change. |
|
I'm trying to test the final item in the checklist, but I think the repro steps might be out of date:
In the "Fine Tuning" tab, I don't see anything about "Menubar style." @Ben3eeE or @daviwil: Would either of you happen to know what I need to do to replicate these setup steps? I'm using Ubuntu 18.04 and this version of KDE: |
as per @smashwilson's suggestion, fold github package `0.15.0` into the pr in case we find other blockers. Also this way we don't ship a prerelease version and keep our minor-version-per-Atom-release pattern alive.








This pull request is a work-in-progress. Electron 2.0.0 includes a few breaking API changes that we'll likely need to work through in order to get Atom running smoothly on Electron 2.0.0.
TODO
Regressions to fix before merging
Known bugs resolved by this upgrade
Fixes #12338
Electron Upgrade Test Manifest
Review issues tagged with
electronto see if any of them are fixedVerify that you can collaborate with Teletype
Steps
Text Input/Keybindings
See how to setup keyboard layouts.
IME not working (1.19.0-beta2: Cursor stucks at the first letter when using macOS Chinese IME #14911)
Repro steps
zhongwenshuruExpected: in Pinyin simplified
中文输入is expectedIssues we've seen: Only shows latin first character and not every character typed.
macOS: Key binding with composition characters are ignored (key-mappings with
altdon't suppress Mac OS composition characters anymore (atom-1.19) #15189)Repro steps
ABC - Extendedkeyboard layoutExpected: the keybindings work
Issues we've seen: it types out the modified keys and ignores the key mapping
macOS: Composition characters mess up insertion point (Composition characters mess up insertion point #15344)
Repro steps
Expected: Both alt-o and alt-n behave the same
Issues we've seen:

Ubuntu: Keystrokes involving ctrl resolve to the default layout instead of the active layout (Keystrokes involving ctrl on Linux resolve to the default layout instead of the active layout #13170)
Repro steps
This should be tested on Linux with gnome
Expected:
core:closeto dispatch (Or the keybinding-resolver to resolve to ctrl-w). Should be resolving to the keyboard layout that is chosen and not the OS default layout.Issues we've seen:
core:undodispatched because it was resolved as ctrl-z because AZERTY has Z where W is on QWERTY.Other keyboard layouts on new Electron version
UI
tree-view drag image (Display the correct drag image on Electron >= 1.14 tree-view#1054)
Repro steps
Expected:

Issues we've seen:
drag-and-drop indicator (Fix missing drop indicator on Electron >= 1.14 tree-view#1055, Fix missing drop indicator on Electron >= 1.4 tabs#426, Fix mistakenly shown docks drop indicator on Electron >= 1.4 tabs#437)
Repro steps
atom folderA folderB folderC)Expected:
The placeholder indicates where the folder/project is being dropped to.
Issues we've seen:
No placeholder shows up after drag and dropping
Large file rendering (Bad rendering after ~1 million lines #16591)
Repro steps
Expected: To not regress the number of lines that can be rendered. Rendering to be correct for lines past a certain point. Atom 1.25 can render around 800k to 1 million lines correctly.
Issues we've seen: Increased number of lines rendered but bad rendering past a certain point
Loss of subpixel AA when the cursor is at the end of long lines (Loss of subpixel AA on soft-wrapped line #16889, Don't break subpixel AA when cursor is at the end of longest line #16595)
Repro steps
auntil the you reach the end of the windowExpected: To not lose subpixel AA
Issues we've seen: Loss of subpixel AA. Both when soft wrapping was enabled and disabled.
Scrolling horizontally shift + scroll wheel (Upgrade Electron to v1.6.x #12696 (comment))
Repro steps
Expected: File to scroll horizontally in both directions
Issues we've seen: File does not scroll horizontally at all in any direction
Scrollbars misbehaving on the first file that is opened (Upgrade Electron to v1.6.x #12696 (comment))
Repro steps
Expected: Scrollbar to be visible
Issues we've seen: Scrollbar is not visible and is flickering when you are editing
Middle clicking on unsaved tab (1.19, Linux: Middle-clicking an unsaved tab causes entire desktop to be unresponsive to clicks #15197)
Repro steps
Expected:
Clicking save/cancel or the options on the dialog works.
Issues we've seen:
The UI and the dialog is unable to receive mouse clicks. You can still choose options via Keyboard, but not mouse.
Linux: Atom scrolls even when not focused (Atom scrolls even when not focused #15482)
Repro steps
Expected: Atom window should keep the original scroll position
Issues we've seen: The Atom window scrolls after it is focused
Other
Deprecation warnings (Upgrade Electron to v1.6.x #12696 (comment))
Repro steps
This should be tested on macOS, Linux and Windows with community packages installed
Expected: No new deprecation warnings
Issues we've seen: New deprecation warnings both from core and community packages
Supported Versions of OS (Atom 1.19.0 crashes instantly after launching #15297)
Repro steps
Expected: https://atom.io and https://atom.io/faq to display the same versions as the Electron documentation
Issues we've seen: macOS version support changed and https://atom.io and https://atom.io/faq was not updated
macOS : Native tabs (Native tabs on macOS #14711)
Repro steps
Show Tab BarExpected:
Native Tab bar shows up and able to drag different windows to each other. Also make sure UI isn't messed up.
Issues we've seen:
Native Tab Bar doesn't work and messes up UI when enabled
Ubuntu with KDE: Menu uses 100% CPU (Globalmenu consumes 100% CPU and does not work electron/electron#8455, Menus not working in plasma 5.9 with global menu enabled #13885)
Repro steps
Expected:
Desktop menu items work
Issues we've seen:
Desktop menu items do nothing when you click on things.
macOS: Slovak QWERTZ (Slovak QWERTZ does not resolve keys correctly on macOS atom-keymap#223)
Repro steps
cmd+'.Expected: Resolves to
cmd+'like it shows on keyboard viewer on mac.Issues we've seen: It resolves to
ctrl+§macOS: IME jump (1.20.0: Popup jump when using macOS Chinese IME #15696)
Repro steps
Expected:
Expected the IME to be positioned at under the character you entered
Issues we've seen: The IME window is in the top left corner. When you enter the second character it jumps to be positioned under the text
/cc @codebytere