Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wait for goland terminal size #1028

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nervo
Copy link

@nervo nervo commented May 29, 2024

The embedded terminal of JetBrains products (JediTerm) such as Goland have a serious bug :(

At the startup, It waits for approx. 400ms before answering real window sizes... As a matter of consequence, in many situations, the first WindowSizeMsg received by models is width=0 and height=0

This pr tries to mitigate this issue by repeating nth requests during an arbitrary delay of 600ms on the first call.

Please, let me know if you know or find any other link referencing this issue ❤️

@meowgorithm
Copy link
Member

Hey, @nervo! Oof. No opinions on this one yet, but under the hood this may be able to make use of the new WindowSize internally command introduced last week to reduce code duplication: #988.

@aymanbagabas aymanbagabas deleted the branch charmbracelet:main October 28, 2024 17:41
@aymanbagabas aymanbagabas reopened this Oct 28, 2024
@aymanbagabas aymanbagabas self-requested a review as a code owner October 28, 2024 17:47
@aymanbagabas aymanbagabas changed the base branch from master to main October 28, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Goland 2024.1.1 doesn't render correctly in Run/Debug Terminal
3 participants