Coder Social home page Coder Social logo

Comments (10)

eamodio avatar eamodio commented on May 18, 2024 1

I think I have finally resolved this in the latest version.

from vscode-gitlens.

eamodio avatar eamodio commented on May 18, 2024

@nonameolsson can you set gitlens.advanced.output.level = verbose and gitlens.advanced.debug = true, and then send me the output from the GitLens output pane when the error occurs?

from vscode-gitlens.

nonameolsson avatar nonameolsson commented on May 18, 2024

@eamodio Thanks, will do!

from vscode-gitlens.

Tyriar avatar Tyriar commented on May 18, 2024

I'm seeing this as well. It happens when settings.json is focused. This is a pretty common use case to open files that do not below to any git repository so it should be handled gracefully 😃

[Extension Host] [GitLens] getBlameForFile('/home/daniel/.config/Code - Insiders/User/settings.json', undefined, undefined)
CodeLens config changed; resetting CodeLens provider
getBlameForFile('/home/daniel/.config/Code - Insiders/User/settings.json', undefined, undefined)
Add blame cache for '/home/daniel/.config/code - insiders/user/settings.json'
git blame --root --incremental -- settings.json   cwd='/home/daniel/.config/Code - Insiders/User' 
  Error: fatal: Not a git repository (or any of the parent directories): .git  Failed with exit code: 128
Replace blame cache with empty promise for '/home/daniel/.config/code - insiders/user/settings.json'
Clear cache entry for '/home/daniel/.config/code - insiders/user/settings.json', reason=DocumentSaved
CodeLens config changed; resetting CodeLens provider
getBlameForFile('/home/daniel/.config/Code - Insiders/User/settings.json', undefined, undefined)
Add blame cache for '/home/daniel/.config/code - insiders/user/settings.json'
git blame --root --incremental -- settings.json   cwd='/home/daniel/.config/Code - Insiders/User' 
  Error: fatal: Not a git repository (or any of the parent directories): .git  Failed with exit code: 128
Replace blame cache with empty promise for '/home/daniel/.config/code - insiders/user/settings.json'
getBlameForFile('/home/daniel/dev/sourcelair/xterm.js/package.json', undefined, undefined)
Add blame cache for '/home/daniel/dev/sourcelair/xterm.js/package.json'
git blame --root --incremental -- package.json   cwd='/home/daniel/dev/sourcelair/xterm.js'
getBlameForFile('/home/daniel/.config/Code - Insiders/User/settings.json', undefined, undefined)
getBlameForFile('/home/daniel/.config/Code - Insiders/User/settings.json', undefined, undefined)
getBlameForFile('/home/daniel/.config/Code - Insiders/User/settings.json', undefined, undefined)

from vscode-gitlens.

eamodio avatar eamodio commented on May 18, 2024

@Tyriar You are seeing the same Cannot read property 'sha' of undefined? With the same stack trace? I can't reproduce this issue - I can go through the same steps and produce practically the same output log you posted, but I never see that error (things are handled gracefully).

Is it always reproducible?

from vscode-gitlens.

Tyriar avatar Tyriar commented on May 18, 2024

It seemed always reproducible. Note I was on the insiders build.

from vscode-gitlens.

eamodio avatar eamodio commented on May 18, 2024

Hrm -- I'm running today's insiders too. Can you try this build gitlens-1.4.2.zip -- I've added some more logging to trap when this happens.

(Just need to rename it back to *.vsix -- github wouldn't let me upload it otherwise)

from vscode-gitlens.

Tyriar avatar Tyriar commented on May 18, 2024

No reproducing now, it's probably worth adding some more defensive checks though.

from vscode-gitlens.

eamodio avatar eamodio commented on May 18, 2024

@nonameolsson are you still experiencing this issue?

from vscode-gitlens.

github-actions avatar github-actions commented on May 18, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from vscode-gitlens.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.