Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Distribution is invalid after an upgrade

Open
#851 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript, vscode
Domain
tooling

Research direction

The report does not name an implementation file or test. Start by tracing how workspace state selects and deletes CodeQL distributions during an upgrade, then reproduce the two-workspace sequence described. Done means the non-upgraded workspace no longer resolves a deleted distribution and CodeQL commands run.

Written by the indexing model from the issue text.

Description

bug VSCode

Describe the bug

A bug was reported where a user upgraded and then was no longer able to run any codeql commands. On deeper inspection, we noticed that the path to the distribution was incorrect. The user was getting errors like:

Caused by: java.nio.file.NoSuchFileException: /Users/.../Library/Application Support/Code/User/globalStorage/github.vscode-codeql/distribution9/codeql/tools/codeql.jar

The actual distribution was located at .../distribution10/..., not .../distribution9/....

To reproduce

I haven't tried to reproduce, but suspect that the problem is the following:

  1. Open two workspaces and ensure the installed version of the cli is outdated
  2. Upgrade the cli versin in one of the workspaces
  3. Do not upgrade in the other workspace
  4. I think the non-upgraded workspace will still point to the old distribution even though it has been deleted.
    • It might be that you need to ensure the non-upgraded workspace has already initialized its codeql instance.
  5. Now, doing anything codeql related in the non-upgraded workspace will cause the error.
Dominant language
TypeScript
Stars
539
Forks
240
Avg merge
2d 6h
Merged PRs (30d)
29

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/vscode-codeql

All issues in github/vscode-codeql

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.