Manually Assign Gitlab Project doesn't work for 3.81.0
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: 3.81.0 (but not 3.80.0)
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.83.1
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: "happens on
gitlab.com"
- GitLab version: "happens on
Summary
With version 3.81.0 when I manually assign a gitlab project nothing happens, then clicking the refresh button results in the output
2023-10-27T09:49:07:029 [error]: Invalid URL
TypeError: Invalid URL
at new NodeError (node:internal/errors:399:5)
at URL.onParseError (node:internal/url:566:9)
at new URL (node:internal/url:646:5)
at parseGitLabRemote (/home/alec/.vscode-server/extensions/src/desktop/git/git_remote_parser.ts:70:30)
at parseProject (/home/alec/.vscode-server/extensions/src/desktop/gitlab/gitlab_project_repository.ts:44:20)
at /home/alec/.vscode-server/extensions/src/desktop/gitlab/gitlab_project_repository.ts:52:40
at Array.map (<anonymous>)
at parseProjects (/home/alec/.vscode-server/extensions/src/desktop/gitlab/gitlab_project_repository.ts:52:6)
at detectProjects (/home/alec/.vscode-server/extensions/src/desktop/gitlab/gitlab_project_repository.ts:63:26)
at initializeAllProjects (/home/alec/.vscode-server/extensions/src/desktop/gitlab/gitlab_project_repository.ts:167:34)
at f (/home/alec/.vscode-server/extensions/src/desktop/gitlab/gitlab_project_repository.ts:253:9)
at Ev.discardIfNotLatest (/home/alec/.vscode-server/extensions/src/desktop/utils/ensure_latest_promise.ts:42:26)
at iR.#updateProjects (/home/alec/.vscode-server/extensions/src/desktop/gitlab/gitlab_project_repository.ts:251:54)
at iR.reload (/home/alec/.vscode-server/extensions/src/desktop/gitlab/gitlab_project_repository.ts:275:17)
at gl.refreshSidebar (/home/alec/.vscode-server/extensions/src/desktop/extension.ts:160:37)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /home/alec/.vscode-server/extensions/src/common/utils/wrap_command_with_catch.ts:10:7
at n.h (/home/alec/.vscode-server/bin/f1b07bd25dfad64b0167beb15359ae573aecd2cc/out/vs/workbench/api/node/extensionHostProcess.js:126:84275)
Rolling back to 3.80.0 fixes the problem, resulting in output Found 1 projects for urls and the UI correctly showing my project.
Steps to reproduce
Open a SSH-cloned Gitlab repo, and attempt to manually assign a project to it through the UI.
What is the current bug behavior?
See summary.
What is the expected correct behavior?
See summary
Relevant logs and/or screenshots
See summary
Possible fixes
Workaround: rollback to 3.80.0