Repository navigation
Update to Electron 0.36 - #9627
Conversation
|
Is there any way to get more output from Travis? Core specs are (surprisingly) passing but I'm sure there's a bunch of deprecated Electron APIs being used. |
The joy of Atom and Electron having identically-named functions
|
And...specs are failing to run. Not sure how to proceed from here, though I suspect I probably messed up the |
|
Ran the tests locally and it looks like we're hitting electron/electron#3484: The build then proceeds to hang. I'll see if I can figure out what got updated; if not it looks like we'll just have to wait for Electron 0.35.1. |
There was a problem hiding this comment.
I think this file uses ipc-main, but if someone could double-check, that would be great.
|
Specs are still timing out 😞. I can run them fine locally (albeit with a whole bunch of errors), so it might be a Mac/Linux-only issue. All the deprecations in Atom core should be fixed though. |
There was a problem hiding this comment.
I'm thoroughly confused by this right now. Tried both ipc-main and ipc-renderer, but both throw "Cannot find module" errors. Electron is telling me to use ipc-renderer if that means anything.
(It's probably also why core specs finish in 13 secs and fail)
There was a problem hiding this comment.
...switching it back to ipc-renderer makes it work again. Really hope there isn't a race condition of some sort going on here.
|
@zcbenz A few questions:
|
Spelunking to learn...It looks like |
# Conflicts: # package.json # src/application-delegate.coffee
|
@zcbenz From electron/electron@91c4ed2 it looks like the original code had BrowserWindow::executeJavaScriptInDevTools = (code) -> @devToolsWebContents?.executeJavaScript codethen deprecated to deprecate.member BrowserWindow, 'executeJavaScriptInDevTools', 'webContents'which on the surface looks wrong, since Another possible issue is: BrowserWindow::getPageTitle = -> @webContents.getTitle()was deprecated with deprecate.member BrowserWindow, 'getPageTitle', 'webContents'where I'm guessing that |
|
@zcbenz I usually see this in the console the first time the Atom window loses focus after startup: Is this something to worry about? |
I think we should probably pass the window size to the page as part of the url, instead of reading window size in the page, it can save us the resize, which is very expensive.
I created an issue for the crash: electron/electron#4258.
It is an warning message, there is no need to worry about it. It has been fixed in v0.36.5. |
|
So the upgrade to 0.36.7 somehow broke Standard linting... |
|
So for what it's worth this >script\grunt standard
Running "standard:src" (standard) task
Linting files...
✓ No Problems
Done, without errors.
Execution Time (2016-01-31 20:30:39 UTC)
loading tasks 4.1s ████████████████████████████████ 67%
standard:src 2s ████████████████ 33%
Total 6.1sI'll try an entire |
|
Still can't reproduce, even after a full |
|
Windows (8.1)
Mac Yosemite 10.10.5
Linux (Ubuntu 15.00? whatever the latest is)
Notes:
would like to do some more exploratory testing when I get back into town. |
|
Thanks for the update Amy! I merged this into master so that we can use it in some further PRs. There should be ample time to do exploratory testing on master once you get back from vacation! |

Figured I'd get this started and get some more experience with the core atom code, as I'm pretty sure lots of things will need to be changed this time.
https://github.com/atom/electron/releases/tag/v0.35.0
https://github.com/atom/electron/releases/tag/v0.36.0
Fixes #9534
Fixes #9616
Fixes #9901
Fixes atom/tree-view#666
TODO:
executeJavaScriptInDevTools...kinda? Not sure if I actually fixed the underlying deprecation or not.ipc.sendSync()calls on startupRegressions:
Opening Settings or any other file that uses a URI will cause a fake folder to appear in the Tree View (eg- also an issue on master (tested on f6da4a9)config,init-script) andSettings - atom://configor similar to show up in the titlebar. Reproduce by using a new window.atom --foregroundyields an error:The error occurs on the following line: