This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-05
Channels
- # announcements (7)
- # beginners (10)
- # calva (14)
- # clj-otel (8)
- # clojure (42)
- # clojure-europe (20)
- # clojure-nl (1)
- # clojure-norway (22)
- # clojure-spec (8)
- # clojure-uk (7)
- # core-async (10)
- # cursive (1)
- # events (1)
- # hyperfiddle (20)
- # introduce-yourself (1)
- # jobs-discuss (11)
- # lsp (48)
- # missionary (3)
- # music (1)
- # off-topic (7)
- # overtone (9)
- # pedestal (21)
- # rdf (1)
- # releases (3)
- # shadow-cljs (22)
- # specter (13)
- # squint (1)
- # yamlscript (3)
;; this is fine
(.readLine (io/reader (java.io.ByteArrayInputStream. (.getBytes "hi"))))
;; this errors: No matching field found: readLine for class java.io.BufferedReader
(m/? (m/sp (.readLine (io/reader (java.io.ByteArrayInputStream. (.getBytes "hi"))))))
strange behavior, b.36, clojure 1.12.0-alpha8I noticed the same issue, and hadn't put together an example yet. An easy workaround is put Java method calls in a Clojure fn, and call the Clojure fn from within m/sp.