我正在使用 Eclipse (Theme = DevStyle) 開發 Java Maven 專案。
當在 Eclipse 中使用 Windows 終端作業時,會出現非常奇怪的行為,其中 eclipse 中的終端視圖不會根據下面 GIF 中所示的命令更新:
任何人都知道解決這個問題?
uj5u.com熱心網友回復:
按照@Todd Williams 提供的鏈接,問題出在 Windows 偽控制臺上:
在 Windows 上,終端使用令人驚嘆的 WinPTY 庫來提供 PTY,因為 Windows 沒有提供 PTY。在過去的幾年里,Windows 10 有一個名為 Windows Pseudo Console (ConPTY) 的本機版本,VSCode 和 Eclipse Theia 等程式已轉換為使用該版本,部分原因是 WinPTY 中無法修復的基本錯誤。Eclipse 中的 WinPTY 版本也相當過時,而且由于它是由 JNI 介面,因此難以開發。
因此,通過使用引數啟動 Eclipse 來禁用 Windows 偽控制臺 (ConPTY) 可以-vmargs -Dorg.eclipse.cdt.core.conpty_enabled=false
解決問題。
或者您可以將引數添加到eclipse.ini
檔案中(在 Eclipse 根檔案夾中找到)
...
-vmargs
-Dorg.eclipse.cdt.core.conpty_enabled=false
...
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/450932.html