Skip to content

Windows: (timbre/spy) throws an exception #1741

@timgilbert

Description

@timgilbert

version

1.4.192

platform

Windows 11

problem

Calling (taoensso.timbre/spy) throws an exception about a missing namespace

repro

> bb repl
Babashka v1.4.192 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=> (require '[taoensso.timbre :as timbre])
nil
user=> (timbre/spy (+ 1 2))
clojure.lang.ExceptionInfo: Could not resolve symbol: taoensso.encore/catching [at <repl>:2:1]
user=>

The above session is with no bb.edn. I tried adding com.taoensso/encore {:mvn/version "3.121.0"} as a dependency, but I get an error if I try to require it:

user=> (require '[taoensso.encore])
java.lang.Exception: Unable to resolve classname: java.util.function.UnaryOperator [at taoensso/encore.cljc:104:3]

expected behavior

Calling (timbre/spy) should not throw an exception. I think in the default config it won't emit a log either, since it logs at :debug by default, but eg (timbre/spy :warn (+ 1 2)) should produce output similar to (+ 1 2) => 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions