Can't stage files after Stage All
with project on D: drive #1801
Description
Edit by @rsese to add my notes from #1801 (comment)
I played around with things more so I'll leave some notes here, tested on Windows 10 with Atom 1.32.2.
- Started by plugging in a flash drive to use as my D: drive
- In Git Bash, I created a test directory
mkdir test-gh; cd test-gh
- Added a file
echo "Hello World" >> README.md
atom .
At this point I found that if I open the Git panel I see the "Unsupported directory" + "Atom does not support managing Git repositories in your home or root directories" message, so you can't initialize a repo from the Git panel.
But then if I do a git init
and an initial commit in Git Bash:
git init
git add README.md
git commit -m "Initial commit"
- Reload Atom
After reloading Atom, the Git panel shows up normally. If I make and save a change, it shows up in Unstaged Changes
and at this point, if I right-click and Stage
the file, that works ok and I can commit that change.
But where it seems to break is if I click Stage All
, I see a "Uncaught (in promise) Error: EINVAL: invalid argument, read` message in devtools console. At this point I can no longer right-click to stage a change unless I reload/restart Atom.
The "Atom does not support managing Git repositories in your home or root directories" doesn't seem right since I've created a subdirectory under D:
? Then the other issue seems to be the error from Stage All
which then prevents things from working while right-clicking to stage a single file works.
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
When I click on Stage All, Unstage All, right click a file and click stage, nothing happens.
In console I get this error:
VM22 <embedded>:14 Uncaught (in promise) Error: EINVAL: invalid argument,
Steps to Reproduce
- Open Git on the sidebar
- Click on Stage all, Unstage All, right click a file -> Stage
Expected behavior: [What you expect to happen]
For my files to move to Staged Changes or Unstaged changes
Actual behavior: [What actually happens]
Files don't move.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
You can get this information from copy and pasting the output of atom --version
and apm --version
from the command line. Also, please include the OS and what version of the OS you're running.
Atom : 1.32.2
Electron: 2.0.9
Chrome : 61.0.3163.100
Node : 8.9.3
Windows: 10
Additional Information
When I do apm --version I get this:
internal/child_process.js:323
throw errnoException(err, 'spawn');
^
Error: spawn UNKNOWN
at _errnoException (util.js:1024:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at exports.spawn (child_process.js:502:9)
at EventEmitter.<anonymous> (C:\Users\Adrian\AppData\Local\atom\app-1.32.2\resources\app\apm\lib\apm-cli.js:169:17)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)