clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
2020-09-28T16:39:33.076100Z

Hitting a weird issue after I tried to upgrade scoop Clojure for the first time in awhile. It might not necessarily be scoop related. But when I scoop uninstall clojure -p and then install it again, I get a proper repl with clojure version 1.10.1. However, when I try to start a repl with inf-clojure on emacs, which SHOULD just be a wrapper over shelling out the command cmd-clojure, the repl it gives me is version 1.9.0. Only 1.10.1 shows up in my dependency tree with clj -Stree. And when I use the emacs shell I get the correct version with cmd-clojure. Any hints as to what might be causing this?

littleli 2020-09-28T16:48:26.076200Z

Maybe launch clj with -Sforce to make sure cache is not polluted by some unwanted artifacts. Or at min explore what's there - clj -Sverbose could be helpful with cache locations etc.

littleli 2020-09-28T16:51:33.076400Z

One thing that you can also check is in followint trail: scoop uses directories with each version and current link to most recent version. Make sure a path to very specific version is not used anywhere - probably it isn't, but I'm just shooting out ideas.

2020-09-28T16:52:27.076600Z

thanks for the ideas! Strangly the verbose output shows the correct version but then the repl startupd message still shows 1.9

littleli 2020-09-28T16:52:43.076800Z

It might be some classpath polution problem

littleli 2020-09-28T16:53:14.077Z

some of the deps is depending on older version and it takes precedence

2020-09-28T16:55:45.077200Z

Would they show up in the STree then? I'll try to start removing deps and see if that helps.

2020-09-28T17:32:48.077400Z

Ok I figured out the issue. I had a local/root dependency pointing to a jar file which used 1.9, when I removed that it works

2020-09-28T17:33:07.077600Z

thanks for the help!

1