Conversation
|
In case any package authors are looking at this, here's a list of packages that need to be updated: |
|
We should set |
|
What is the status on this? Excited to see work on this! |
|
@hultberg We're currently blocked by less/less.js#2953. Hopefully once the Less.js upgrade is dealt with, we can continue the stepwise upgrade towards the latest release of Electron. |
bc65aa0 to
e21501b
Compare
e21501b to
e8e2bc6
Compare
|
Updating Electron to v1.1.x (and newer) is currently blocked on path assertions introduced in Node with nodejs/node#5348. Essentially we are no longer allowed to pass The "easy" option is to monkey patch the Deviating from Node proper by patching in support for |
|
@thomasjo This is unavoidable, as node progresses. I don't think we should patch path functions, as this perpetuates the issue. This was done for a reason, and we should fix any area in core that is affected. I would advocate for ensuring that we deal with packages that fall afoul of this via:
|
|
@joefitzgerald As we discussed elsewhere, I agree. We should fix this properly, and as mentioned, I believe this will require us to bump Atom's major version since we will likely Break The World™ 🎱 I've started fixing the issues, and will keep updating the PR description as I identify (and fix) problematic code in core and bundled packages. As of writing this, I will at least have to patch tree-view and autocomplete-plus, but I suspect there are others. Opening PRs on community packages will have to wait, but if someone wants to start testing this PR against their community packages and resolving issues there, that would be amazing 💖 |
|
@simurai It seems that on this new version of Chrome ( Could you build this branch when you get a chance, and investigate if there's another way to achieve the desired look of the resize handles? |
|
@maxbrunsfeld Yes, seems Chromium 52 changed how they handle absolutely positioned flexbox items. Should be fixed by using an extra pseudo-element. The One + Atom Material themes still need a separate fix for the horizontal handles. 🔜 |
|
@maxbrunsfeld: @thomasjo reports that we're getting IndexDB errors when |
|
@maxbrunsfeld, @nathansobo: Yeah I can consistently repro this on my machine; start |
|
@maxbrunsfeld @thomasjo Apparently this happens on stable/beta as well. It's not related to this branch. |
|
@thomasjo @nathansobo Please consider, that I am developing a diagram editor (which is an Atom plugin), and when Atom updated to It would be really nice to update Chrome version to more performant one as soon as possible. Thanks for your attention. (I am not creating an issue, since it will be really hard to fix it without updating chromium dependency version.) update for those, who may struggle with such issue: using |
|
For posterity, in #12619 we ended up implementing a slight variation of the routine proposed in the previous comment:
|
Signed-off-by: Nathan Sobo <nathan@github.com>
Signed-off-by: Nathan Sobo <nathan@github.com>
Signed-off-by: Nathan Sobo <nathan@github.com>
Signed-off-by: Nathan Sobo <nathan@github.com>
Signed-off-by: Nathan Sobo <nathan@github.com>
Signed-off-by: Nathan Sobo <nathan@github.com>
getComputedStyle seems to return font families this way in Chrome 52
As of Chromium 52 absolutely positioned flexbox items are taken out of the flow. See https://developers.google.com/web/updates/2016/06/absolute-positioned-children?hl=en To keep it in the flow, we use an absolutely positioned pseudo-element instead.
eb65aac to
bb7ff6d
Compare
|
Thanks so much @thomasjo, @maxbrunsfeld and everyone else involved in this! ❤️ |
|
Yes! Yes!!! I am thinking about using nvm and forget worrying about system node veriosn (6.x vs 4.x) is that a good idea? |

The purpose of this PR is to begin the process of upgrading Electron to the latest release. As of right now, there are a few things that need to be dealt with before that can happen.
The primary problem is that as of Electron v1.1.0, Node.js was upgraded to v6 and that causes some issues.
I believe (and hope) that the only major issue is the usage of older version of graceful-fs in a few of our dependencies. Once those have been resolved, I think we'll be able to sort out the remaining issues in Atom core without too many problems.OK, there are more problems than first anticipated — I'll keep updating the task list below as I identify (and fix) problems.There is another concern though, since Electron v1 removed some deprecated module
requirebits.I propose that in this PR, we perform the upgrade process in stages, one minor version bump at a time, to minimize the number of issues and hopefully keep it reasonable.
Upgrade to v1.0.x
Upgrade to v1.1.x
pathmodule. See Upgrade Electron #12300 (comment).Upgrade to v1.2.x
ATOM_SHELL_INTERNAL_RUN_AS_NODEenv variable inexports/atom.jsUpgrade to v1.3.x
atom-pane-resize-handlesare positioned incorrectly, making it impossible to resize panes with the mouse.Add deprecated shims for legacy electron APIs (where feasible)
Open issues on packages that use removed Electron APIs that we aren't able to shim (because they involve methods called on remote proxy objects).
APIs:
remote.requireWebContents.prototype.loadUrl(renamed toloadURL)WebContents.prototype.getUrl(renamed togetURL)Packages:
Fixes #12591