apache / apache/netbeans

Terminal rendering incorrect on Ubuntu 25.10 (Questing Quokka)

Open
#8,938 2 comments 2 reactions 0 assignees View on GitHub
kind:bug os:linux
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 29 latest daily build

### What happened

On Ubuntu 25.10 the rendering in the embedded terminal is broken. Broken in this case for example means, that the bounds of the terminal are not correctly considered. In the screenshot mc should fill the whole window, not just the top left part.

Image

The output of stty is `0 0`:

Image

This indicates the size is not set by netbeans. Checking the error code in `org.netbeans.modules.nativeexecution.pty.SttySupport.apply` shows, that we get an error code or 1, instead of the expected 0.

The issue can be fixed by using `stty -F ` or `stty --file `, but that won't work on older platforms and POSIX does not required it to be supported. Some quick checks show that QNX does not document support, Solaris was tested and did not provide it.

Workaround is to remove the rust implementation of coreutils and replace it with the gnu variant:

```bash
sudo apt install --allow-remove-essential coreutils-from-uutils- coreutils-from-gnu
```

This is tracked in uutils as https://github.com/uutils/coreutils/issues/8848

### Language / Project Type / NetBeans Component

NetBeans Terminal

### How to reproduce

- Run the IDE
- Open a terminal inside the IDE
- Invoke `stty size`
- Observe that `0 0` is printed (see above)

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Ubuntu 25.10 (Questing Quokka)

### JDK

Bundled JDK 21

### Apache NetBeans packaging

Own source build

### Anything else

_No response_

### Are you willing to submit a pull request?

Yes

Contributor guide

Open the contributing guide

Research direction

Start at org.netbeans.modules.nativeexecution.pty.SttySupport.apply and reproduce the issue with `stty size` in the embedded NetBeans terminal on Ubuntu 25.10. Check the reported status-code behavior and the uutils/coreutils issue 8848; done means terminal dimensions are correctly reported without breaking support for older platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, linux, shell
Domain
cli, devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.