This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-07
Channels
- # announcements (16)
- # asami (15)
- # babashka (12)
- # beginners (38)
- # calva (32)
- # cider (1)
- # clj-commons (9)
- # clj-otel (4)
- # clojure (57)
- # clojure-europe (43)
- # clojure-korea (1)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (4)
- # clojuredesign-podcast (9)
- # clojurescript (10)
- # cursive (5)
- # datahike (9)
- # deps-new (2)
- # events (1)
- # fulcro (8)
- # hyperfiddle (7)
- # kaocha (1)
- # lsp (2)
- # malli (3)
- # nrepl (2)
- # off-topic (19)
- # releases (3)
- # ring (10)
- # shadow-cljs (4)
- # sql (14)
- # xtdb (57)
- # yamlscript (2)
Hi, I am getting this error msg
⚡️ Starting the REPL ⚡️ using the below command line:
(cd /home/dos/kleene/jumper; lein update-in :dependencies conj '[nrepl,"1.1.1"]' -- update-in :plugins conj '[cider/cider-nrepl,"0.47.1"]' -- update-in '[:repl-options,:nrepl-middleware]' conj '["cider.nrepl/cider-middleware"]' -- with-profile +dev repl :headless)
Syntax error compiling var at (/tmp/form-init4440477826676277987.clj:1:9813).
Unable to resolve var: cider.nrepl/wrap-log in this context
Full report at:
/tmp/clojure-11931661017059771856.edn
Error encountered performing task 'repl' with profile(s): 'base,system,user,provided,dev'
Subprocess failed (exit code: 1)
Jack-in process exited. Status: 1
I suspect you have an older, conflicting version of cider/cider-nrepl
in one of your lein
profiles...
(perhaps in your .lein/profiles.clj
file?)
is that possible that some libs from project.clj/:profiles might use conflicted version of cider/cider-nrepl ?
That's what I suggested above.
(the follow-up comment was to also check your user-level lein
config -- which might be in ~/.config/lein
or something similar if you don't have ~/.lein/
-- but that is all optional config)
Feel free to paste your project.clj
file here...
And what does lein version
say?
> And what does lein version
say?
Leiningen 2.9.8 on Java 11.0.22 OpenJDK 64-Bit Server VM
If you want to share your project.clj
file, I'm happy to try to debug it...
(although I haven't used Leiningen since 2015, except for helping folks here on Slack)
You have both nREPL and CIDER as top-level dependencies:
;; REPL
[nrepl "0.9.0"]
[cider/cider-nrepl "0.28.5"]
Not in :dev
-- in your :dependencies
vector.
nREPL & CIDER should pretty much never be in the main :dependencies
vector...
You can configure Calva to use older versions of nREPL and CIDER which should prevent conflicts, if you don't want to update your project deps (but I think you need the latest Calva for that).
See https://calva.io/customizing-jack-in-and-connect/#jack-in-dependency-versions
Yeah, the versions in your project.clj
are pretty old. Quite a few of your deps are outdated.
I have just tried "datawalker" inside Calva. https://github.com/eggsyntax/datawalk It does a decent job for interactively exploring data in the Calva repl.
Just demo’d it. Pretty neat! some notes: • Pops up a text input field for hotkey commands • browse and drill a data structure in this little interface ◦ save breadcrumbs for future use • eval starts a navigation session ◦ just for that single eval ▪︎ loses state on exit • returns ◦ saved values / paths on exit ▪︎ in an indexed map ◦ current location • use returned navigated paths in future code to persist traces in future evals • compared to ◦ multiple evaluations ▪︎ to drill down data structure ▪︎ or portal ui nav commands
Would be great to have a simple search in the data.