-
Notifications
You must be signed in to change notification settings - Fork 601
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
Creating comment failed: TypeError: Cannot read properties of null (reading 'id') #3504
Comments
@ssardina do you have PRs checked out for one or both of these repos or are you just leaving comments by oping the diffs from the "Pull Requests" view? |
@alexr00 , well I do have PRs for each of the repos A and B, yes. And I am doing comments on the diffs in the "Pull Requests" view. This is what happens when I hit SAVE for a comment: As soon as I hit When it does, then I get the above behavior and error. When it doesn't ask me, I can enter the comment and save it without the error window coming up below, but the comment stays as Pending and is never pushed: Hope it helps... |
Thanks @ssardina it does help. I can't reproduce it, but I'm wondering if you might have the same remote with different names setup in one or more of your repository clones. A few more questions to help determine this:
|
I can reproduce it, but only if I have two clones of the same repo. Example folder structure:
@ssardina is it possible you have a similar duplication in your open folder? |
Hi @alexr00 , thanks for following this up. Actually, no, they are different repos as you can see from the screenshot above: They do come from the same git template repo, but they are technically different repos. mm strange.. |
I will see if I can fix the issue with two clones of the same repo and maybe it will fix the issue you're seeing too. |
It's a good idea/strategy, that is an issue as well anyways that you found! :-) Thanks! |
@ssardina the pre-release build has my fix for the double repo issue, which I think will also fix your issue. If you are able to try out the pre-release build and comment about whether the issue is fixed that would be very helpful! There are still other bugs with multi repo support, tracked here: #3490 |
I'm going to close the issue so that it gets tracked for verification before the next release. @ssardina if you still see the issue I will reopen it! |
Will do @alexr00, thanks! |
Steps to Reproduce:
On a multi-repo workspace:
Works once you restart Vscode and edit the PR of B directly, but once you open another repo C, same problem.
However, when it works (for the first repo), Vscode does not bring up that pop-up selection box
GitHub Pull Request http://gitbub.com
when clicking+
; I suspect extension gets confused and tries to do a comment somewhere else and has no permissionExpected: The comment is saved
Actual result:
The text was updated successfully, but these errors were encountered: