You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When updating Atom with a project opened (see below for explanation), I have to click "Restart and install..." twice. The first time I click from the About package - this closes the Atom's window but keeps the application running. Then I have to click "Restart and install..." from the menubar to actually update Atom.
Steps to Reproduce
Open Atom
Wait for an update
From the About package, click "Restart and install"
Observe Atom window closing but Atom app still running in foreground
From the menubar, click "Restart and install..." again
Finally have Atom restart itself and install the update
Expected behavior: Clicking the button from the About package immediately restarts Atom and install the update.
Actual behavior: Clicking the button only closes Atom window but keeps the app running in foreground, forcing me to click the menubar's "Restart and install..." menubar item to actually update Atom
Reproduces how often: All the time for Atom, Atom Beta and Atom Nightly
This has hit everyone in my office using Atom. On every update. It has never worked as expected. I'm happy to provide any info if need be... just let me know what to gather.
Here are some notes from the investigation so far:
If you comment out this line, the "Restart and Install Update" action restarts Atom as expected but Atom's state is not reloaded correctly after the update is installed. The result is that it starts up an Atom window with no project loaded. Apparently the this.quitting = true line was added to fix this precise problem in #7234
With the this.quitting = true assignment in place, one thing you'll see in Atom's console log output is the following statement right before the update process stalls:
Sending message to WebContents with unknown ID 1
My suspicion here is that since the browser window is not prevented from being closed here (event.preventDefault() is not called in this event handler), the window closes before some future message passing occurs between the main process and renderer process, causing Atom's shutdown process to stall before the app fully shuts down. We may need to inherit some of the logic of the non-quitting code path so that the shutdown process can complete its operations and close cleanly.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
lockbot
locked as resolved and limited conversation to collaborators
Aug 3, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Prerequisites
Description
When updating Atom with a project opened (see below for explanation), I have to click "Restart and install..." twice. The first time I click from the
About
package - this closes the Atom's window but keeps the application running. Then I have to click "Restart and install..." from the menubar to actually update Atom.Steps to Reproduce
About
package, click "Restart and install"Expected behavior: Clicking the button from the
About
package immediately restarts Atom and install the update.Actual behavior: Clicking the button only closes Atom window but keeps the app running in foreground, forcing me to click the menubar's "Restart and install..." menubar item to actually update Atom
Reproduces how often: All the time for Atom, Atom Beta and Atom Nightly
Versions
Additional Information
Only tested on macOS (High Sierra and Mojave).
This has been happening for several months now, I just did not find the time to report this. 😇
While there is only a single, empty (non-project) Atom window opened, the update procedure works as expected:
atom-nightly --new-window
About
package, click "Restart and install"It looks like some project-related code path is keeping the Atom app from restarting itself correctly. 🤔
The text was updated successfully, but these errors were encountered: