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

Title: Eclipse Console does not sync stdin/stdout correctly on Windows 11 (Eclipse 4.37.0)

未关闭
#2,440 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
java
领域
tooling

调研方向

首先,使用一个在 Windows 11 的 Eclipse Console 中读取输入前刷新输出的简单 Java 程序复现该问题,然后将其与 CMD 或 PowerShell 进行比较。完成的标准是:光标出现在输入提示符的新行上,且不与之前的输出重叠。

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

描述

bug needinfo

Body:
I am experiencing an issue with the Eclipse Console when running Java programs that read user input using and . The console cursor does not move to the correct line before input is requested, even though the program prints newline characters and flushes the output stream.
The same code works correctly in a normal Windows terminal (CMD/PowerShell), so the problem appears to be specific to the Eclipse Console’s handling of stdout/stdin synchronization.
Environment:
• OS: Windows 11
• Eclipse IDE: 4.37.0
• Java: (any version, issue is reproducible across multiple JDKs)
Steps to reproduce:

  1. Create a simple Java program that prints a line, flushes stdout, and then calls or similar.
  2. Run the program in the Eclipse Console.
  3. Observe that the cursor appears on the wrong line or overlaps previous output.
    Expected behavior:
    The cursor should appear on a new line exactly where the program prints the input prompt.
    Actual behavior:
    The cursor appears on the previous line or in an incorrect position, making interactive console programs difficult to use.
    This issue seems related to how the Eclipse Console buffers and renders stdout before stdin is requested.
    Thank you for looking into this.

Let's make sure issue is not already fixed in latest builds first.

Steps to reproduce

From a fresh installation and clean workspace:

  • <...setup environment>

I tried

  • <... trigger issue>

I expected: <what was the expected outcome?>

But got: <what is the actual undesired behavior?>

Here is some relevant log output

From <workspace>/.metadata/.log

<relevant log output>

Tested under this environment:

  • OS & version: ...
  • Eclipse IDE/Platform version (as shown in Help > About): ...
  • ...Anything else that can be useful...

Community

  • I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.
主要语言
Java
星标
165
派生
174
平均合并
3 天 6 小时
30 天内合并 PR
44

环境准备

从这里开始

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

eclipse-platform/eclipse.platform 的其他 Issue

查看 eclipse-platform/eclipse.platform 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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