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

GitLens Error: Unable to open #591

Closed
therealgorgan opened this Issue Dec 12, 2018 · 9 comments

Comments

Projects
None yet
3 participants
@therealgorgan
Copy link

therealgorgan commented Dec 12, 2018

Error:
Unable to open 'pet_controller.lua (e6e4c85) ⟷ pet_controller.lua (e89650e)': File not found (gitlens://git/<LoU-Server@e6e4c85>/mods/Ultima/scripts/pet_controller.lua?{"path":"/f:/#LoA-Server/#Git/LoU-Server/mods/Ultima/scripts/pet_controller.lua","ref":"e6e4c853664eb271d1aca3e30b0fbb5345c4208d","repoPath":"f:/#LoA-Server/#Git/LoU-Server"}).

  • GitLens Version: 9.0.3
  • VSCode Version: Tried both VSCode-win32-x64-1.29.1 Stable and 1.30.0-insider
  • OS Version: Windows 10 LTSB

Steps to Reproduce:

  1. Double click (to open diff) a file from a commit in GitLens Repo Tree from a different branch.

Attempts to resolve:

  • Deleted user settings
  • Uninstalled, cleaned VSCode files
  • Reinstalled VSCode, retaining no previous user settings
  • Reinstalled the GitLens plugin
  • Issue remains, I have a feeling it's the space in my Windows username? 😭

GitLens output logs:

[2018-12-12 07:59:49:735] [f:/#LoA-Server/#Git/LoU-Server] git log -M -n1 --format=%H e89650ed9f0b81114cc6a8b2af49c68589bdc284^ -- mods/Ultima/scripts/pet_controller.lua • 77 ms 
[2018-12-12 07:59:49:817] [f:/#LoA-Server/#Git/LoU-Server] git cat-file -e e6e4c853664eb271d1aca3e30b0fbb5345c4208d:./mods/Ultima/scripts/pet_controller.lua • 80 ms 
[2018-12-12 07:59:49:818] [f4] GitService.resolveReference completed • 160 ms
[2018-12-12 07:59:49:818] [f5] GitService.resolveReference — e=f:/#LoA-Server/#Git/LoU-Server, t=e89650ed9f0b81114cc6a8b2af49c68589bdc284, i=Uri(file:///f:/%23LoA-Server/%23Git/LoU-Server/mods/Ultima/scripts/pet_controller.lua)
[2018-12-12 07:59:49:888] [f:/#LoA-Server/#Git/LoU-Server] git cat-file -e e89650ed9f0b81114cc6a8b2af49c68589bdc284:./mods/Ultima/scripts/pet_controller.lua • 70 ms 
[2018-12-12 07:59:49:888] [f5] GitService.resolveReference completed • 70 ms
[2018-12-12 07:59:49:889] [f6] GitService.getFileStatusForCommit — e=f:/#LoA-Server/#Git/LoU-Server, t=f:\#LoA-Server\#Git\LoU-Server\mods\Ultima\scripts\pet_controller.lua, i=e89650ed9f0b81114cc6a8b2af49c68589bdc284
[2018-12-12 07:59:49:959] [f:/#LoA-Server/#Git/LoU-Server] git show --name-status --format= e89650ed9f0b81114cc6a8b2af49c68589bdc284 -- f:\#LoA-Server\#Git\LoU-Server\mods\Ultima\scripts\pet_controller.lua • 70 ms 
[2018-12-12 07:59:49:959] [f6] GitService.getFileStatusForCommit completed • 70 ms
[2018-12-12 07:59:49:959] [f7] GitService.getVersionedUri — e=f:/#LoA-Server/#Git/LoU-Server, t=f:\#LoA-Server\#Git\LoU-Server\mods\Ultima\scripts\pet_controller.lua, i=e6e4c853664eb271d1aca3e30b0fbb5345c4208d
[2018-12-12 07:59:49:960] [f8] GitService.getVersionedUri — e=f:/#LoA-Server/#Git/LoU-Server, t=f:\#LoA-Server\#Git\LoU-Server\mods\Ultima\scripts\pet_controller.lua, i=e89650ed9f0b81114cc6a8b2af49c68589bdc284
[2018-12-12 07:59:49:960] [f7] GitService.getVersionedUri completed • 0 ms
[2018-12-12 07:59:49:960] [f8] GitService.getVersionedUri completed • 0 ms
[2018-12-12 07:59:50:502] [f9] FileHistoryTrackerNode.onActiveEditorChanged
[2018-12-12 07:59:50:502] [fa] FileHistoryTrackerNode.triggerChange
[2018-12-12 07:59:50:502] [fb] FileHistoryView.refreshNode — e=FileHistoryTrackerNode
[2018-12-12 07:59:50:502] [fc] FileHistoryTrackerNode.refresh
[2018-12-12 07:59:50:503] [f9] FileHistoryTrackerNode.onActiveEditorChanged completed • 0 ms
[2018-12-12 07:59:50:503] [fd] RepositoriesNode.onActiveEditorChanged
[2018-12-12 07:59:50:503] [fd] RepositoriesNode.onActiveEditorChanged completed • 0 ms
[2018-12-12 07:59:50:503] [fc] FileHistoryTrackerNode.refresh completed • 0 ms
[2018-12-12 07:59:50:503] [fb] FileHistoryView.refreshNode completed • 0 ms
[2018-12-12 07:59:50:503] [fa] FileHistoryTrackerNode.triggerChange completed • 0 ms
[2018-12-12 08:00:37:744] [fe] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).updateLastFetched
[2018-12-12 08:00:37:745] [ff] RepositoriesView.triggerNodeChange — e=RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server))
[2018-12-12 08:00:37:745] [ff] RepositoriesView.triggerNodeChange completed • 0 ms
[2018-12-12 08:00:37:746] [fe] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).updateLastFetched completed • 1 ms
[2018-12-12 08:00:37:946] [100] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).ensureSubscription
[2018-12-12 08:00:37:946] [100] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).ensureSubscription completed • 0 ms
[2018-12-12 08:01:37:745] [101] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).updateLastFetched
[2018-12-12 08:01:37:746] [102] RepositoriesView.triggerNodeChange — e=RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server))
[2018-12-12 08:01:37:746] [102] RepositoriesView.triggerNodeChange completed • 0 ms
[2018-12-12 08:01:37:746] [101] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).updateLastFetched completed • 0 ms
[2018-12-12 08:01:37:947] [103] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).ensureSubscription
[2018-12-12 08:01:37:948] [103] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).ensureSubscription completed • 0 ms
[2018-12-12 08:02:14:371] [104] FileHistoryTrackerNode.onActiveEditorChanged
[2018-12-12 08:02:14:371] [105] FileHistoryTrackerNode.triggerChange
[2018-12-12 08:02:14:371] [106] FileHistoryView.refreshNode — e=FileHistoryTrackerNode
[2018-12-12 08:02:14:372] [107] FileHistoryTrackerNode.refresh
[2018-12-12 08:02:14:372] [104] FileHistoryTrackerNode.onActiveEditorChanged completed • 0 ms
[2018-12-12 08:02:14:372] [108] RepositoriesNode.onActiveEditorChanged
[2018-12-12 08:02:14:373] [108] RepositoriesNode.onActiveEditorChanged completed • 0 ms
[2018-12-12 08:02:14:373] [107] FileHistoryTrackerNode.refresh completed • 1 ms
[2018-12-12 08:02:14:373] [106] FileHistoryView.refreshNode completed • 1 ms
[2018-12-12 08:02:14:373] [105] FileHistoryTrackerNode.triggerChange completed • 1 ms
[2018-12-12 08:02:37:746] [109] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).updateLastFetched
[2018-12-12 08:02:37:746] [10a] RepositoriesView.triggerNodeChange — e=RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server))
[2018-12-12 08:02:37:747] [10a] RepositoriesView.triggerNodeChange completed • 0 ms
[2018-12-12 08:02:37:747] [109] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).updateLastFetched completed • 1 ms
[2018-12-12 08:02:37:948] [10b] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).ensureSubscription
[2018-12-12 08:02:37:948] [10b] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).ensureSubscription completed • 0 ms
[2018-12-12 08:03:37:748] [10c] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).updateLastFetched
[2018-12-12 08:03:37:749] [10d] RepositoriesView.triggerNodeChange — e=RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server))
[2018-12-12 08:03:37:749] [10d] RepositoriesView.triggerNodeChange completed • 0 ms
[2018-12-12 08:03:37:749] [10c] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).updateLastFetched completed • 1 ms
[2018-12-12 08:03:37:949] [10e] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).ensureSubscription
[2018-12-12 08:03:37:949] [10e] RepositoryNode(gitlens:repository(f:/#LoA-Server/#Git/LoU-Server)).ensureSubscription completed • 0 ms
@eamodio

This comment has been minimized.

Copy link
Owner

eamodio commented Dec 13, 2018

I don't see any errors in those logs which correlate to the original error posted, can you retry and post the logs covering the error? Also where is the space in the folder name? I don't see any spaces

@therealgorgan

This comment has been minimized.

Copy link
Author

therealgorgan commented Dec 13, 2018

I saw some logs that referenced my %APPDATA% directory earlier I guess that was unrelated to this, as the path with a space is not being referenced in the GitLens error, you're right.

I've cleared my Gitlens Output logs and have attempted to open a change from another branch again and this is the output:

The toast error shows as:

Unable to open 'engine_callbacks.lua (a55a9c2) ⟷ engine_callbacks.lua (2f65564)': File not found (gitlens://git/<LoU-Server@a55a9c2>/mods/Ultima/scripts/globals/engine_callbacks.lua?{"path":"/f:/#LoA-Server/#Git/LoU-Server/mods/Ultima/scripts/globals/engine_callbacks.lua","ref":"a55a9c261e067fe2eb0d42f78f1432c14f6b2bd7","repoPath":"f:/#LoA-Server/#Git/LoU-Server"}).

The Gitlens Output log shows as:

[2018-12-13 07:14:14:186] [751] GitService.resolveReference — e=f:/#LoA-Server/#Git/LoU-Server, t=2f655649548adc2cc7234897e3673d9f8d88b506^, i=Uri(file:///f:/%23LoA-Server/%23Git/LoU-Server/mods/Ultima/scripts/globals/engine_callbacks.lua)
[2018-12-13 07:14:14:299] [f:/#LoA-Server/#Git/LoU-Server] git log -M -n1 --format=%H 2f655649548adc2cc7234897e3673d9f8d88b506^ -- mods/Ultima/scripts/globals/engine_callbacks.lua • 112 ms 
[2018-12-13 07:14:14:364] [f:/#LoA-Server/#Git/LoU-Server] git cat-file -e a55a9c261e067fe2eb0d42f78f1432c14f6b2bd7:./mods/Ultima/scripts/globals/engine_callbacks.lua • 64 ms 
[2018-12-13 07:14:14:364] [751] GitService.resolveReference completed • 177 ms
[2018-12-13 07:14:14:364] [752] GitService.resolveReference — e=f:/#LoA-Server/#Git/LoU-Server, t=2f655649548adc2cc7234897e3673d9f8d88b506, i=Uri(file:///f:/%23LoA-Server/%23Git/LoU-Server/mods/Ultima/scripts/globals/engine_callbacks.lua)
[2018-12-13 07:14:14:431] [f:/#LoA-Server/#Git/LoU-Server] git cat-file -e 2f655649548adc2cc7234897e3673d9f8d88b506:./mods/Ultima/scripts/globals/engine_callbacks.lua • 66 ms 
[2018-12-13 07:14:14:431] [752] GitService.resolveReference completed • 66 ms
[2018-12-13 07:14:14:431] [753] GitService.getFileStatusForCommit — e=f:/#LoA-Server/#Git/LoU-Server, t=f:\#LoA-Server\#Git\LoU-Server\mods\Ultima\scripts\globals\engine_callbacks.lua, i=2f655649548adc2cc7234897e3673d9f8d88b506
[2018-12-13 07:14:14:514] [f:/#LoA-Server/#Git/LoU-Server] git show --name-status --format= 2f655649548adc2cc7234897e3673d9f8d88b506 -- f:\#LoA-Server\#Git\LoU-Server\mods\Ultima\scripts\globals\engine_callbacks.lua • 82 ms 
[2018-12-13 07:14:14:514] [753] GitService.getFileStatusForCommit completed • 82 ms
[2018-12-13 07:14:14:514] [754] GitService.getVersionedUri — e=f:/#LoA-Server/#Git/LoU-Server, t=f:\#LoA-Server\#Git\LoU-Server\mods\Ultima\scripts\globals\engine_callbacks.lua, i=a55a9c261e067fe2eb0d42f78f1432c14f6b2bd7
[2018-12-13 07:14:14:514] [755] GitService.getVersionedUri — e=f:/#LoA-Server/#Git/LoU-Server, t=f:\#LoA-Server\#Git\LoU-Server\mods\Ultima\scripts\globals\engine_callbacks.lua, i=2f655649548adc2cc7234897e3673d9f8d88b506
[2018-12-13 07:14:14:514] [754] GitService.getVersionedUri completed • 0 ms
[2018-12-13 07:14:14:514] [755] GitService.getVersionedUri completed • 0 ms
[2018-12-13 07:14:14:808] [756] LineHistoryTrackerNode.onActiveLinesChanged
[2018-12-13 07:14:14:808] [757] LineHistoryTrackerNode.triggerChange
[2018-12-13 07:14:14:808] [758] LineHistoryView.refreshNode — e=LineHistoryTrackerNode
[2018-12-13 07:14:14:808] [759] LineHistoryTrackerNode.refresh
[2018-12-13 07:14:14:808] [756] LineHistoryTrackerNode.onActiveLinesChanged completed • 0 ms
[2018-12-13 07:14:14:808] [759] LineHistoryTrackerNode.refresh completed • 0 ms
[2018-12-13 07:14:14:808] [758] LineHistoryView.refreshNode completed • 0 ms
[2018-12-13 07:14:14:808] [757] LineHistoryTrackerNode.triggerChange completed • 0 ms
[2018-12-13 07:14:15:272] [75a] RepositoriesNode.onActiveEditorChanged
[2018-12-13 07:14:15:272] [75a] RepositoriesNode.onActiveEditorChanged completed • 0 ms
[2018-12-13 07:14:15:273] [75b] FileHistoryTrackerNode.onActiveEditorChanged
[2018-12-13 07:14:15:273] [75c] FileHistoryTrackerNode.triggerChange
[2018-12-13 07:14:15:273] [75d] FileHistoryView.refreshNode — e=FileHistoryTrackerNode
[2018-12-13 07:14:15:273] [75e] FileHistoryTrackerNode.refresh
[2018-12-13 07:14:15:273] [75b] FileHistoryTrackerNode.onActiveEditorChanged completed • 0 ms
[2018-12-13 07:14:15:273] [75e] FileHistoryTrackerNode.refresh completed • 0 ms
[2018-12-13 07:14:15:273] [75d] FileHistoryView.refreshNode completed • 0 ms
[2018-12-13 07:14:15:273] [75c] FileHistoryTrackerNode.triggerChange completed • 0 ms
[2018-12-13 07:14:15:273] [75f] LineHistoryTrackerNode.onActiveLinesChanged
[2018-12-13 07:14:15:273] [760] LineHistoryTrackerNode.triggerChange
[2018-12-13 07:14:15:273] [761] LineHistoryView.refreshNode — e=LineHistoryTrackerNode
[2018-12-13 07:14:15:273] [762] LineHistoryTrackerNode.refresh
[2018-12-13 07:14:15:273] [75f] LineHistoryTrackerNode.onActiveLinesChanged completed • 0 ms
[2018-12-13 07:14:15:274] [762] LineHistoryTrackerNode.refresh completed • 0 ms
[2018-12-13 07:14:15:274] [761] LineHistoryView.refreshNode completed • 0 ms
[2018-12-13 07:14:15:274] [760] LineHistoryTrackerNode.triggerChange completed • 0 ms

@therealgorgan therealgorgan changed the title Space in path failing to open diff GitLens Error: Unable to open Dec 13, 2018

@therealgorgan

This comment has been minimized.

Copy link
Author

therealgorgan commented Dec 13, 2018

Update: This also happens when trying to load a diff from the same file I'm viewing. I also notice it's saying 8 days ago, but it was more like 30 minutes ago. [in the screenshot below]

https://imgur.com/a/hNadHFN

Additionally; this issue started after a recent GitLens update, one day while I was working, GitLens updated and the Changelog/News/Info screen popped up explaining the new features. This was maybe 1 week or so ago. I haven't been able to use it since.

@therealgorgan

This comment has been minimized.

Copy link
Author

therealgorgan commented Dec 13, 2018

Can I roll the plugin back to the previous version somehow?

@eamodio

This comment has been minimized.

Copy link
Owner

eamodio commented Dec 16, 2018

@therealgorgan Is this repo accessible (where I can try it out)? Or do you have another repo that is that reproduces the issue?

Now with vscode 1.30 you can actually rollback to another version: https://code.visualstudio.com/updates/v1_30#_install-previous-versions

@therealgorgan

This comment has been minimized.

Copy link
Author

therealgorgan commented Dec 17, 2018

@therealgorgan

This comment has been minimized.

Copy link
Author

therealgorgan commented Dec 17, 2018

@eamodio

This comment has been minimized.

Copy link
Owner

eamodio commented Jan 8, 2019

@therealgorgan Please let me know if you can repro this on another repo that I could get access to -- because I'd love to get to the bottom of why this works in v8 but not v9. Also can you still reproduce the problem with v9.4?

@eamodio eamodio self-assigned this Jan 23, 2019

@eamodio eamodio added this to the Soon™ milestone Jan 23, 2019

@eamodio eamodio closed this in b08e46f Feb 6, 2019

@speed-oss

This comment has been minimized.

Copy link

speed-oss commented Feb 22, 2019

@therealgorgan if this was helpful to you, consider giving a reward to the issue solver using Speedoss.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment