Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Update Electron to 0.37 - #11474

Merged
as-cii merged 29 commits into
masterfrom
wl-electron-37
May 23, 2016
Merged

as-cii merged 29 commits into
masterfrom
wl-electron-37

Conversation

@winstliu

@winstliu winstliu commented Apr 14, 2016 •

Copy link
Copy Markdown
Contributor

Naïve bump to Electron 37 to see what broke and what got fixed.

Blocked on #11348

TODO:

  • Fix background throttling (text-editor-component-spec.coffee fails even if we disable throttling, which means those specs need to be revamped because they're too time sensitive)
  • Fix autocomplete-plus specs (bb46933)
  • Fix find-and-replace specs (bb46933)
  • Fix tree-view specs (Fix copy/pasting files under certain scenarios tree-view#649)
  • Fix subpixel AA on non-editor elements
  • Test for regressions

Closes #6320
Unblocks atom/atom-keymap#35
If anyone knows of any other issues that are resolved with the upgrade to 0.37 please let me know!

/cc @lee-dohm

@winstliu winstliu changed the title ⬆️ [email protected] Update Electron to 0.37.5 Apr 14, 2016
@winstliu

winstliu commented Apr 14, 2016 •

Copy link
Copy Markdown
Contributor Author

Three failing core specs, one of which is already flaky (I think).
The other two reference invalid atom.asar archives, which is suspiciously similar to the error reported in #11348 (comment).

@winstliu

Copy link
Copy Markdown
Contributor Author

@nathansobo I noticed you also bumped some timeouts in a35e246 and 21f8ad6 - do those need to be reverted as well (and do you recall any other parts of the code with extended timeouts)?

@winstliu

winstliu commented Apr 15, 2016 •

Copy link
Copy Markdown
Contributor Author

Crash while running specs in https://travis-ci.org/atom/atom/jobs/123212713#L246.

Just noticed backgroundThrottling hasn't been released yet - we'll need to wait for 0.37.6.

@as-cii as-cii changed the title Update Electron to 0.37.5 Update Electron to 0.37.6 Apr 15, 2016
@nathansobo

Copy link
Copy Markdown
Contributor

@50Wliu Yes, if we've fixed throttling we should revert to the normal timeouts.

@Nikki1993

Copy link
Copy Markdown

@50Wliu I assume we need to include commits from 0.36.12 PR as well with this PR?

@winstliu

Copy link
Copy Markdown
Contributor Author

@Nikki1993: Yup, that's why it has the blocked label right now. After 0.36.12 is on master I'll rebase from master.

@Nikki1993

Nikki1993 commented Apr 24, 2016 •

Copy link
Copy Markdown

@50Wliu Cool, I went ahead and created a patch for both PR, so that I can easily apply it each time I sync atom from master.

I thing I noticed immediately is much faster cold startup time and general increase in responsiveness. This entire time I worked with it, I had 0 issues or new regressions introduced (apart from already reported on github).

Let me know if there is any additional testing I can do, or anything if that matters, to speed up the PR merge.

@Nikki1993

Copy link
Copy Markdown

Electron 37.7 has been released 2 days ago btw, https://github.com/electron/electron/releases/tag/v0.37.7

@Nikki1993

Copy link
Copy Markdown

@winstliu winstliu changed the title Update Electron to 0.37.6 Update Electron to 0.37 Apr 29, 2016
@as-cii as-cii removed the blocked label Apr 30, 2016
@awnumar

awnumar commented Apr 30, 2016

Copy link
Copy Markdown

I've been running a manual update for weeks. No problems. Arch linux.

@thorade

thorade commented May 11, 2016

Copy link
Copy Markdown

Electron 1.0 has been released:
http://electron.atom.io/blog/2016/05/11/electron-1-0

@Nikki1993

Copy link
Copy Markdown

@thorade

thorade commented May 12, 2016

Copy link
Copy Markdown

@Nikki1993 impossible to keep up with that... But the 1.x promise is to keep the API stable.

@Nikki1993

Copy link
Copy Markdown

@thorade yep. Unfortunately, this PR, most likely, will have to stop at electron 0.37.8 since 1.0.1 removes deprecated, but not flagged as such, APIs. Better upgrade to electron 0.37.8, see if there are any used deprecated APIs, refactor the code and create a separate 1.x PR. Or so that's what @50Wliu would do I gather :D

@winstliu

Copy link
Copy Markdown
Contributor Author

Exactly :). Need to give package authors time to update all their code as well!

@damieng

damieng commented May 13, 2016 •

Copy link
Copy Markdown
Contributor

I think some of the crashing bugs we're getting in Atom 1.7.0-3 are related to Electron 0.36.8

Where are we with this PR?

@winstliu

Copy link
Copy Markdown
Contributor Author

I've been using it for about a week and the only regression I've found so far is lack of subpixel anti-aliasing (but I have no idea how to fix that). The other problem is background throttling but I've reverted the timeout decreases so those specs are passing again.

Antonio Scandurra added 7 commits May 16, 2016 18:10
In Electron 0.37.3 the default background color has changed from white
to transparent, and as per the sub pixel anti-aliasing specification,
the layer which hosts the glyphs that need to be rendered needs to have
an opaque background.

We have also observed that upon reload everything seems to work smoothly
even without this fix: this probably points in the direction of a
regression in Electron, but in the meantime this fix should suffice to
allow us to proceed.
@as-cii
as-cii merged commit 720ad9c into master May 23, 2016
@as-cii
as-cii deleted the wl-electron-37 branch May 23, 2016 09:07
@as-cii

as-cii commented May 23, 2016

Copy link
Copy Markdown
Contributor

🎉 🎉 🎉

Thanks for your work on this, @50Wliu!

@v3ss0n

v3ss0n commented Jul 4, 2016

Copy link
Copy Markdown

When we are going to upgrade directly to electron 1.0?

@damieng

damieng commented Jul 4, 2016

Copy link
Copy Markdown
Contributor

@v3ss0n

v3ss0n commented Jul 4, 2016

Copy link
Copy Markdown

@damieng thanks !

@pratyushbarik

Copy link
Copy Markdown

Resolves #5359

@s0ber

s0ber commented Aug 31, 2016

Copy link
Copy Markdown

@50Wliu Chromium version, used in this update, is very slow with rendering huge SVG documents (with lots of text nodes). I am right now creating atom package, which allows to draw different diagrams. And now it is super slow. It is really frustrating, because latest Chrome version has fixed this issue.

So, previously everything was fast in Atom and slow in Chrome. And now it is vice versa. =(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Atom freezes when clicking web links in settings tab without the web browser already open

10 participants