[Feature] 兼容 Maven 多版本 JAR 项目的 JDT 编译设置

Abierto
#1,882 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java
Área
build-system

Línea de trabajo

The failing case is a Maven multi-release POM (base source/target 8, Java 9 execution with release 9 and multiReleaseOutput) that the JDT pre-run build rejects with a 'Multi-Release Compilation requires the release option' marker. Start by reproducing with the pinned Lanterna commit 08d04a2a1d7b8a788d0d18f2d8d999b8fedaa1c4 and the JDK 11 setup described, then check how the existing Java build integration maps Maven executions to JDT settings. The issue names no test file for this; TestJavaPluginHistoricalProject is mentioned only as a client-side harness. Done means the build, completion, and Run/Debug succeed on the unmodified POM without forcing all sources to Java 8.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:language enhancement P1 platform:cross-platform review: high
Problem to solve / 要解决的问题

Lanterna 3.1.1 固定源码 08d04a2a1d7b8a788d0d18f2d8d999b8fedaa1c4(https://github.com/mabe02/lanterna/tree/08d04a2a1d7b8a788d0d18f2d8d999b8fedaa1c4)在 macOS arm64 / Viva 无头工作台、真实 Java 插件、JDT LS 1.61、项目 JDK 11 中复现:未改原 POM(基础 source/target 8,Java 9 execution 使用 release 9 / multiReleaseOutput),Maven compile 和补全通过,Run 的 JDT 运行前构建失败。Eclipse project marker:Multi-Release Compilation requires the release option enabled in the project settings。Java 8 本来不能执行该 POM 的 --release 构建,后续复现已改用项目实际要求的 JDK 11,不把错误工具链当成插件缺陷。

Proposed solution / 建议方案

核验 m2e/JDT 对多版本输出和各 execution 的 release 映射,优先采用上游支持方式,避免在 Lithe 里重建 Maven 编译模型。原 POM 下验证构建、基础/版本目录选择、补全、Run/Debug 和重新导入;不得只把所有源码统一改为 Java 8 来宣称兼容。

Target platform / 目标平台

Cross-platform / 跨平台

Area / 模块

Language support / 语言服务

Priority / 优先级

P1 / 尽快处理:使用体验大幅下降,但通常仍可继续使用

Alternatives considered / 已考虑的替代方案

保留明确的编译失败和插件日志,外部构建可用但当前 Run/Debug 不完整。重写插件外壳本身不会自动修复上游项目模型差异,需要先验证成熟连接器或上游修复的成本。

Additional context / 补充信息

2026-11-13 本地稳定性矩阵发现;当前仅 macOS 实测,Windows 是待覆盖目标,并未声称已复现。JDT 1.63 与配套 Java 25 的隔离试验尚未提供这些项目的修复证据,不作为已解决方案。客户端 TestJavaPluginHistoricalProject 可输入固定源码和 API 验证表达式;原始下载源码只读,测试工作区与安装目录分离。

Checklist / 提交前检查
  • I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复建议。
Lenguaje dominante
TypeScript
Estrellas
1.8k
Forks
151
Merge medio
3 h 48 min
PR fusionados (30 d)
571

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de 1lck/Lithe-IDEA

Todos los issues de 1lck/Lithe-IDEA

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.