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 was archived by the owner on Dec 15, 2022. It is now read-only.
Make changes to foo.txt and open the unstaged changes tab
Clear the selection
Right click outside the changes and pick unstage selection
Expected behavior:
Noop
Actual behavior:
Uncaught (in promise) TypeError: Cannot read property 'getLines' of undefined
at FilePatch.getStagePatchForHunk (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\models\file-patch.js:48:65)
at C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\controllers\file-patch-controller.js:319:103
at Generator.next (<anonymous>)
at step (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\controllers\file-patch-controller.js:60:197)
at C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\controllers\file-patch-controller.js:60:443
at C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\controllers\file-patch-controller.js:60:105
at FilePatchController.stageHunk (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\controllers\file-patch-controller.js:321:13)
at FilePatchController.stageOrUnstageHunk (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\controllers\file-patch-controller.js:339:25)
at FilePatchController.attemptHunkStageOperation (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\controllers\file-patch-controller.js:357:16)
at FilePatchView.setState (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\views\file-patch-view.js:524:26)
at CallbackQueue.notifyAll (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\CallbackQueue.js:74:28)
at ReactUpdatesFlushTransaction.close (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\ReactUpdates.js:57:30)
at ReactUpdatesFlushTransaction.closeAll (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\Transaction.js:207:31)
at ReactUpdatesFlushTransaction.perform (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\Transaction.js:154:22)
at ReactUpdatesFlushTransaction.perform (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\ReactUpdates.js:87:38)
at Object.flushBatchedUpdates (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\ReactUpdates.js:170:25)
at ReactDefaultBatchingStrategyTransaction.closeAll (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\Transaction.js:207:31)
at ReactDefaultBatchingStrategyTransaction.perform (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\Transaction.js:154:22)
at Object.batchedUpdates (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\ReactDefaultBatchingStrategy.js:60:32)
at Object.enqueueUpdate (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\ReactUpdates.js:198:28)
at enqueueUpdate (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\ReactUpdateQueue.js:22:22)
at Object.enqueueCallback (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react-dom\lib\ReactUpdateQueue.js:120:11)
at FilePatchView.ReactComponent.setState (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\react\lib\ReactBaseClasses.js:64:24)
at FilePatchView.didClickStageButtonForHunk (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\views\file-patch-view.js:523:18)
at FilePatchView.didConfirm (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\node_modules\github\lib\views\file-patch-view.js:540:23)
at CommandRegistry.handleCommandEvent (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\src\command-registry.js:381:36)
at CommandRegistry.dispatch (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\src\command-registry.js:266:23)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\src\atom-environment.js:1388:34)
at EventEmitter.outerCallback (C:\Users\abneyl\AppData\Local\atom\app-1.22.0-beta2\resources\app\src\application-delegate.js:348:31)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
Prerequisites
Description
Steps to Reproduce
.\atom --safefromcmd.exefoo.txtand open the unstaged changes tabunstage selectionExpected behavior:
Noop
Actual behavior:
Reproduces how often:
100%
Versions
Additional Information
The files were located on a network share, staging actions can take a second or more.