Open AMDChris opened 7 years ago
Thanks for the report! I couldn't reproduce the error on Windows 10 and Atom 1.18.0 - can you confirm if the error is reproducible and if so, can you reproduce in safe mode (atom --safe)?
I tried this on windows 7 ultimate x64 bit and couldn't repro either.
Yes, I can reproduce the issue.
After further testing it appears that even just saving a file so that the Git tab refreshes the changes listed for the repository triggers the error as well. Originally I'd just opened a file that was part of an existing Git repository and then tried to commit the unstaged changes that the Git tab showed for the repository.
The error doesn't appear to get thrown when the Git tab updates when I stage changes and they go from the unstaged to staged lists. It just appears to happen when something new gets added to the unstaged changes list or once a commit is done and all the changes that had been staged get removed from that list.
The issue also occurs when running atom in safe mode.
Interesting — this code path is just to inform Atom's internal Git information that things have changed (in order to update the tree-view and gutter colors) when we detect a certain class of change. I'm not sure why it'd be throwing; we'll look into it. Thanks!
[Enter steps to reproduce:]
Atom: 1.18.0 x64 Electron: 1.3.15 OS: Microsoft Windows 7 Enterprise Thrown From: github package 0.3.3
Stack Trace
Uncaught TypeError: atomGitRepo.refreshStatus is not a function
Commands
Non-Core Packages