Comments (10)
I think I have finally resolved this in the latest version.
from vscode-gitlens.
@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.
@eamodio Thanks, will do!
from vscode-gitlens.
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.
@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.
It seemed always reproducible. Note I was on the insiders build.
from vscode-gitlens.
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.
No reproducing now, it's probably worth adding some more defensive checks though.
from vscode-gitlens.
@nonameolsson are you still experiencing this issue?
from vscode-gitlens.
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)
- spurious emoji in git commit messages containing rust paths
- Repository location in cloud workspace doesn't work when the repo descriptor does not contain a url HOT 1
- Git ops (fetch, pull, etc.) fail to display an auth prompt when one is required
- Commit graph multiselect commit HOT 2
- Regression of #958 for main icon HOT 2
- Identifying bugs in local modifications HOT 1
- Pulling changes to another branch connected to a worktree creates opposite changes as staged
- Bitbucket Server remote - "scm/" path prefix not removed, possible regression from #767?
- The users' avatars in Gitlens use default style, not Github account HOT 3
- Cannot use word "detached" in branch names HOT 2
- Request for Cursor editor support
- Add option for Custom AI functionality using URL of OpenAI compatible API
- [compare tree] File listed when it doesn't differ, unless committed
- Push command and button push to wrong branch? HOT 3
- Select multiple historical commits and view all differences at once without manually switching files
- no commits could be found
- "Open Changes" with external difftool does not generate the correct command line.
- Git repo is already opened, but it still says to open folder or directory. HOT 4
- Git File Blame: New line causes curser to indent way too much for a few seconds
- Better custom formatting for Git File Blame
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-gitlens.