|
|
|
@ -101,7 +101,7 @@ internal class PreviewHost(private val log: PreviewLogger, connection: RemoteCon
|
|
|
|
|
}.setUpUnhandledExceptionHandler(ExitCodes.RECEIVER_FATAL_ERROR) |
|
|
|
|
|
|
|
|
|
private fun Thread.setUpUnhandledExceptionHandler(exitCode: Int): Thread = apply { |
|
|
|
|
uncaughtExceptionHandler = Thread.UncaughtExceptionHandler { t, e -> |
|
|
|
|
uncaughtExceptionHandler = Thread.UncaughtExceptionHandler { _, e -> |
|
|
|
|
try { |
|
|
|
|
System.err.println() |
|
|
|
|
System.err.println(PREVIEW_START_OF_STACKTRACE_MARKER) |
|
|
|
@ -151,7 +151,7 @@ internal class PreviewHost(private val log: PreviewLogger, connection: RemoteCon
|
|
|
|
|
val possibleCandidates = previewFacade.methods.filter { it.name == "render" } |
|
|
|
|
throw RuntimeException("Could not find method '$signature'. Possible candidates: \n${possibleCandidates.joinToString("\n") { "* ${it}" }}", e) |
|
|
|
|
} |
|
|
|
|
val (id, fqName, frameConfig) = request |
|
|
|
|
val (_, fqName, frameConfig) = request |
|
|
|
|
val scaledWidth = frameConfig.scaledWidth |
|
|
|
|
val scaledHeight = frameConfig.scaledHeight |
|
|
|
|
val scale = frameConfig.scale |
|
|
|
|