Skip to content

Distribution is invalid after an upgrade #851

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

Open
aeisenberg opened this issue Apr 26, 2021 · 0 comments
Open

Distribution is invalid after an upgrade #851

aeisenberg opened this issue Apr 26, 2021 · 0 comments
Labels
bug Something isn't working VSCode

Comments

@aeisenberg
Copy link
Contributor

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.
@aeisenberg aeisenberg added the bug Something isn't working label Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VSCode
Projects
None yet
Development

No branches or pull requests

1 participant