Error: ExtensionState has not been initialized.
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: v4.8.0
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.87.2
- Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: v16.9.2-ee
Summary
Every time I start VSCode, I get the following error. It goes away when I disable the GitLab Workflow extension.
Steps to reproduce
- Install Extension
- Do the setup (self-hosted, token-based auth)
- Restart vscode
What is the current bug behavior?
Error pops up
What is the expected correct behavior?
Nothing, ideally
Relevant logs and/or screenshots
2024-03-26T11:38:46:193 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:46:194 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:46:326 [debug]: fetch: request to https://git.company.com/api/v4/version returned HTTP 200 after 132 ms
2024-03-26T11:38:46:327 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:46:358 [debug]: fetch: request to https://git.company.com/api/graphql returned HTTP 200 after 162 ms
2024-03-26T11:38:46:414 [debug]: fetch: request to https://git.company.com/api/graphql returned HTTP 200 after 87 ms
2024-03-26T11:38:46:560 [info]: Configuring Language Server - baseUrl: https://git.company.com
2024-03-26T11:38:46:561 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:46:561 [info]: Extracted urls: []
2024-03-26T11:38:46:562 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:46:564 [info]: Found 0 projects for urls: []
2024-03-26T11:38:46:564 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:46:564 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:46:564 [info]: Configuring Language Server - baseUrl: https://git.company.com
2024-03-26T11:38:46:564 [info]: Configuring Language Server - baseUrl: https://git.company.com
2024-03-26T11:38:46:565 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:46:645 [debug]: fetch: request to https://git.company.com/api/graphql returned HTTP 200 after 82 ms
2024-03-26T11:38:46:701 [info]: Extracted urls: [
"git@git.company.com:company-repos/company-platform/company-api/myrepo.git"
]
2024-03-26T11:38:46:701 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:47:204 [debug]: fetch: request to https://git.company.com/api/v4/version returned HTTP 200 after 637 ms
2024-03-26T11:38:47:205 [debug]: fetch: request to https://git.company.com/api/v4/user returned HTTP 200 after 643 ms
2024-03-26T11:38:47:205 [debug]: fetch: request to https://git.company.com/api/graphql returned HTTP 200 after 639 ms
2024-03-26T11:38:47:205 [debug]: fetch: request to https://git.company.com/api/v4/version returned HTTP 200 after 641 ms
2024-03-26T11:38:47:205 [debug]: fetch: request to https://git.company.com/api/graphql returned HTTP 200 after 503 ms
2024-03-26T11:38:47:271 [info]: Found 1 projects for urls: [
"git@git.company.com:company-repos/company-platform/company-api/myrepo.git"
]
2024-03-26T11:38:47:271 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:47:271 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:47:272 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:47:272 [info]: Configuring Language Server - baseUrl: https://git.company.com
2024-03-26T11:38:47:272 [info]: Configuring Language Server - baseUrl: https://git.company.com
2024-03-26T11:38:47:272 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:47:646 [debug]: fetch: request to https://git.company.com/api/v4/version returned HTTP 200 after 374 ms
2024-03-26T11:38:47:647 [debug]: fetch: request to https://git.company.com/api/v4/version returned HTTP 200 after 149 ms
2024-03-26T11:38:47:647 [debug]: fetch: request to https://git.company.com/api/graphql returned HTTP 200 after 150 ms
2024-03-26T11:38:47:647 [debug]: fetch: request to https://git.company.com/api/graphql returned HTTP 200 after 149 ms
2024-03-26T11:38:48:274 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:48:421 [debug]: fetch: request to https://git.company.com/api/v4/projects/3/merge_requests?state=opened&source_branch=master returned HTTP 200 after 147 ms
2024-03-26T11:38:48:421 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:48:571 [debug]: fetch: request to https://git.company.com/api/v4/projects/3/pipelines?ref=master returned HTTP 200 after 150 ms
2024-03-26T11:38:48:572 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:48:572 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:48:572 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:48:572 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:48:572 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:48:687 [debug]: fetch: request to https://git.company.com/api/v4/projects/3/pipelines/481547/bridges returned HTTP 200 after 114 ms
2024-03-26T11:38:48:699 [debug]: fetch: request to https://git.company.com/api/v4/projects/3/repository/commits/7dbc649b9edbf869fdc385529cea76773167b0de/statuses?stage=external&ref=master returned HTTP 200 after 127 ms
2024-03-26T11:38:48:897 [debug]: fetch: request to https://git.company.com/api/v4/projects/3/pipelines/481547/jobs returned HTTP 200 after 324 ms
2024-03-26T11:38:48:899 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:48:899 [debug]: Using non-expired account https://git.company.com|54224.
2024-03-26T11:38:49:225 [debug]: fetch: request to https://git.company.com/api/v4/projects/3/pipelines/481547/jobs?page=2 returned HTTP 200 after 326 ms
Possible fixes
I'm guessing this should not be a raw assert but logged to the output..?
https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/blob/main/src/desktop/extension_state.ts#L29