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.

Choosing changed file shows "File has no contents" when file definitely has changes #1422

Description

@bbugh

Description

If I single click on an item in the Unstaged Changes area (that definitely has changes), I see "File has no contents", but when I do "git diff" from the terminal, it has changes.

Steps to Reproduce

Uncertain how to reproduce reliably, as it seems to happen completely at random.

  1. Click a file under "unstaged changes"
  2. Observe

Closing the Git bar doesn't change it, however, these things do fix the problem:

  1. making an additional change to the file
  2. restarting Atom
  3. reloading the Atom window with "Window: Reload"

Expected behavior:

It shows the diff contents.

Actual behavior:

It says "File has no contents" instead.

Reproduces how often:

At least once per work day, small percentage of the usage time but frequent enough in practice.

Versions

Atom : 1.26.0
Electron: 1.7.11
Chrome : 58.0.3029.110
Node : 7.9.0

apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.26.0
python 2.7.10
git 2.16.1

MacOS 10.12.6

Additional Information

Atom says file has no contents:

pasted_image_4_25_18__9_08_am

Diff definitely has contents:

pasted_image_4_25_18__9_16_am

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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