This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-09
Channels
- # announcements (3)
- # babashka (17)
- # beginners (75)
- # calva (43)
- # cider (1)
- # clj-kondo (54)
- # cljdoc (8)
- # cljs-dev (70)
- # clojure (83)
- # clojure-europe (27)
- # clojure-nl (4)
- # clojure-norway (4)
- # clojure-spec (8)
- # clojure-uk (13)
- # clojured (2)
- # clojurescript (47)
- # community-development (4)
- # conjure (2)
- # cursive (3)
- # datomic (5)
- # emacs (5)
- # events (3)
- # fulcro (13)
- # graalvm-mobile (19)
- # helix (2)
- # introduce-yourself (1)
- # jobs (2)
- # jobs-discuss (28)
- # kaocha (9)
- # livestream (11)
- # malli (15)
- # meander (24)
- # nextjournal (8)
- # off-topic (26)
- # pathom (1)
- # pedestal (8)
- # polylith (2)
- # portal (31)
- # re-frame (4)
- # reagent (10)
- # reitit (8)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (66)
- # spacemacs (20)
- # testing (6)
- # vim (15)
- # xtdb (7)
See me using MDD (Mistake Driven Development) at the REPL live today. In five hours. There's a Turn on reminder button there even. 😃 https://www.youtube.com/watch?v=T_wuPrHIupU
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
{:clojure.main/message
"Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).\n-Sdeps (No such file or directory)\n",
:clojure.main/triage
{:clojure.error/class java.io.FileNotFoundException,
:clojure.error/line -2,
:clojure.error/cause "-Sdeps (No such file or directory)",
:clojure.error/symbol java.io.FileInputStream/open0,
:clojure.error/source "FileInputStream.java",
:clojure.error/phase :execution},
:clojure.main/trace
{:via
[{:type java.io.FileNotFoundException,
:message "-Sdeps (No such file or directory)",
:at [java.io.FileInputStream open0 "FileInputStream.java" -2]}],
:trace
[[java.io.FileInputStream open0 "FileInputStream.java" -2]
[java.io.FileInputStream open "FileInputStream.java" 219]
[java.io.FileInputStream <init> "FileInputStream.java" 157]
[java.io.FileInputStream <init> "FileInputStream.java" 112]
[clojure.lang.Compiler loadFile "Compiler.java" 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 "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]],
:cause "-Sdeps (No such file or directory)"}}
this is what my project looks like, with a empty deps.edn https://github.com/leccese/brave-clojure-2022
any ideas?Hi! Welcome to Clojure and Calva! I am sorry to hear you are running into problems. What operating system are you using?
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 java.io.FileInputStream/open0 (FileInputStream.java:-2).
-Sdeps (No such file or directory)
Full report at:
/tmp/clojure-4300130859912500090.edn
Jack-in process exited. Status: 1
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]"
ileccese@dell:~/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 java.io.FileInputStream/open0 (FileInputStream.java:-2).
-Sdeps (No such file or directory)
Full report at:
/tmp/clojure-2871767856276621988.edn
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 https://clojure.org/guides/deps_and_cli -- did you install it via apt/yum instead?
clojure -version
should display the CLI version -- see https://clojure.org/releases/tools -- the most recent official CLI is 1.10.3.1075
ok I just ran the linux installer from http://clojure.org 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:
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).
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?
Afaik, this was solved on the side a few days ago, @UKFSJSM38 added some extra process to populate the full test tree during the clojure-lsp initialization.
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 -
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.
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.)
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.
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): https://github.com/BetterThanTomorrow/calva/issues/1049#issuecomment-805356322.
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.