From 16f8527adc9ed99db8fa086cf20a06ddd0c2a5b0 Mon Sep 17 00:00:00 2001 From: lread Date: Fri, 2 Dec 2022 18:27:28 -0500 Subject: [PATCH] Fix rendering of exceptions when used from REPL Closes #513 --- CHANGELOG.adoc | 1 + src/etaoin/impl/{proc.clj => proc.cljc} | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) rename src/etaoin/impl/{proc.clj => proc.cljc} (92%) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 9133d4e3..a9973738 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -8,6 +8,7 @@ A release with an intentional breaking changes is marked with: == Unreleased * https://github.com/clj-commons/etaoin/issues/503[#503]: Address Clojure interop issue introduced by new Thread/sleep signature in JDK 19 +* https://github.com/clj-commons/etaoin/issues/513[#513]: Fix rendering of exception when used from REPL * bumped Etaoin dependencies * docs: ** https://github.com/clj-commons/etaoin/issues/447[#447]: Describe testing without a display in the link:doc/01-user-guide.adoc#headless-testing[user guide], including a new requirement for a windows manager when using a virtual display on Linux diff --git a/src/etaoin/impl/proc.clj b/src/etaoin/impl/proc.cljc similarity index 92% rename from src/etaoin/impl/proc.clj rename to src/etaoin/impl/proc.cljc index 62d8d1b3..afe4844c 100644 --- a/src/etaoin/impl/proc.clj +++ b/src/etaoin/impl/proc.cljc @@ -1,7 +1,9 @@ (ns ^:no-doc etaoin.impl.proc (:require [babashka.fs :as fs] - [babashka.process :as p] + #?@(:bb [[babashka.process :as p]] + :clj [[babashka.process :as p] + [babashka.process.pprint]]) ;; to support exception rendering in REPL [clojure.string :as str])) (def windows? (str/starts-with? (System/getProperty "os.name") "Windows"))