Skip to content
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.

Can't stage files after Stage All with project on D: drive #1801

Open
@adriangzz

Description

@adriangzz

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.

  1. Started by plugging in a flash drive to use as my D: drive
  2. In Git Bash, I created a test directory mkdir test-gh; cd test-gh
  3. Added a file echo "Hello World" >> README.md
  4. 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:

  1. git init
  2. git add README.md
  3. git commit -m "Initial commit"
  4. 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

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

  1. Open Git on the sidebar
  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions