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 has been archived by the owner on Mar 3, 2023. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When renaming an opened file in a git repository with the tree view, it shows the line Cannot read property 'getPath' of undefined under the dialog (but the file is renamed). The exception is thrown inside the git-diff package and its stack trace is:
Stack trace
TypeError: Cannot read property 'getPath' of undefined
at /usr/lib/atom/node_modules/git-diff/lib/git-diff-view.js:131:45
at Function.simpleDispatch (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:64:14)
at Emitter.emit (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:257:28)
at /usr/lib/atom/src/text-editor.js:820:22
at Function.simpleDispatch (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:64:14)
at Emitter.emit (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:257:28)
at TextBuffer.setFile (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:587:18)
at TextBuffer.setPath (/usr/lib/atom/node_modules/text-buffer/lib/text-buffer.js:554:17)
at /usr/lib/atom/node_modules/tree-view/lib/tree-view.js:149:34
at Function.simpleDispatch (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:64:14)
at Emitter.emit (/usr/lib/atom/node_modules/event-kit/dist/emitter.js:257:28)
at MoveDialog.onMove (/usr/lib/atom/node_modules/tree-view/lib/tree-view.js:1055:36)
at MoveDialog.module.exports.MoveDialog.onConfirm (/usr/lib/atom/node_modules/tree-view/lib/move-dialog.js:65:16)
at HTMLDivElement.Dialog.atom.commands.add.core:confirm (/usr/lib/atom/node_modules/tree-view/lib/dialog.js:53:26)
at CommandRegistry.handleCommandEvent (/usr/lib/atom/src/command-registry.js:405:43)
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/lib/atom/node_modules/atom-keymap/lib/keymap-manager.js:617:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/lib/atom/node_modules/atom-keymap/lib/keymap-manager.js:408:22)
at WindowEventHandler.handleDocumentKeyEvent (/usr/lib/atom/src/window-event-handler.js:153:34)
Steps to Reproduce
Add any git repository to the project.
Open a file inside the repository.
Rename the opened file by right-clicking it in the tree view -> rename.
Prerequisites
Description
When renaming an opened file in a git repository with the tree view, it shows the line
Cannot read property 'getPath' of undefined
under the dialog (but the file is renamed). The exception is thrown inside thegit-diff
package and its stack trace is:Stack trace
Steps to Reproduce
Versions
OS: Arch Linux
Atom:
The text was updated successfully, but these errors were encountered: