babashka-sci-dev

teodorlu 2026-02-18T09:59:31.068409Z

I may have hit a regression between babashka v1.12.213 and babashka v1.12.215, see ๐Ÿงต Edit: conclusion is Babashka is not at fault.

โœ… 2
teodorlu 2026-02-18T10:00:27.686859Z

babashka v1.12.213: no crash.

teodorlu 2026-02-18T10:01:17.186729Z

babashka v1.12.215: crash.

teodorlu 2026-02-18T10:01:55.568039Z

This commands appears to be run automatically for me by Clojure-LSP. It hit us in our work project.

teodorlu 2026-02-18T10:03:05.949459Z

I can reproduce the error in an open source repo I've got.

$ git rev-parse HEAD
7099450eae5cd03a3e35e417961a0e546d144693

borkdude 2026-02-18T10:10:53.795219Z

I don't see what the issue is?

$ clojure -Sdeps '{:deps {selmer/selmer {:mvn/version "1.12.70"}}}'
Downloading: selmer/selmer/1.12.70/selmer-1.12.70.pom from clojars
Downloading: selmer/selmer/1.12.70/selmer-1.12.70.jar from clojars
Clojure 1.12.1
user=>

borkdude 2026-02-18T10:45:25.063619Z

I mean: I don't see the problem with selmer 1.12.70 locally

teodorlu 2026-02-18T10:46:02.118449Z

oh, so when you run bb print-deps --format classpath, it works on your machine?

borkdude 2026-02-18T10:46:13.901339Z

also print-deps works fine here... I can try to erase my .m2 folder to see if that helps. yup

๐Ÿ‘ 1
๐Ÿ™ 1
teodorlu 2026-02-18T10:46:53.191789Z

In that case, I'm lead to believe that our weird work network VPN may be at fault. Let me try without the VPN.

teodorlu 2026-02-18T10:52:35.343369Z

The raw Clojure command also fails on my machine, with the same error. That leads me to conclude that Babashka is not involved! Sorry for the disturbance, and thanks for the help with diagnostics! ๐Ÿซก

$ clojure -Sdeps '{:deps {selmer/selmer {:mvn/version "1.12.70"}}}'
Error building classpath. Could not transfer artifact selmer:selmer:jar:1.12.70 from/to clojars (): status code: 416, reason phrase: Range Not Satisfiable (416)

borkdude 2026-02-18T10:53:15.831089Z

and how about selmer 1.13.1?

teodorlu 2026-02-18T10:54:29.165729Z

Succeeds.

$ clojure -Sdeps '{:deps {selmer/selmer {:mvn/version "1.13.1"}}}'
Downloading: selmer/selmer/1.13.1/selmer-1.13.1.pom from clojars
Downloading: selmer/selmer/1.13.1/selmer-1.13.1.jar from clojars
Clojure 1.12.0
user=>

borkdude 2026-02-18T11:00:27.591769Z

that should have actually been the version since I bumped that in bb, but it didn't make it into the print-deps map somehow. however, 1.12.70 does exist in clojars, can you double check?

teodorlu 2026-02-18T12:32:20.484659Z

Corrupt ~/.m2 was at fault. Removed the selmer version from m2, then everything works.

teodorlu 2026-02-18T12:32:39.844699Z

I appear to be getting Selmer 1.12.70 with the latest Babashka.

$ pwd
/Users/teodorlu
$ /opt/homebrew/bin/bb print-deps --format classpath | split-lines-on : | grep selmer
/Users/teodorlu/.m2/repository/selmer/selmer/1.12.70/selmer-1.12.70.jar
$ bb --version
babashka v1.12.215

๐Ÿ‘ 1