Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Uncaught (in promise) TypeError: Cannot read property 'quietlySelectItem' of undefined #1399

Closed

Description

@Ben3eeE

Prerequisites

Description

Right click on a file and choose view staged changes or view unstaged changes

github unstaged changes error

Uncaught (in promise) TypeError: Cannot read property 'quietlySelectItem' of undefined
    at GitTabController.quietlySelectItem (C:\Users\lineri\Desktop\issues\atom_master\atom\out\Atom x64\resources\app\node_modules\github\lib\controllers\git-tab-controller.js:470:34)
    at RootController.quietlySelectItem (C:\Users\lineri\Desktop\issues\atom_master\atom\out\Atom x64\resources\app\node_modules\github\lib\controllers\root-controller.js:603:72)
    at C:\Users\lineri\Desktop\issues\atom_master\atom\out\Atom x64\resources\app\node_modules\github\lib\controllers\root-controller.js:649:22
    at Generator.next (<anonymous>)
    at step (C:\Users\lineri\Desktop\issues\atom_master\atom\out\Atom x64\resources\app\node_modules\github\lib\controllers\root-controller.js:138:197)
    at C:\Users\lineri\Desktop\issues\atom_master\atom\out\Atom x64\resources\app\node_modules\github\lib\controllers\root-controller.js:138:367
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:109:7)

Steps to Reproduce

  1. Open Atom in safe mode .\atom --safe from cmd.exe in atom/atom
  2. Open application-delegate.js
  3. Right click on the file and pick view staged changes or view unstaged changes

Note: Same exception appears if you do this even where there are staged or unstaged changes.

Expected behavior:

Nothing to happen or a message that there are no staged or unstaged changes because there are none.

Actual behavior:

Exception in the console

Reproduces how often:

100%

Versions

Atom : 1.28.0-dev-603dc5a05
Electron: 1.7.11
Chrome : 58.0.3029.110
Node : 7.9.0

Additional Information

Related to #951 which is an exception when trying to view staged/unstaged changes on untitled buffers.

Activity

  1. added a commit that references this issue on Apr 19, 2018
    3b60042
  2. smashwilson commented on Apr 19, 2018

    @smashwilson
    Contributor

    Fixed in 3b60042 directly on 0.14-releases and by #1390 on master. ✨

  3. dwelle commented on Apr 24, 2018

    @dwelle

    👍 any date on release of this fix?

  4. Ben3eeE commented on Apr 24, 2018

    @Ben3eeE
    ContributorAuthor

    @dwelle The fix for this issue is currently scheduled to be included in the next beta hotfix.

  5. dwelle commented on Apr 27, 2018

    @dwelle

    No backport to stable? Will need to downgrade atom from zip file otherwise, since this bug makes this package very hard to use.

    edit: can actually be "fixed" manually via apm i github@0.14.2

  6. added a commit that references this issue on May 7, 2018
    6b62f9c
  7. smashwilson commented on May 7, 2018

    @smashwilson
    Contributor

    No backport to stable?

    I didn't actually know this affected stable 😅

    I've backported the fix to the 0.12 release line in 6b62f9c. I don't know if we're planning to do another hotfix of Atom 1.26 or not, but if we do it'll be there.

  8. added 2 commits that reference this issue on Sep 29, 2026
    98410ef
    13e4484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions