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

`Processing lsp` never exits and leaves orphaned processes

未关闭 适合新手
#1,578 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@overcast302 已经在做这个了。

开始于 2026年10月10日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
java, vscode
领域
devtools

调研方向

从 java/src/processing/mode/java/lsp/PdeLanguageServer.java 开始,查看只打印一行的 exit(),以及丢弃了 launcher.startListening() 所返回 future 的 main()。检查 stdin 读到 EOF 时会发生什么,以及此时进程应当如何结束。完成的标准是:关闭或崩溃 VS Code 时 LSP 进程随之退出,你可以在退出编辑器后用 pgrep -af 'Processing lsp' 确认。

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

描述

bug
Most appropriate sub-area of Processing 4?

Other (specify if possible)

Processing version

4.5.7 (AUR processing-bin)

Operating system

Arch Linux x86_64

Bug description

The LSP server never terminates when the client goes away. This way, after closing Visual Studio Code with official Processing extension via File > Exit (or Ctrl+Q), the Processing LSP process is left running. The process also survives abrupt client death, since nothing on the server side reacts to the client disappearing.

Steps to reproduce this
  1. Install Processing 4.5.7 and the official Processing Visual Studio Code extension.
  2. Open Visual Studio Code
  3. Quit Visual Studio Code with Ctrl+Q (File > Exit).
  4. Run: pgrep -af 'Processing lsp'
  5. The process is still running.
snippet

No response

Additional context

PdeLanguageServer.exit() only prints a line and never calls System.exit(). PdeLanguageServer.main() also ignores the future returned by launcher.startListening(), so nothing happens when stdin reaches EOF. As a result, nothing in the server can end the LSP process when the client disappears.

Would you like to work on the issue?

Yes, I’d like to help with this

主要语言
Java
星标
513
派生
183
平均合并
4 小时 6 分钟
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

processing/processing4 的其他 Issue

查看 processing/processing4 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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