JetBrains-Research / JetBrains-Research/TestSpark

Large error message incorrect representaion

Open
#345 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
88
Forks
24
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
If the error message doesn't fit into the screen size, the window containing it starts blinking, so it's impossible to read

**To Reproduce**
We need a large enough error message. One of the ways to get it(large enough for my machine):
- Clone repo from the development branch, run "Run IDE for UI Tests"
- Create a standard IntelliJ IDEA project with open SDK 21(This causes error due to incompatibility with jacoco)
- Add JUnit 5.8.1 in the .iml` configuration using maven
- Generate tests on main class through TestSpark
- Run test ---> error message connected with incompatibility of java and Jacoco versions.

In my case, the message blinks on the laptop's display(find the video attached), while displays correctly if external monitor attached(strange behavior to show an error message on another display)

Console outputs such warning:
`[ 403304] WARN - #c.i.u.p.AbstractPopup - popup preferred size is bigger than screen: 1123x4674
com.intellij.ui.popup.AbstractPopup$MyContentPanel
javax.swing.JPanel
com.intellij.ide.HelpTooltip$Header
com.intellij.ui.popup.AbstractPopup$2
com.intellij.ui.CaptionPanel`

**Expected behavior**
Showing error message on the same monitor without blinking. If message is too large, show only small amount of frames or allow scrolling

**Screenshots**

https://github.com/user-attachments/assets/f9c9ff94-6ade-483d-a55a-2efbd338f532

**Additional context**
The laptop's display is 16inch

Contributor guide

Open the contributing guide

Research direction

Reproduce the blinking popup through the described IDE UI test setup and inspect the AbstractPopup warning showing a preferred size of 1123x4674, including the related MyContentPanel and CaptionPanel entries. Trace how the large error message is sized and displayed on the laptop monitor; done means the message remains readable on one monitor, with scrolling or bounded content for oversized messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.