[Linux] [MacOS] CTabFolder renders tabs with a delay
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start with the test_tabsAreRendered reproduction linked from PR #3295 and run it on the affected Linux or macOS x86_64 setup. Then trace how CTabFolder renders and updates tabs on those platforms, comparing with the working platforms. Done means the test passes for all parameters and both tabs render and disappear as asserted.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
CTabFolder does not render tabs in a timely manner on Linux and MaxOS x86_64. The problem is not observed on Windows and MacOS aarch64.
Test steps
Execute following test from https://github.com/eclipse-platform/eclipse.platform.swt/pull/3295
@ParameterizedTest
@CsvSource(value = {"false,0", "false,1", "true,0", "true,1"})
public void test_tabsAreRendered(boolean nestComposite, int activateTab) {
Composite parent = shell;
Control[] children = shell.getChildren();
for (Control child : children) {
child.dispose();
}
if (nestComposite) {
parent = new Composite(parent, SWT.NONE);
parent.setLayout(new FillLayout());
}
ctabFolder = new CTabFolder(parent, SWT.NONE);
setWidget(ctabFolder);
shell.setSize(800, 400);
ctabFolder.setBackground(RED);
ctabFolder.setForeground(BLUE);
ctabFolder.setSelectionForeground(BLUE);
CTabItem tab = createTabItem(1);
openShell(shell);
processEvents();
Rectangle bounds = tab.getBounds();
assertTrue(hasPixel(ctabFolder, BLUE, bounds));
tab = createTabItem(2);
ctabFolder.setSelection(activateTab);
SwtTestUtil.processEvents();
bounds = tab.getBounds();
assertTrue(hasPixel(ctabFolder, BLUE, bounds)); // reference 1
tab.dispose();
SwtTestUtil.processEvents();
assertFalse(hasPixel(ctabFolder, BLUE, bounds)); // reference 2
}
private CTabItem createTabItem(int i) {
CTabItem item = new CTabItem(ctabFolder, SWT.CLOSE);
item.setText("█".repeat(10));
Label content = new Label(ctabFolder, SWT.NONE);
content.setText("Content " + i);
item.setControl(content);
return item;
}
The test creates two tabs, activates one of them and ensures that tab text is rendered. The test always fails for any parameter.
A characteristic screenshot captured from CI environment for GTK3, x86_64, x11:
Instead of expected two tabs, only one is shown. This happens for all parameters but the last one failing test on line "reference 1".
- Ngôn ngữ chính
- Java
- Star
- 202
- Fork
- 206
- Merge trung bình
- 14 giờ 7 phút
- Pull request đã merge (30 ngày)
- 103
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-platform/eclipse.platform.swt
-
`SWT_AWT.initFrame` takes `(long, String)` in Java; the GTK native declares no `className` and the Cocoa native types it `const char *`Có thể đã có người làm @GreenFuze đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
eclipse-platform/eclipse.platform.swt#3665 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform.swt#3546 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-platform/eclipse.platform.swt#3428 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
eclipse-platform/eclipse.platform.swt#3336 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
eclipse-platform/eclipse.platform.swt#3718 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-platform/eclipse.platform.swt
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
iOS podspec depends on `React-Codegen`, which resolves to an unrelated pod on CocoaPods trunkĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
GantMan/jail-monkey#380 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
objectionary/jucs#145 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
objectionary/lints#1559 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
RRateLimiter acquire methods accept negative permits and raise available permits above the rate.Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 4 ngày