Skip to content

syntax highlighting error when rendering submodule diff #7691

Closed

Description

@shiftkey

Description

Identified while looking into a React issue, but I don't believe this is a regression in 2.0

Version

  • GitHub Desktop: 2.0.0
  • Operating system: macOS 10.14.5

Steps to Reproduce

  1. Move a submodule inside a repository to a different commit
  2. View the working directory changes

  1. Check the DevTools for errors

Expected Behavior

Syntax highlighting worker process detects and gracefully avoids rendering subnmodule diff

Actual Behavior

Two errors logged each time it tries to update the diff:

Could not load new contents for syntax highlighting
Error: EISDIR: illegal operation on a directory, read
Could not load old contents for syntax highlighting
Error: Git returned an unexpected exit code '128' which should be handled by the caller.'
    at ChildProcess.s.on (/webpack:/app/src/lib/git/spawn.ts:93:15)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Socket.stream.socket.on (internal/child_process.js:380:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close [as _onclose] (net.js:596:12)

Activity

  1. added
    bug
    priority-3
    on Jun 5, 2019
  2. tierninho commented on Aug 2, 2019

    @tierninho
    Contributor

    Another example of this error from the wild here: #8064

  3. sergiou87 commented on Sep 5, 2022

    @sergiou87
    Member

    Partially fixed with #15176

    However, that PR only applies to the changes list, not a commit diff.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions