Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

`Processing lsp` never exits and leaves orphaned processes

未關閉 適合新手
#1,578 2 則留言 1 個 reaction 已指派 1 人 在 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

processing-4.5.7-1435 (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 摘要。