Steps to Reproduce:
github.hosts entry to workspace configResult: Fetching all pull requests failed: TypeError: Cannot read property 'map' of undefined
Output from extension shows:
Looking for git repository
Git repository found, initializing review manager and pr tree view.
No GitHub remotes found
Found GitHub remote
Review> no matching pull request metadata found for current branch feature/xxxxxxxxxxxxxxxx
GitHubRepository> Fetching all pull requests failed: TypeError: Cannot read property 'map' of undefined
GitHubRepository> Fetching all pull requests failed: TypeError: Cannot read property 'map' of undefined
Workspace settings:
"github.hosts": [
{
"host": "https://git.company-name.com",
"username": "justin-unterreiner",
"token": "xxxxxxxxxxxxxxxxxxxx"
}
]
Additional information:
gitlens.remotes in the workspace settings@queerviolet FYI the data property on return result is undefined
I also have this issue.
+1
I also have this issue
Glad I'm not the only one. GitHub Enterprise with VSCode seems to be a general pain. :-/
Any update or progress on this issue?
This is still an issue, any update or workaround?
So I'm catching up with old issues and inspecting this one. I wanted to call out something in the original issue report that threw me for a bit.
The configuration style that was present in 0.2.x versions of the application was changed in 0.3.x and has not changed since. So the workplace setting github.hosts is no longer a valid way of configuring VSCode to work with GitHub Enterprise.
We are not yet sure why, but we are working on it. #1127 is going to add some logging to identify the scenario with a warning and stub data to prevent a full crash.
I've looked into mine and figured out that the authentication is no longer an issue as I'm running 0.6.0.
However, I've got a few other issues:
Cannot read property map of undefined error when I open the description of the PR The Github Enterprise version I'm testing against is v2.11
The GHE version we are using was updated to 2.14 and this resolved the issues I was experiencing.
After #1127 is merged in, the actual exception seen in this bug report will no longer appear. We will be logging that the scenario occurred, but we will need to work a bit harder to figure out why people aren't getting data.
@abathingchris I'm happy to hear upgrading GitHub Enterprise fixes the issue. At the moment that is the minimum version of GitHub Enterprise we are trying to get working. Do you know what version you were on before?
@EslamElHusseiny I'm glad you were able to get past the authentication issues. But now the major issue is the version of GitHub Enterprise you are using is outside of the support window. We are trying to make the GitHub Enterprise support better, but I'm not sure if we are going to be able to make things work that far back.
@StanleyGoldman Still seeing this exception.
Specifically, this error message:
Cannot read property 'map' of undefined
Environment:
Happening on enterprise Github
We have discontinued support for GitHub Enterprise. https://github.com/microsoft/vscode-pull-request-github/wiki#2-is-github-enterprise-supported
Most helpful comment
Glad I'm not the only one. GitHub Enterprise with VSCode seems to be a general pain. :-/