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 '10' of null when attempting to stage files in specific repo #2257
Open
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
In one specific repository, Drag-dropping repository files from one folder to another and attempting to stage both delete and add of file renders Git unsuable in Atom for specific repository. At one point in time, this somehow made Atom save .git file to root project repository, causing Atom to read all projects as part of affected repository.
Steps to Reproduce
- Fork this repository: https://github.com/Moonchopper/Atom-Broken-Temp
- Open Atom in safe mode and use
File -> Open Folder -> <Select the Atom-Broken-Temp repository>
- Move
ui-actions\em_alert\form_actions\copy_to_clipboard\copy_to_clipboard.js
toui-actions\em_alert\form_actions\copy_to_clipboard.js
- Attempt to stage both the
delete
andadd
change - Atom will now be in a broken state, and is not fixed by restarting Atom or reinstalling it.
Expected behavior:
Atom should stage the add
and delete
changes and remain properly operational as if you had created or deleted any other file.
Actual behavior:
- Atom will seemingly remain responsive - you can still click around and edit/make changes to files, but they will not be reflected in the Git tab.
- When clicking on whatever the second file you attempted to stage was (does not matter which file), the Atom icon will hang and never load the Git diff.
- The changes you initially tried to stage will never stage, and the Git tab will remain broken any time you attempt to load this specific repository.
- Neither restarting or reinstalling Atom will solve the problem. The only fix is to delete the repository in its entirety and re-clone it.
- Manually creating a new file in the directory you desire the code to be in, copying code over to the new file, and deleting the old file exhibits the same broken behavior.
- Running atom in safe mode and using
--clear-state-store
does not resolve the trouble.
Reproduces how often:
100% of the time
Additional Information
Developer console indicates the following error at time of breaking Atom, and for every load of the project thereafter:
Uncaught (in promise) TypeError: Cannot read property '10' of null
at parseUnmergedEntry (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3098719)
at parseLine (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3099129)
at Stream.<anonymous> (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3099518)
at Stream.emit (events.js:182:13)
at drain (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3585711)
at Stream.d.queue.d.push (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3585929)
at emit (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3502657)
at next (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3502844)
at Stream.<anonymous> (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3502876)
at Stream.d.write (C:\Users\Moonchopper\AppData\Local\atom\app-1.40.1\resources\app\static\<embedded>:14:3585839)
at Readable.ondata (_stream_readable.js:672:20)
at Readable.emit (events.js:182:13)
at Readable.read (_stream_readable.js:492:10)
at flow (_stream_readable.js:920:34)
at emitReadable_ (_stream_readable.js:553:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
Versions
OS: Windows 10
Version: 10.0.17134 Build 17134
Version:
C:\Users\Moonchopper>atom --version
Atom : 1.40.1
Electron: 3.1.10
Chrome : 66.0.3359.181
Node : 10.2.0
C:\Users\Moonchopper>apm --version
apm 2.4.3
npm 6.2.0
node 10.2.1 x64
atom 1.40.1
python
git 2.11.0.windows.3
visual studio