[Bug] Windows 大型 Maven 工作区中 Java Support 插件后端会话偶发结束并重启,根因未明

Open
#2,084 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java, typescript
Domain
devtools

Research direction

Start by reviewing the backend session lifecycle and host logs around process exit, timeout, cancellation, and restart; the issue does not name source files or tests. If the issue recurs, collect the host logs from several minutes around the disconnect, the backend exit code and stderr, and JDT LS logs. Done means identifying why the session ends and ensuring the cause is recorded, with the existing reconnect behavior kept in view.

Written by the indexing model from the issue text.

Description

review: high
Platform / 平台

Windows

Area / 模块

Extensions / 扩展

Lithe version / Lithe 版本

0.8.1

Priority / 优先级

P2 / 后续考虑:目前不着急,可安排到后续版本

OS and architecture / 操作系统与架构

Windows 11 Home 10.0.26200, x64

Environment / 环境信息

JDK: 17.0.8
Maven: 3.9.3
JDT LS: Java Support 插件 2.0.1 自带版本
Other: Maven 插件 1.0.0;大型多模块 Maven 工作区

Steps to reproduce / 复现步骤

还没有能稳定复现的步骤。已知出现过的条件:

  1. 在 Windows 上打开一个大型多模块 Maven 工作区,装有 Java Support 和 Maven 插件。
  2. 等 JDT LS 启动并导入工作区,正常编辑一段时间。
  3. Java Support 插件的后端会话偶尔会结束,随后宿主重新启动一个新会话。

排查 #2067 时出现过两次。之后用诊断构建打开同一个工作区运行了 20 分钟,没有再出现。

Expected behavior / 预期行为

正常使用时插件后端会话一直保持连接,不会自己结束;如果会话确实结束了,日志里能看到原因(进程退出码、stderr、超时或宿主主动停止)。

Actual behavior / 实际行为

后端会话偶发结束并重启,根因不明:

  • 不清楚是插件后端进程自己退出、崩溃,还是宿主因为超时或其他原因主动结束了会话。
  • 断开曾导致 main 方法旁的运行/调试图标消失,因为旧会话留下的编辑器动作绑定拒绝新会话注册。#2069 已修复这一点:断开重连后动作能恢复。所以现在断开对用户的影响变小了,但断开本身没有解决,也没有留下日志。
  • 断开时其他依赖插件后端的功能(构建模型、插件设置、插件页面等)会不会出问题,没有检查过。
Logs or diagnostic output / 日志或诊断输出
未采集。两次断开都发生在排查 #2067 期间,当时没有保留会话结束前后的日志。
下次出现时请导出诊断日志,重点保留:
- 插件后端会话结束前后几分钟的宿主日志;
- 后端进程的退出码和 stderr 输出;
- 同一时间 JDT LS 的日志,以及会话结束前有没有超时或取消的请求。
Screenshots or recordings / 截图或录屏

无。

Checklist / 提交前检查
  • I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
  • I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。
Dominant language
TypeScript
Stars
1.8k
Forks
151
Avg merge
3h 48m
Merged PRs (30d)
571

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 1lck/Lithe-IDEA

All issues in 1lck/Lithe-IDEA

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.