-
Notifications
You must be signed in to change notification settings - Fork 583
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
Don't show error "We couldn't find commit" on outdated comments #1691
Comments
Same. I think it's related to having multiple projects in your workspace, and the wrong one getting loaded. I couldn't even get the thing to load at all until I found this workaround. #1330 (comment) Roughly, I think the important ingredients to recreate this should be something like:
Thanks |
I think this has been fixed in the mean time. If you're still seeing it please ping this issue and I will reopen! |
@alexr00 I am still seeing this quite often. Not as a result of multiple projects, but as a result of force-pushes that remove a commit from the PR branch. For example, I had nextstrain/ncov@4e5ee67 in a PR branch. I then force-pushed to drop the commit (over a month ago). I just cloned and opened the repo on a new computer and got the message
|
@victorlin did you have the default branch checked out? Was that commit on the default branch? |
@alexr00 It happened on a fresh clone of the repo with the default branch checked out. The commit was never on the default branch. |
Is there an open PR that contains the commit somehow? Can you share your value of the setting |
It's not on any open PR/branch. I think if that were the case, it would show up on the commit page nextstrain/ncov@4e5ee67 My setting is |
@alexr00 I just observed this again in another repo (nextstrain/nextstrain.org):
Commit is available in the remote as nextstrain/nextstrain.org@5709c3c but not locally:
Here are the extension logs with irrelevant system paths redacted
Let me know if you need anything else or if I should open a separate issue for better visibility, since this one is still in closed state. |
I think I found a way to reproduce:
Here's a demo: vscode-github-pr-bug-repro.mov |
I've been able to repro this. The commit really just doesn't exist anymore when this happens. We're not going to be able to show comments that belong to that commit on the correct line, and we're not going to be able to show file contents for that commit. I think the most reasonable thing to do is to just suppress the error if we know it's for an outdated commit. |
Issue Type: Bug
Constantly getting this error, is really annoying and breaks the complete usage of the extension.
Extension version: 0.15.0
VS Code version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T16:36:23.138Z)
OS version: Windows_NT x64 10.0.18363
The text was updated successfully, but these errors were encountered: