You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
syntax highlighting error when rendering submodule diff #7691
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
Move a submodule inside a repository to a different commit
View the working directory changes
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
tierninho commentedon Aug 2, 2019
Another example of this error from the wild here: #8064
sergiou87 commentedon Sep 5, 2022
Partially fixed with #15176
However, that PR only applies to the changes list, not a commit diff.