vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Open Folder History not working

Open shizhx opened this issue 4 years ago • 8 comments

  • GitLens Version: v11.4.1
  • Git Version: git version 2.31.1
  • VSCode Version:
    1.55.2
    3c4e3df9e89829dce27b7b5c24508306b151f30d
    x64
    
  • OS Version: Linux hsz-pc 5.4.114-1-MANJARO #1 SMP PREEMPT Wed Apr 21 14:34:53 UTC 2021 x86_64 GNU/Linux

Steps to Reproduce:

  1. Right click a folder of git repo, select Open Folder History

Expected:

  1. Show Folder History

Actually:

  1. Popup an error tips on right-bottom, its content is:
     cannot open file:///<the path>/%2A. Detail: 无法读取文件'<the path>/*' (Error: 无法解析不存在的文件"<the-path>/*")
    

    <the path> is the folder path 无法读取文件 means cannot read file 无法解析不存在的文件 means cannot parse a file that does not exist

shizhx avatar Apr 30 '21 07:04 shizhx

Please enable output channel logging by running from GitLens: Enable Debug Logging from the command palette (ctrl+shift+p or cmd+shift+p). This will enable logging to the GitLens and GitLens (Git) channel in the Output pane.

Once enabled, please reproduce the issue, and attach the log from the both GitLens and GitLens (Git) channels.

eamodio avatar May 24 '21 05:05 eamodio

Please enable output channel logging by running from GitLens: Enable Debug Logging from the command palette (ctrl+shift+p or cmd+shift+p). This will enable logging to the GitLens and GitLens (Git) channel in the Output pane.

Once enabled, please reproduce the issue, and attach the log from the both GitLens and GitLens (Git) channels.

logs from GitLens

