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
"Open in Atom" menu item despite Atom not being installed #2551
The Repository menu presents me with the Open in Atom option despite Atom not being installed.
When I click it, I get an error message:
In the configuration, only VSCode and Sublime are available (which is correct, both are installed). VSCode seems to be selected, but as indicated by the menu item, it's not internally / in GitHub Desktop's config.
Selecting Sublime and switching back to VSCode fixes it:
Version
GitHub Desktop version: 0.8.0 OS version: Microsoft Windows [Version 10.0.15063]
Steps to Reproduce
Install GitHub Desktop (or clear the local storage files in AppData\Roaming\GitHub Desktop\Local Storage)
Open the Repository menu
Observe the non-functional Open in Atom menu
Expected behavior: the menu item should match the selected external editor in Options -> Advanced with a fresh config Actual behavior: it's always Atom
Reproduces how often: 100%
Additional Information
Atom used to be installed on my system, so maybe something is left-over that makes GitHub Desktop think it's still around. This seems unlikely as it's not presented in the external editor dropdown-menu however.
@tierninho that's an interesting spot to have your Atom installation 🤔 🤔 🤔
Thinking on this some more, I avoided populating the initial value set for your selected editor because I wanted to avoid adding any additional work to the critical path for launching the app. But the confusion here about displaying Atom even when it's not installed probably means I should revisit this.
@tierninho@j-f1 well it seems to be failing as expected here (we check that the Atom shim exists before launching), so I'm not sure that one is something we can fix in Desktop.
Activity
coaperator commentedon Aug 26, 2017
I have a standard Notepad ++ editor.
In the settings there is only Visual Studio Code, and Notepad ++ is not present.
The same error appears.
j-f1 commentedon Aug 26, 2017
@coaperator The Notepad++ editor isn’t supported yet in Desktop.
coaperator commentedon Aug 26, 2017
@j-f1 This is bad!
Notepad++ is an excellent editor, it is necessary to do its support
Is intellij idea editor supported?
shiftkey commentedon Aug 27, 2017
@coaperator please have a read of our documentation around the editor integration.
tierninho commentedon Aug 28, 2017
Adding some color here as the bug is reproducible. Looks like no registry key is found for the editor selection.
I have no external editors installed. Tested in Windows 10, v0.8.0.
Additionally, getting the this odd error in 0.8.1-beta2 for Mac, despite Atom being installed:
Derkades commentedon Aug 30, 2017
I have the same issue in a fresh GitHub install on a fresh Windows 7 OS. Atom option appears but doesn't work. Only Notepad++ installed.
shiftkey commentedon Aug 30, 2017
@tierninho that's an interesting spot to have your Atom installation 🤔 🤔 🤔
Thinking on this some more, I avoided populating the initial value set for your selected editor because I wanted to avoid adding any additional work to the critical path for launching the app. But the confusion here about displaying Atom even when it's not installed probably means I should revisit this.
shiftkey commentedon Aug 31, 2017
@coaperator @Derkades please have a read of #2487 where we are talking about support for other editors.
tierninho commentedon Aug 31, 2017
@shiftkey I believe Atom was downloaded there automatically, as I never moved it there myself. 🤔
j-f1 commentedon Aug 31, 2017
@shiftkey @tierninho I had this happen — That’s the location where Squirrel downloads the update to, and it somehow thinks that it’s the ”real” atom.
shiftkey commentedon Aug 31, 2017
@tierninho @j-f1 well it seems to be failing as expected here (we check that the Atom shim exists before launching), so I'm not sure that one is something we can fix in Desktop.