This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-11
Channels
- # announcements (3)
- # asami (4)
- # babashka (79)
- # babashka-sci-dev (47)
- # beginners (97)
- # biff (12)
- # calva (7)
- # clj-commons (3)
- # clj-kondo (22)
- # clj-on-windows (13)
- # cljdoc (31)
- # cljfx (2)
- # cljs-dev (1)
- # clojure (85)
- # clojure-austin (4)
- # clojure-dev (12)
- # clojure-europe (15)
- # clojure-italy (8)
- # clojure-nl (4)
- # clojure-uk (4)
- # community-development (19)
- # conjure (3)
- # core-typed (40)
- # cursive (9)
- # datahike (21)
- # datomic (1)
- # emacs (7)
- # exercism (2)
- # graalvm (20)
- # graphql (1)
- # honeysql (16)
- # jobs (1)
- # malli (2)
- # off-topic (3)
- # pathom (28)
- # pedestal (3)
- # polylith (7)
- # reitit (14)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (4)
- # shadow-cljs (21)
- # sql (21)
- # testing (8)
- # tools-deps (23)
- # vscode (8)
- # xtdb (38)
Hey, where clojure tools is caching the dependencies list/classpath?
I have a project that is using rewrite-clj
and in a babashka script in the same project (for error) I imported rewrite-cljs
. Since then I’m unable to run a REPL since is requiring the cljs version of the library that is causing conflicts in the code. rewrite-cljs
is not present at all in the project, I removed .cpcache
, .shadow-cljs
and ~/.m2/repository/rewrite-cljs
without success. If I run something with clj -M:dev foo
and run ps -aef | grep rewrite-cljs
in a separate terminal, I see
/usr/bin/java -Dconf=dev-config.edn -Dclojure.basis=.cpcache/1039881647.basis -classpath [...]:/Users/olaf/.m2/repository/rewrite-cljs/rewrite-cljs/0.4.5/rewrite-cljs-0.4.5.jar:[...]
Don’t know how to remove it.@eliascotto94 you should not use rewrite-cljs anymore, that library was merged into rewrite-clj
@eliascotto94 Remove ~/.clojure/.cpcache as well
Can you post the output of clojure -Stree -A:dev
in a reply on this message (thread)?
and do you know for sure that the ps -aef output matches the last java process you spawned and not an old one?
Killed all node and java. run with -Sforce
, opened another window and typed ps -aef | grep rewrite-cljs
. Only one process with rewrite-cljs
in the classpath
No, but I can give you access to the repo. If I search inside the project for rewrite-cljs
nothing comes out
Did you check -/.clojure/deps.edn ?
@eliascotto94 I see your same question in #rewrite-clj and there you mentioned you are using shadow-cljs.
Try npx shadow-cljs info
… I think that is how you ask shadow-cljs to show dependencies…?
@eliascotto94 I checked out your repo now. And when I ded clojure -Stree -A:dev
I see this:
day8.re-frame/re-frame-10x 1.2.5
X binaryage/devtools 1.0.5 :use-top
. com.yahoo.platform.yui/yuicompressor 2.4.8
. zprint/zprint 1.0.1
. rewrite-cljs/rewrite-cljs 0.4.5
X org.clojure/tools.reader 1.3.2 :older-version
X borkdude/edamame 0.0.11-alpha.12 :use-top
X rewrite-clj/rewrite-clj 0.6.1 :use-top
. superstructor/re-highlight 1.1.0
. cljsjs/highlight 10.3.1-0
So it's re-frame10x which pulls this in via zprint.