Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Distribution is invalid after an upgrade

未关闭
#851 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
typescript, vscode
领域
tooling

调研方向

报告没有指出实现文件或测试。首先跟踪 workspace 状态在升级期间如何选择和删除 CodeQL 分发版,然后重现所描述的双 workspace 操作序列。完成的标准是,未升级的 workspace 不再解析已删除的分发版,并且 CodeQL 命令可以运行。

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
TypeScript
星标
539
派生
240
平均合并
2 天 6 小时
30 天内合并 PR
29

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/vscode-codeql 的其他 Issue

查看 github/vscode-codeql 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。