New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade electron to 19 #6032
Upgrade electron to 19 #6032
Conversation
Electron 15 has been [unsupported for some time now][1]. Unfortunately, electron 15 also has a [critical bug][2], which causes it to crash immediately when trying to render natively under wayland. This change upgrades the electron dependency to version 19, which is supported, and has fixed the bug. I compiled the desktop app with electron 19 and played around with it a little, and I did not experience any strange behavior. [1]: https://www.electronjs.org/docs/latest/tutorial/electron-timelines [2]: electron/electron#32487
Fixes #4288 |
I tested locally and this does not fix #5010 |
Thanks, I will check this after 0.7.7 is released. |
Fixes #6052 |
Closes #5642 |
I'd suggest @andelf @GrantMoyer to take the opportunity to make all minor updates possible with this update. On my local branch (https://github.com/DoodlesEpic/Logseq/tree/update-electron-19) without breaking the build (and at least to the extent of my testing any features) I've managed to do all minor updates available reducing substantially the number of outdated direct deps of Logseq. There's a few other updates that would be interesting including a few ones that would require major updates and solve somewhat serious vulnerabilities including one with node-fetch: GHSA-r683-j2x4-v87g although I'm not sure how affected Logseq is by this one. |
It seems that block references are partially-broken, after the update. They still work, but the "linked references" section doesn't render properly, after you click on it. If you click on the little (1) button to "open block references," the entire app crashes with the following message:
No, a re-index doesn't fix it. |
Another issue: from "journal view," if you click on a page link, do some modifications, then "go back" to the journal view, you will be taken to a journal entry far earlier than the one you left from. If you scroll up, to return to where you were, the page may either 1) scroll back to the proper entry, or 2) "jump" above the proper entry - forcing you to scroll down. |
May checkout the latest master? It's related to #6024 I guess |
This looked promising, but no dice. The new config option doesn't seem to work for me.
On the other hand, the block reference issue is fixed, so that's progress. |
I'd like to keep the scope of this PR restricted, especially given the changes which will apparently be needed.
Thanks for finding these issues. I'll look into them. |
I couldn't reproduce this issue, but it looks like it's been fixed anyway.
This doesn't seem to be caused by the electron update. I can indeed reproduce this with this branch (a5d71c8). However, I have 0.7.6 (8e3b8f0) compiled against electron 19 installed on my system, and this issue is not present. I just double checked, and I also see this issue at the point where this PR branched from master (5c29517). |
This issue is gone for me with the latest merge from master. |
Really? I'm still seeing the same behavior as #6124. Anyway, probably not an issue with the Electron update. |
We are going to upgrade in recent days. But thorough tests required beforehand. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
BTW, electron 20.0.0 was released 2 days ago.
Should we go for it? @logseq/core
@andelf Why not? It seems that all the breaking changes for 20.0.0 are not related to us. |
Since they now include this flag, can we have Wayland by default? electron/electron#35015 |
Will merge this now. (which will be included in the nightly release) |
What about Electron 21? there is Chromium 106! |
Electron 15 has been unsupported for some time now. Unfortunately, electron 15 also has a critical bug, which causes it to crash immediately when trying to render natively under wayland (specifically wlroots based compositors). This change upgrades the electron dependency to version 19, which is supported, and has fixed the bug.
I compiled the desktop app with electron 19 and played around with it a little, and I did not experience any strange behavior.