eclipse-jdt / eclipse-jdt/eclipse.jdt.ui

Inconsistent font baseline in Java editor for wrapped method invocations

Open
#1,760 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
59
Forks
127
Avg merge
1d 8h
Merged PRs (30d)
37

Description

On the latest JDT release, code that's using wrapped invocations ends up being displayed in inconsistent font-baselines per line:

Screenshot 2024-11-01 at 14 28 51

As you can see above, the baseline for the first underlined line is much higher than for the second line. The third line is higher, too. The red line I added almost masks the difference a bit, but the different baselines are clearly visible in the method below, too. Simple, on-line declarations do not seem to suffer from the problem as visible in the field declarations and assignments in the constructor.

I am running STS (Eclipse 4.33.0.v20240903-0240) with JDT 3.19.600v20240903-0240 on MacOS Sequoia 15.1.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Java editor using wrapped method invocations on the reported Eclipse/JDT and macOS versions, then compare the font baselines with the unaffected single-line declarations and assignments. Done means wrapped invocation lines render with consistent baselines.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.