Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When searching for commits in an untracked file in Git, Prints an error message. #3783

Open
iblea opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working triage Needs to be looked at

Comments

@iblea
Copy link

iblea commented Nov 20, 2024

Description

  1. Add debug settings to settings.json. (Nothing else was changed except debug settings.)
    "gitlens.debug": true,
    "gitlens.outputLevel": "debug",
  1. Open the Git Project and create an Untitled file through the "File: New Untitled Text File" command in the Command Palette.
  2. Copy a Git Commit Hash and paste it into the Untitled file
  3. Set up a keyboard shortcut for the "GitLens: Search for Commits within Selection" command in vscode's keybindings.json
  4. Copy the Commit Hash and execute the command using the shortcut key

GitLens Version

v16.0.2

VS Code Version

Visual Studio Code
Version: 1.95.3
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z (6 일 전)
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.95.3 Chrome/128.0.6613.186 Electron/32.2.1 Safari/537.36
Electron: 32.2.1
Node.js: 22.9.0
OS: MacOS 15.1(24B83)

Git Version

git version 2.39.5 (Apple Git-154)

Logs, Screenshots, Screen Captures, etc

Image

filename : commit.magit

[2024-11-20 01:02:38.903] [  334 →   335] GitUri.fromUri(e=Uri(magit:commit.magit?/Users/iblea/src/study/leetcode#a0a1be003dd2bb17d0e8e524c2b5670ccc17244f))
[2024-11-20 01:02:38.903] [  334 →   335] GitUri.fromUri(e=Uri(magit:commit.magit?/Users/iblea/src/study/leetcode#a0a1be003dd2bb17d0e8e524c2b5670ccc17244f)) returned GitUri(magit:commit.magit?/Users/iblea/src/study/leetcode#a0a1be003dd2bb17d0e8e524c2b5670ccc17244f) [0ms]
[2024-11-20 01:02:38.903] [  335 →   336] GitProviderService.getBlameForRange(e=GitUri(magit:commit.magit?/Users/iblea/src/study/leetcode#a0a1be003dd2bb17d0e8e524c2b5670ccc17244f), t={"start":{"line":0,"character":7},"end":{"line":0,"character":47},"active":{"line":0,"character":47},"anchor":{"line":0,"character":7}})
[2024-11-20 01:02:38.904] [  335 →   336] GitProviderService.getBlameForRange — failed [0ms]
Error: No provider registered for 'magit:commit.magit?/Users/iblea/src/study/leetcode#a0a1be003dd2bb17d0e8e524c2b5670ccc17244f'
[2024-11-20 01:02:38.904] ShowCommitsInViewCommand — getBlameForRange
Error: No provider registered for 'magit:commit.magit?/Users/iblea/src/study/leetcode#a0a1be003dd2bb17d0e8e524c2b5670ccc17244f'
[2024-11-20 01:02:38.904] ShowMessage(error, 'Unable to find commits. See output channel for more details.', undefined, null)
[2024-11-20 01:02:38.911] ShowMessage(error, 'Unable to find commits. See output channel for more details.', undefined, null) returned undefined

filename : Untitled-1

[2024-11-20 00:58:32.605] [  2dd →   2de] GitUri.fromUri(e=Uri(untitled:Untitled-1))
[2024-11-20 00:58:32.605] [  2dd →   2de] GitUri.fromUri(e=Uri(untitled:Untitled-1)) returned GitUri(untitled:Untitled-1) [0ms]
[2024-11-20 00:58:32.605] [  2de →   2df] GitProviderService.getBlameForRangeContents(e=GitUri(untitled:Untitled-1), t={"start":{"line":2,"character":7},"end":{"line":2,"character":47},"active":{"line":2,"character":47},"anchor":{"line":2,"character":7}}, <contents>)
[2024-11-20 00:58:32.605] [  2de →   2df] GitProviderService.getBlameForRangeContents — failed [0ms]
Error: No provider registered for 'untitled:Untitled-1'
[2024-11-20 00:58:32.605] ShowCommitsInViewCommand — getBlameForRange
Error: No provider registered for 'untitled:Untitled-1'
[2024-11-20 00:58:32.605] ShowMessage(error, 'Unable to find commits. See output channel for more details.', undefined, null)
[2024-11-20 00:58:32.609] ShowMessage(error, 'Unable to find commits. See output channel for more details.', undefined, null) returned undefined
[2024-11-20 00:58:42.173] [  2df →   2e0] GitProviderService.onWindowStateChanged(e=focused=false)
[2024-11-20 00:58:42.173] [  2df →   2e0] GitProviderService.onWindowStateChanged(e=focused=false) completed [0ms]

Image

Image

@iblea iblea added bug Something isn't working triage Needs to be looked at labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs to be looked at
Projects
None yet
Development

No branches or pull requests

1 participant