Skip to content

"Open in Atom" menu item despite Atom not being installed #2551

Closed

Description

@Gama11

Description

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

  1. Install GitHub Desktop (or clear the local storage files in AppData\Roaming\GitHub Desktop\Local Storage)
  2. Open the Repository menu
  3. 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.

Activity

  1. added
    bug
    investigation-needed
    on Aug 26, 2017
  2. coaperator commented on Aug 26, 2017

    @coaperator

    I have a standard Notepad ++ editor.
    In the settings there is only Visual Studio Code, and Notepad ++ is not present.
    The same error appears.

  3. j-f1 commented on Aug 26, 2017

    @j-f1
    Contributor

    @coaperator The Notepad++ editor isn’t supported yet in Desktop.

  4. coaperator commented on Aug 26, 2017

    @coaperator

    @j-f1 This is bad!
    Notepad++ is an excellent editor, it is necessary to do its support
    Is intellij idea editor supported?

  5. shiftkey commented on Aug 27, 2017

    @shiftkey
    Member

    @coaperator please have a read of our documentation around the editor integration.

  6. tierninho commented on Aug 28, 2017

    @tierninho
    Contributor

    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.

    screen shot 2017-08-28 at 1 27 09 pm

    screen shot 2017-08-28 at 1 27 25 pm

    Additionally, getting the this odd error in 0.8.1-beta2 for Mac, despite Atom being installed:

    screen shot 2017-08-29 at 10 21 17 am

  7. Derkades commented on Aug 30, 2017

    @Derkades

    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.

  8. shiftkey commented on Aug 30, 2017

    @shiftkey
    Member

    @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.

  9. shiftkey commented on Aug 31, 2017

    @shiftkey
    Member

    @coaperator @Derkades please have a read of #2487 where we are talking about support for other editors.

  10. tierninho commented on Aug 31, 2017

    @tierninho
    Contributor

    @shiftkey I believe Atom was downloaded there automatically, as I never moved it there myself. 🤔

  11. j-f1 commented on Aug 31, 2017

    @j-f1
    Contributor

    @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.

  12. shiftkey commented on Aug 31, 2017

    @shiftkey
    Member

    @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.

  13. self-assigned this
    on Sep 5, 2017
  14. locked as resolved and limited conversation to collaborators on Jul 20, 2018
  15. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buginvestigation-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions