jacocoagent.jar not overridden after upgrade

未关闭
#1,780 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
java, typescript

调研方向

从链接的行开始查看 scripts/buildJdtlsExt.js,并检查升级现有扩展时如何处理 jacocoagent.jar。验证捆绑的 JAR 已从 0.8.12.x 替换为 0.8.13.x,并且 Java 24 覆盖率场景不再需要全新安装。

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

描述

ai-triaged bug high-priority investigating test-reporting

Environment:

VS Code Version: 1.102.0-insider
Extension Version: from vscode java test 0.43.0 -> 0.43.1
JDK Type & Version: 24
OS Type & Version: windows
Step to Reproduce:

install version 0.43.0 of the Extension
upgrade the extension to versoin 0.43.1

Expected Behavior:
{extensionpath}/server/jacocoagent.jar should be updated from version 0,8.12.xxxxx to 0.8.13.xxxx

Actual Behavior:
https://github.com/microsoft/vscode-java-test/blob/bae1928c27a2735c513072849b3e9d8542632980/scripts/buildJdtlsExt.js#L82
from the scripts it seems that when upgrading since the jar was present since last version it's not being overridden, causing a version mismatch and therefore causing code coverage not work with java 24

Workaround:
Uninstall the extension and install it clean

主要语言
TypeScript
星标
340
派生
173
平均合并
1 天 19 小时
30 天内合并 PR
18

贡献指南

打开贡献指南

从这里开始

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

microsoft/vscode-java-test 的其他 Issue

查看 microsoft/vscode-java-test 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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