[2021-05-26 03:30:19:366] [d48] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/http)).ensureSubscription completed • 8 ms
[2021-05-26 03:30:19:366] [d4f] FileHistoryView.refreshNode completed • 8 ms
[2021-05-26 03:30:19:366] [d4e] FileHistoryTrackerNode.triggerChange completed • 8 ms
[2021-05-26 03:30:19:366] [d5a] FileHistoryView.refreshNode completed • 8 ms
[2021-05-26 03:30:19:366] [d59] FileHistoryTrackerNode.triggerChange completed • 8 ms
[2021-05-26 03:30:19:366] [d62] FileHistoryView.refreshNode completed • 8 ms
[2021-05-26 03:30:19:366] [d61] FileHistoryTrackerNode.triggerChange completed • 8 ms
[2021-05-26 03:30:19:367] [d19] FileHistoryTrackerNode.triggerChange completed • 13 ms
[2021-05-26 03:30:19:367] [d23] FileHistoryTrackerNode.triggerChange completed • 10 ms
[2021-05-26 03:30:19:367] [d2e] FileHistoryTrackerNode.triggerChange completed • 10 ms
[2021-05-26 03:30:19:367] [d38] FileHistoryTrackerNode.triggerChange completed • 9 ms
[2021-05-26 03:30:19:367] [d43] FileHistoryTrackerNode.triggerChange completed • 9 ms
[2021-05-26 03:30:19:367] [d4d] FileHistoryTrackerNode.triggerChange completed • 9 ms
[2021-05-26 03:30:19:367] [d58] FileHistoryTrackerNode.triggerChange completed • 8 ms
[2021-05-26 03:30:19:367] [d60] FileHistoryTrackerNode.triggerChange completed • 8 ms
[2021-05-26 03:30:19:367] [d22] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/nginx)).triggerChange completed • 10 ms
[2021-05-26 03:30:19:367] [d37] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/apps/sdp-pdp-service/acl)).triggerChange completed • 9 ms
[2021-05-26 03:30:19:367] [d4c] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/http)).triggerChange completed • 9 ms
[2021-05-26 03:30:19:367] [d5f] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/http)).triggerChange completed • 8 ms
[2021-05-26 03:30:19:367] [d21] FileHistoryNode(gitlens:repository(/home/hsz/Work/projects/sdp/sdp-nginx):history:file(file://<my secret path>/nginx)).triggerChange completed • 11 ms
[2021-05-26 03:30:19:367] [d36] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/apps/sdp-pdp-service/acl)).triggerChange completed • 10 ms
[2021-05-26 03:30:19:367] [d4b] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/http)).triggerChange completed • 9 ms
[2021-05-26 03:30:19:367] [d5e] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/http)).triggerChange completed • 9 ms
[2021-05-26 03:30:19:567] [d6c] FileHistoryTrackerNode.ensureSubscription
[2021-05-26 03:30:19:567] [d6d] FileHistoryTrackerNode.unsubscribe
[2021-05-26 03:30:19:567] [d6e] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/http)).ensureSubscription
[2021-05-26 03:30:19:567] [d6f] GitService.getBranchAheadRange — w=Release
[2021-05-26 03:30:19:568] [d6d] FileHistoryTrackerNode.unsubscribe completed • 0 ms
[2021-05-26 03:30:19:568] [d6e] FileHistoryNode(gitlens:repository(<my secret path>):history:file(file://<my secret path>/http)).ensureSubscription completed • 0 ms
[2021-05-26 03:30:19:568] [d6f] GitService.getBranchAheadRange completed • 0 ms
[2021-05-26 03:30:19:568] [d70] GitService.getLogForFile — w=<my secret path>, T=<my secret path>/http/*, U={"limit":40}
[2021-05-26 03:30:19:568] [d71] GitService.getStatusForFiles — w=<my secret path>, T=<my secret path>/http/*
[2021-05-26 03:30:19:575] [d72] GitService.getCurrentUser — <my secret path>
[2021-05-26 03:30:19:575] [d6c] FileHistoryTrackerNode.ensureSubscription completed • 8 ms
[2021-05-26 03:30:19:576] [d72] GitService.getCurrentUser completed • 0 ms
[2021-05-26 03:30:19:580] [<my secret path>] git status --porcelain=v2 --find-renames -- apps/sdp-web-upgrade/http/* • 12 ms 
[2021-05-26 03:30:19:581] [d73] GitStatusParser.parse completed • 0 ms
[2021-05-26 03:30:19:581] [d71] GitService.getStatusForFiles completed • 13 ms
[2021-05-26 03:30:19:591] [d70] GitService.getLogForFile — failed • 23 ms
Error: cannot open file://<my secret path>/http/%2A. Detail: 无法读取文件'<my secret path>/http/*' (Error: 无法解析不存在的文件"<my secret path>/http/*")
[2021-05-26 03:30:22:251] [d74] FileHistoryTrackerNode.onActiveEditorChanged

logs from GitLens (Git)

[2021-05-26 03:30:19:020] [<my secret path>] git ls-files -- <my secret path>/http • 14 ms 
[2021-05-26 03:30:19:160] [<my secret path>] git status --porcelain=v2 --find-renames -- <my secret path>/http/* • 11 ms 
[2021-05-26 03:30:19:580] [<my secret path>] git status --porcelain=v2 --find-renames -- <my secret path>/http/* • 12 ms

shizhx avatar May 26 '21 03:05 shizhx

Unfortunately, from the logs, I can't really see what is going on. Can you or someone else in the community that can reproduce this help debug to get to the bottom of it -- thanks!

eamodio avatar Jun 15 '21 08:06 eamodio

I meet the same problem

peaksnail avatar Dec 01 '21 08:12 peaksnail

@eamodio In Gitlens version: v11.7.0

When I install vscode recommend extension "Chinese (Traditional) Language Pack". Use GitLens "Open Folder History" error will happen. However uninstall "Chinese (Traditional) Language Pack" it will work.

(I am not good at English.)

pearwb1235 avatar Feb 11 '22 09:02 pearwb1235

@eamodio In Gitlens version: v11.7.0

When I install vscode recommend extension "Chinese (Traditional) Language Pack". Use GitLens "Open Folder History" error will happen. However uninstall "Chinese (Traditional) Language Pack" it will work.

(I am not good at English.)

it solved my problem

shawnfinelee avatar Apr 25 '22 06:04 shawnfinelee

Does the same thing happen with GitLens 12.0.6?

eamodio avatar Apr 26 '22 18:04 eamodio

Uninstalling the vscode language pack (German) solved it for me, too. (gitlens 12.1.1 - vscode 1.68.1 - windows)

michael-at-mitxp avatar Jun 23 '22 09:06 michael-at-mitxp

Uninstalling the vscode extension (Chinese Language Pack) solved it for me. (gitlens 13.0.3 - vscode 1.72.2 - mac)

DBSDs avatar Oct 28 '22 02:10 DBSDs

Can you please verify this fix in tomorrow's pre-release edition of GitLens?

You can switch to the pre-release edition of GitLens, by clicking on the "Switch to Pre-Release version of this extension" from the Extensions view.

image

eamodio avatar Nov 02 '22 05:11 eamodio

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.

github-actions[bot] avatar Dec 02 '22 05:12 github-actions[bot]