Browse Source

Do not render preview if protocol between IJ & Gradle does not match (#2556)

pull/2557/head
Alexey Tsvetkov 2 years ago committed by GitHub
parent
commit
15aa81c851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      gradle-plugins/preview-rpc/src/main/kotlin/org/jetbrains/compose/desktop/ui/tooling/preview/rpc/commands.kt
  2. 2
      idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/ide/preview/ui/PreviewPanel.kt

3
gradle-plugins/preview-rpc/src/main/kotlin/org/jetbrains/compose/desktop/ui/tooling/preview/rpc/commands.kt

@ -23,8 +23,9 @@ internal fun RemoteConnection.receiveAttach(
listener?.onError(
"Compose Multiplatform Gradle plugin version is not compatible with Intellij plugin version"
)
} else {
fn()
}
fn()
}
}
}

2
idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/ide/preview/ui/PreviewPanel.kt

@ -39,7 +39,7 @@ internal class PreviewPanel(private val myProject: Project) : JBPanel<PreviewPan
clear()
appendLine(
AllIcons.General.Error,
"Preview rendering encountered an error",
"Preview encountered an error",
SimpleTextAttributes.REGULAR_ATTRIBUTES,
null
)

Loading…
Cancel
Save