rewrite-clj

vemv 2021-10-24T19:32:17.001600Z

I've been trying to upgrade refactor-nrepl's r-c dep for a while but fails the build (quite opaquely) for all jdks but JDK17. I consistently get that jdk-specificity. Does that ring a bell?

vemv 2021-10-24T19:32:22.001700Z

lread 2021-10-24T19:46:51.002900Z

Hi @vemv! Nope, not at all. Want some help looking at the failures?

😊 1
vemv 2021-10-24T19:48:08.003700Z

they really don't say anything about rewrite-clj unfortunately, these are integration tests that go through nrepl and stuff

lread 2021-10-24T19:49:30.005Z

Hmm… interesting tho. Would have expected consistent behaviour across the JDKs.

lread 2021-10-24T19:50:03.005600Z

Any pattern to it? Something to do with characters sets/whitespace, etc?

vemv 2021-10-24T19:51:50.006600Z

> Hmm… interesting tho. Would have expected consistent behaviour across the JDKs. it could be anything, it's updating r-c that triggers this but the project is large enough for funny behavior to emerge for arbitrary reasons :)

vemv 2021-10-24T19:52:45.007600Z

nothing too specific that can be debugged will report any progress or insight

lread 2021-10-24T19:54:18.008800Z

Do tests pass for rewrite-clj v0? (making an assumption you are currently testing with rewrite-clj v1).

vemv 2021-10-24T19:54:32.009Z

v0 is xsc's?

lread 2021-10-24T19:55:57.010200Z

Yeah, but v1 is at same maven coordinates, xsc kindly gave us the clojars rights.

vemv 2021-10-24T19:56:55.010800Z

yes, we've used v0 for a long time untouched, green build for a long while

lread 2021-10-24T19:58:35.011700Z

So you are on rewrite-clj v0.6.1? Or have you upgraded to v1.0.699-alpha?

vemv 2021-10-24T20:00:25.012800Z

refactor-nrepl uses [rewrite-clj "0.6.1"] in master and all public releases. I'm trying out [rewrite-clj "1.0.699-alpha"] in a branch, which distinctly fails a few tests in all jdks but 17

lread 2021-10-24T20:02:25.014300Z

Cool, gotcha. If you swap back in rewrite-clj v0.6.1 (if that is even possible?) in your branch are your tests all green?

vemv 2021-10-24T20:03:02.015Z

I don't need to do that, the point of the branch is solely to update rewrite-clj

vemv 2021-10-24T20:03:14.015500Z

master -> green branch off and update -> red

lread 2021-10-24T20:06:20.017800Z

Just trying to explore what variables have changed. If the only change in your branch is the rewrite-clj dep going from v0 to v1, then retesting there with v0 is, I agree, pointless. But if any other things have changed in your branch I think retesting with v0 would be worth a whirl.

👍 1
lread 2021-10-24T20:07:33.018500Z

In any case, I am very interested, and can lend a hand if you can figure out how I might be of help.

vemv 2021-10-24T20:09:08.019600Z

thanks! 🍻 will keep debugging for a while, it's still relatively early in the investigation

lread 2021-10-24T20:12:49.021700Z

Cool, looking forward to learning more, please keep me posted! And once you get any suspicions, a review of the https://github.com/clj-commons/rewrite-clj/blob/main/CHANGELOG.adoc#rewrite-clj-v1 might, who knows?, give you an AHA! moment.

👀 1
vemv 2021-10-24T21:04:05.023400Z

maybe the whole thing has less to do with the rewrite-clj bump and more with the transitive clojurescript bump that is associated to it. for context, a few refactor-nrepl tests depend on https://github.com/nrepl/piggieback which deserves some love

vemv 2021-10-24T21:04:17.023800Z

tldr it's all a 🐰 🌀

lread 2021-10-24T22:14:42.025900Z

Thanks for the update @vemv! Happy to learn about any new discoveries further explorations uncover.

vemv 2021-10-24T22:17:23.026300Z

it's fixed now and indeed it didn't have to do with rewrite-clj

vemv 2021-10-24T22:17:36.026600Z

or at least not directly

vemv 2021-10-24T22:17:51.027Z

I was using Circle images without node in them

vemv 2021-10-24T22:18:04.027400Z

which was super opaque... in a few other projects I have this canary snippet

vemv 2021-10-24T22:18:14.027800Z

(let [{:keys [exit]
         :as v} (clojure.java.shell/sh "node" "--version")]
    (assert (zero? exit)
            (pr-str v)))

vemv 2021-10-24T22:18:51.028500Z

would have saved me idk, 6h recalling all various things I've done in the last few days!

lread 2021-10-24T23:03:56.029300Z

Hey, thanks for the update @vemv - and also congratulations on solving the puzzle! 🎉

🙂 1