Skip to content

Dynamically increase "Gradle Doctor Prescriptions" window sizeΒ #409

@veyndan

Description

@veyndan

Thanks for the awesome work on this project β€” exactly what I was looking for πŸ’―

So I've just been trying to add an extraMessage when the user's JDK isn't set to JAVA_HOME. I have the following block of code which gives the following output:

doctor {
    javaHome {
        extraMessage.set("""
            For more information, see:
            https://www.notion.so/my-organisation/This-title-is-probably-too-long-b10b17532e6674044ac-12g879d4872100
        """.trimIndent())
    }
}
Image

This works well, except for the fact that the link has been cutoff slightly, so the URL is still clickable, but invalid. Unfortunately Notion produces very long links (and has no first party link shortener) πŸ˜•

I'm not totally clear on what a solution would look like, but perhaps a way to configure the max window size? Or have it dynamically sized by the largest string in extraMessage?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions