question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when 'View file contents'

See original GitHub issue

Thanks for your excellent work.

There is a problem when I try to view one of the history file contents. It worked before. I am not sure when this problem started because I don’t use this command for a long time. My laptop and desktop have the same problem. The output is

git rev-parse --show-toplevel (completed in 0.001s) {"stack":"Error: spawn C:/Program Files/Git/bin/git ENOENT\n\tat exports._errnoException (util.js:1050:11)\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)\n\tat onErrorNT (internal/child_process.js:367:16)\n\tat _combinedTickCallback (internal/process/next_tick.js:80:11)\n\tat process._tickCallback (internal/process/next_tick.js:104:9)","message":"spawn C:/Program Files/Git/bin/git ENOENT","code":"ENOENT","errno":"ENOENT","syscall":"spawn C:/Program Files/Git/bin/git","path":"C:/Program Files/Git/bin/git","spawnargs":["rev-parse","--show-toplevel"]} git rev-parse --show-toplevel (completed in 0.002s)

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:17
  • Comments:23

github_iconTop GitHub Comments

15reactions
Sevylscommented, Jun 15, 2018

Having the same issue, “View file contents” does nothing

2reactions
afliwcommented, Jul 22, 2018

Me too:

  • OS: Windows 10
  • Git: 2.18.0.windows.1
  • VSCode: 1.25.1
  • Git History: 0.4.2

For some reason, when trying to open history of any file, it appends the drive letter C:/ to the correct path (I have my project on drive D:) so it ends being C:/d:/path/to/file.ext

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error occurred when getting file content? Don't know why
I created an output file in my android device, but when I opened it for the second time, I got this Error occurred...
Read more >
Types Of File Preview Errors And How To Handle Them
Have you encountered an error message while trying to preview a file in your Dropbox? Read on to learn how to handle every...
Read more >
'The file cannot be opened because there are problems with ...
Getting an error prompt, 'The file cannot be opened because there are problems with the contents' is quite common when you try to...
Read more >
Error Opening File - Error reading file contents are corrupted
This error message indicates that CaseView was not closed properly the last time, and the document's contents could be corrupted. Error Opening File...
Read more >
Solved: File not found error in Get File Content
I'm trying to create a simple flow that will create the files with new names in another document library. The files are the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found