Fork me on GitHub

See me using MDD (Mistake Driven Development) at the REPL live today. In five hours. There's a Turn on reminder button there even. 😃

calva 7
🎥 4
🙌 3
Lukas Domagala09:02:24

MDD is the best methodology, props for choosing it!

Daniel Amber12:02:11

MDD 😂 - is there another kind of dev :thinking_face:


hey everyone, I'm new to clojure and calva. I'm having trouble connecting a REPL to a project which I was able to connect a REPL to previously, so I think I messed something up in my environment, but I can't figure it out I'm trying to connect a REPL with the commands "Calva: Start or Connect to a Clojure REPL" > "Start your project with a REPL and Connect (aka Jack-in)" > project type "deps.edn" but I get this error

 "Execution error (FileNotFoundException) at (\n-Sdeps (No such file or directory)\n",
  :clojure.error/line -2,
  :clojure.error/cause "-Sdeps (No such file or directory)",
  :clojure.error/source "",
  :clojure.error/phase :execution},
    :message "-Sdeps (No such file or directory)",
    :at [ open0 "" -2]}],
  [[ open0 "" -2]
   [ open "" 219]
   [ <init> "" 157]
   [ <init> "" 112]
   [clojure.lang.Compiler loadFile "" 7571]
   [clojure.main$load_script invokeStatic "main.clj" 475]
   [clojure.main$script_opt invokeStatic "main.clj" 535]
   [clojure.main$script_opt invoke "main.clj" 530]
   [clojure.main$main invokeStatic "main.clj" 664]
   [clojure.main$main doInvoke "main.clj" 616]
   [clojure.lang.RestFn applyTo "" 137]
   [clojure.lang.Var applyTo "" 705]
   [clojure.main main "" 40]],
  :cause "-Sdeps (No such file or directory)"}}
this is what my project looks like, with a empty deps.edn any ideas?


Hi! Welcome to Clojure and Calva! I am sorry to hear you are running into problems. What operating system are you using?


I have a windows machine but I'm running this on WSL2/Ubuntu


Can you run the command Copy jack-in command line (or something like it. And paste the result here?


clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"0.9.0"},cider/cider-nrepl {:mvn/version,"0.27.4"}}}' -M -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
Execution error (FileNotFoundException) at (
-Sdeps (No such file or directory)

Full report at:
Jack-in process exited. Status: 1


oops not that


this is from "Copy jack-in"

clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"0.9.0"},cider/cider-nrepl {:mvn/version,"0.27.4"}}}' -M -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"


And if you run that in a terminal, what happens?


[email protected]:~/brave-clojure-2022$ clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"0.9.0"},cider/cider-nrepl {:mvn/version,"0.27.4"}}}' -M -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
Execution error (FileNotFoundException) at (
-Sdeps (No such file or directory)

Full report at:


Hmmm, I didn’t expect that. What could be going on… I’ll have to do some testing here. Not an expert on WSL stuff. Do you have any ideas, @U04V70XH6 ?


Maybe someone in #clojureor #clj-on-windows can make something about that last experiment you did, @imleccese


@imleccese I think your clojure command is not the official CLI installation per -- did you install it via apt/yum instead?


clojure -version should display the CLI version -- see -- the most recent official CLI is


ok I just ran the linux installer from and now it's working! yeah I must have had the correct installation originally but then accidentally overridden it with apt. thanks @pez and @U04V70XH6!


Great that you got out working. I feel a bit stupid here because I ran into this exact problem myself setting up a Linux machine a few weeks ago. I got focused on the Windows part of the message and that blocked me from connecting back. :face_with_cowboy_hat:

👍 1

I've seen several folks run into a variant of No such file or directory lately with CLI options being treated as files so it rang a bell (in all cases they had installed an unofficial version of the CLI).

👍 1

I see a "Testing" icon in the sidebar but it says "No tests have been found in this workspace yet". But when I run tests I see a test tree there. Is this the expected behaviour?


I seem to remember something like this being mentioned before. @U0K592YDP , is there a way to get the test tree from clojure-lsp after it’s initialized and populate that testing pane with the tests before any tests are run?

Erick G. Islas Osuna04:02:55

Afaik, this was solved on the clojure-lsp side a few days ago, @UKFSJSM38 added some extra process to populate the full test tree during the clojure-lsp initialization.

👍 1
☝️ 1
Marc O'Morain10:02:49

Thanks @U02SXQU5K7X - that should indeed fix it. The issue is that LSP doesn’t send / Calva doesn’t receive data until you edit a file or run some tests.


Hi @imleccese I forked your repo and I can jack-in with Calva just fine.


In the terminal, I see

clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"0.9.0"},cider/cider-nrepl {:mvn/version,"0.27.4"}}}' -M -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
nREPL server started on port 60832 on host localhost - 


You should have your clj files under a src/ directory though.

👍 1

(That's the default expectation of an empty deps.edn file)


hmm yeah so probably something's messed up with my env


Out of curiosity, what happens if you just type “clojure” at the terminal? Or preferably “clj”? If you move your files under src you should be able to require your ch3 namespace and run the functions there.


Hey folks! Do I understand correctly that calva bundles cljfmt compiled to JS from a fork in @pez GitHub? If so, how difficult would it be to sync the fork with the upstream? I'm seeing a discrepancy in cljfmt and Calva format where calva seems to strip trailing commas but cljfmt doesn't (the config is the same). I'm seeing some relevant commits in cljfmt that could've affected this behavior. Seems like the fork is quite a bit behind.


Hi there! Yes, you are understanding that correctly. And we should really do that work, even if the answer to that question is that it will be a bit difficult. We will have to kill some Calva features and that figure if we could soften that blow a bit for the users of those features.


Incredibly fast turnaround on this issue, thank you for your work @pez !


Haha, thanks @UEH4D93GS. Haha, because it is super long overdue. I just happened to realize how I could do it.


(I've tried to solve this many times. But with me picking the wrong approach the issue has always won over me.)

Sam Scully21:02:28

Hi! does anyone know how to use the debugger with an app that is running locally? was hoping i could hit the endpoints and use breakpoints to step through the flow of my code


What type of app are you trying to do this with? Is the the code you’re trying to debug Clojure? The debugger unfortunately only works with Clojure and not ClojureScript.

Sam Scully16:02:16

sorry, yes it is a clojure compojure/ring web app


See this issue and comment about making this work with pedestal (you can probably due something similar with ring):

Sam Scully19:02:06

Thanks! Ill check this out

👍 1

A strange thing has been happening recently. I am working along without problems in a .clj file and make a small change in the code. Suddenly I see a large number of clj-kondo errors in the "Problems" pane, and the errors are not in my code but in core.clj. These are of course spurious, but the only way to get rid of them is to disconnect the REPL and restart. What am I doing wrong? It happens randomly, so I can't give repro code.


There was a similar report just some few days ago. Not sure what was the conclusion of that discussion, but at least I don't think you are doing something wrong.