-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clojure 1.12 Array class syntax support #334
Comments
I now checked the rewrite-clj issue tracker and couldn't find anything about this. But the issue search engine isn't exactly stellar, so I may just have missed it. |
Hmmm... It is not this simple. This works fine: #_{zprint/zprint {:mvn/version "1.2.9"}}
(require '[zprint.core :as zp])
(zp/czprint-str "^[Long] a" 40 {:parse-string-all? true})
;;=> "^[Long] a"
(zp/czprint-str "^Long/1 a" 40 {:parse-string-all? true})
;;=> "^Long/1 a" I tried this in Clojure. So it may have something to do with that Calva uses the ClojureScript libraries. (And Clojure pre-11, come to think of it.) I'll go check from that end of things and see if I have just bothered you for no reason. |
Hello again. I'm sorry for this getting messy. I now think I know why the above test didn't reproduce the problem. Right before that, I had tried this: #_{rewrite-clj/rewrite-clj {:mvn/version "1.1.48"}}
(require '[rewrite-clj.zip :as z])
(-> (z/of-string "^[Long] a")
z/sexpr)
(-> (z/of-string "^Long/1 a")
z/sexpr) And that made zprint use rewrite-clj
Using zprint without first requiring the fixed rewrite-clj reproduces the problem. |
Thank you very much for letting me know about this. I had missed this change in Clojure 1.12, and the corresponding upgrade required in rewrite-clj. In my tests as well, |
Hi! Clojure 1.12 adds new Array class syntax. Example:
Unfortunatelly zprint croaks on this:
And this makes Calva sad.
I haven't checked if this is upstream on rewrite-clj, but adding here to put it on your radar, unless it wasn't already.
The text was updated successfully, but these errors were encountered: