Fork me on GitHub
#calva
<
2024-05-07
>
Dos02:05:59

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

seancorfield02:05:11

I suspect you have an older, conflicting version of cider/cider-nrepl in one of your lein profiles...

seancorfield02:05:53

(perhaps in your .lein/profiles.clj file?)

Dos02:05:35

no such file exists

Dos02:05:53

is that possible that some libs from project.clj/:profiles might use conflicted version of cider/cider-nrepl ?

seancorfield02:05:40

That's what I suggested above.

seancorfield02:05:01

(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)

seancorfield02:05:11

Feel free to paste your project.clj file here...

Dos02:05:20

removing all dev dependencies didn't help

seancorfield02:05:52

And what does lein version say?

Dos02:05:57

and no such ~/.config/lein and .lein/profiles.clj files

Dos02:05:22

> And what does lein version say? Leiningen 2.9.8 on Java 11.0.22 OpenJDK 64-Bit Server VM

Dos02:05:28

okay, definitely something wrong with my deps, other project started without problems

seancorfield02:05:12

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)

Dos02:05:07

here is my project.clj

Dos02:05:37

thanks, Sean

Dos02:05:17

profiles.clj

{:profiles/dev {}}

seancorfield02:05:21

You have both nREPL and CIDER as top-level dependencies:

;;  REPL
                 [nrepl "0.9.0"]
                 [cider/cider-nrepl "0.28.5"]

Dos02:05:49

yes, but removing them didn't help in a first go

seancorfield02:05:06

Not in :dev -- in your :dependencies vector.

seancorfield02:05:39

nREPL & CIDER should pretty much never be in the main :dependencies vector...

Dos02:05:50

removing them from :dependencies didn't help. They are used for remote repl

seancorfield03:05:17

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).

Dos03:05:38

thank you, let me check with the lowest versions

Dos03:05:57

problem starts from [cider/cider-nrepl,"0.32.0"]

seancorfield03:05:40

Yeah, the versions in your project.clj are pretty old. Quite a few of your deps are outdated.

Carsten Behring12:05:27

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.

👀 2
🙌 1
chromalchemy15:05:26

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

Alexander Kouznetsov18:05:33

Would be great to have a simple search in the data.