redhat-developer / redhat-developer/vscode-java

Language server runtime should fail immediately if minimum version of JRE not satisfied

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

还没有人认领这个 Issue。

bug extension-start runtime ux
主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

launching vscode with java 8 in path I get the following:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/redhat/qute/ls/QuteServerLauncher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

should the qute (or quarkus tools) not be able to handle this as vscode-java seem to survive such startup?

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先,在启动 VS Code 时使用 PATH 上的 Java 8 重现该故障,然后跟踪报告中提到的 Qute 或 Quarkus language-server 启动路径。当能够立即检测到不受支持的最低 JRE,并生成清晰的诊断信息而不是原始的 UnsupportedClassVersionError 时,即视为完成。

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

评估

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

把新 issue 发到你的邮箱

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