Natalia Peterwas
11/13/2024, 12:01 PMfun toHyperlink(path: String): String {
val absolutePath = File(path).absolutePath
return absolutePath
}
However, in IntelliJ IDEA 2024.2.4 (Ultimate Edition), this no longer works. To display the paths as clickable links, I now need to add the prefix file:/
to the absolute path, like this:
fun toHyperlink(path: String): String {
val absolutePath = File(path).absolutePath
return "file://$absolutePath"
}
Does anyone have any idea why this behaviour has changed between versions? Is it because of the Ultimate Edition, or could there be another reason for this difference?
Thank you in advance for your help!Anna Kozlova
11/14/2024, 9:09 AMNatalia Peterwas
11/14/2024, 9:52 PMString
message containing hyperlinks and passing it to an exception:
class KoAssertionFailedException(
message: String? = null,
cause: Throwable? = null,
) : KoException(message, cause)
The exception is initialized as follows:
KoAssertionFailedException(messageWithHyperlinks)
The expected output on the console should resemble what is shown in the first attachment, and this behaviour is observed in IntelliJ IDEA version 2024.2.3.
However, in IntelliJ IDEA version 2024.2.4 (Ultimate Edition), the output differs and looks like what is shown in the second attachment.