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 }}
Repository navigation
Editor integration can cache incorrect path if update occurs while enumerating #6324
It appears Github Desktop doesn't like Atom Nightly much.
After I updated Atom to the latest version, Github Desktop complains it can't open the external editor:
I don't know why it's looking in my Caches for the app:
When I open preferences it's marked correctly:
Any tips on how to fix this issue or prevent it from happening again after an updated?
It would appear to me that our current integration can not distinguish between Atom, Atom Beta and Atom Nightly particularly on macOS where they all have a bundle identifier of com.github.atom.
The best theory I have about this is that our detection of Atom doesn't work well when we query for it while it's being updated. The error message there contains the path com.github.atom.ShipIt which suggests when the app queried for the install location the files were in a temporary location, so perhaps we should ignore this path and not cache it.
I think there's some other potential headaches here because once we do this initial check we cache the values, so we'd consider Atom "missing" rather than try and look for it again. #6114 has some extra context about how to handle changes to editors without restarting Desktop.
I think that theory makes sense. Sometimes what happens as well, is that Github desktop opens a "different" version of Atom than what I already have open and running. Presumably this also happens after an update. So that leaves me with two distinct instances of Atom running.
Let me know if there's anything else I can do to help investigate.
It would appear to me that our current integration can not distinguish between Atom, Atom Beta and Atom Nightly particularly on macOS where they all have a bundle identifier of com.github.atom.
There's been some packaging changes to the Atom beta and nightly channels recently, and I was hoping this was no longer the case, but it still appears they are the same bundle id:
This is also an additional pain, because the current app behaviour is probably not what you expect when you have all three installed:
Ideally I'd love for each channel to be an option here that we can detect, but that requires asking the Atom team to break their beta and nightly channels to change the bundle identifiers.
Putting that aside, I think there's two potential solutions here:
don't cache paths that we know don't make sense, for that situation where an update is happening. This feels a bit editor specific, but maybe there are other situations where we'd also need to do this
I'm going to update the issue to indicate this is related to updates and caching paths, rather than the specific editor channel.
changed the title [-]Github Desktop doesn't like Atom Nightly[/-][+]Editor integration can cache incorrect path if update occurs while enumerating[/+]on Jul 30, 2019
It may help to add another data point to this issue. I have experienced the equivalent error for the VS Code editor, because I moved Visual Studio Code.app from Downloads (where GitHub Desktop is looking for it) to Applications (where launcher finds it, but not GHD).
Activity
adamreisnz commentedon Dec 1, 2018
In the end I had to re-install the shell commands for Atom and restart Github Desktop a few times to get this to work again.
billygriffin commentedon Dec 3, 2018
Huh, that is strange @adamreisnz. @desktop/engineering or @desktop/support any ideas why this would happen?
@adamreisnz Would you mind letting us know if the next time you update Atom you experience the same issue?
adamreisnz commentedon Dec 3, 2018
billygriffin commentedon Dec 3, 2018
Not at the moment, just that would be helpful for now. Thank you!
say25 commentedon Dec 4, 2018
I wonder if we need to support Atom Nightly like we do VS Code Insiders?
https://github.com/desktop/desktop/blob/development/app/src/lib/editors/linux.ts#L7. I can take a look tonight and see if that might resolve it.
billygriffin commentedon Dec 4, 2018
That'd be great if you wouldn't mind looking into it @say25. Thanks!
say25 commentedon Dec 5, 2018
It would appear to me that our current integration can not distinguish between Atom, Atom Beta and Atom Nightly particularly on macOS where they all have a bundle identifier of
com.github.atom.adamreisnz commentedon Dec 15, 2018
@billygriffin It's happened again, on my laptop this time.
shiftkey commentedon Dec 17, 2018
The best theory I have about this is that our detection of Atom doesn't work well when we query for it while it's being updated. The error message there contains the path
com.github.atom.ShipItwhich suggests when the app queried for the install location the files were in a temporary location, so perhaps we should ignore this path and not cache it.I think there's some other potential headaches here because once we do this initial check we cache the values, so we'd consider Atom "missing" rather than try and look for it again. #6114 has some extra context about how to handle changes to editors without restarting Desktop.
adamreisnz commentedon Dec 17, 2018
I think that theory makes sense. Sometimes what happens as well, is that Github desktop opens a "different" version of Atom than what I already have open and running. Presumably this also happens after an update. So that leaves me with two distinct instances of Atom running.
Let me know if there's anything else I can do to help investigate.
shiftkey commentedon Jul 30, 2019
There's been some packaging changes to the Atom beta and nightly channels recently, and I was hoping this was no longer the case, but it still appears they are the same bundle id:
This is also an additional pain, because the current app behaviour is probably not what you expect when you have all three installed:
Ideally I'd love for each channel to be an option here that we can detect, but that requires asking the Atom team to break their beta and nightly channels to change the bundle identifiers.
Putting that aside, I think there's two potential solutions here:
I'm going to update the issue to indicate this is related to updates and caching paths, rather than the specific editor channel.
[-]Github Desktop doesn't like Atom Nightly[/-][+]Editor integration can cache incorrect path if update occurs while enumerating[/+]dboyce-gh commentedon Oct 9, 2020
It may help to add another data point to this issue. I have experienced the equivalent error for the VS Code editor, because I moved Visual Studio Code.app from Downloads (where GitHub Desktop is looking for it) to Applications (where launcher finds it, but not GHD).
sarankani commentedon Oct 29, 2021
I got this error
