This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-25
Channels
- # announcements (4)
- # beginners (26)
- # calva (18)
- # cider (24)
- # clojure (35)
- # clojure-brasil (9)
- # clojure-dev (6)
- # clojure-europe (39)
- # clojure-madison (1)
- # clojure-nl (1)
- # clojure-norway (100)
- # clojure-uk (6)
- # clojurescript (17)
- # data-science (15)
- # datalevin (5)
- # emacs (1)
- # events (2)
- # introduce-yourself (2)
- # javascript (1)
- # malli (28)
- # missionary (7)
- # off-topic (59)
- # polylith (20)
- # reitit (2)
- # releases (1)
- # remote-jobs (2)
- # rewrite-clj (5)
- # shadow-cljs (27)
- # sql (5)
- # squint (63)
- # xtdb (8)
Dear Calva-friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.448 • Fix: https://github.com/BetterThanTomorrow/calva/issues/2533 In which we also document the fact that you can adapt this command with the full power of zprint configuration: https://calva.io/formatting/#3-replace-current-form-or-selection-with-pretty-printed-form
@pez what command is inspect item
? I've accidentally cleared the inspector results more then once so I want to bind a double mouseclick on the inspector line to it.
The commands are listed on http://calva.io. I’ve also clicked the wrong button too many times now. Issue welcome. 😀
Hey all! I was following https://liamduffy.hashnode.dev/how-to-deploy-your-clojure-api-with-docker-and-flyio and managed to get a clojure api deployed to http://fly.io! However, when I tried to make changes in the Calva repl in VSCode, it doesn't look like the api picks up the changes, even when I re-evaluated the form. I manually started the api with (-main)
in the repl. Is there an article I can read that shows how to make changes in the calva repl while an api is already running? Any help would be appreciated!
Hi! I’ve never heard of http://fly.io, but generally what it takes is something like:
• The app is started with nrepl and cider-nrepl dependencies satisfied
• There’s an nrepl server started in the app
• The port that the nrepl server is serving on is exposed to the machine running Calva
If you are fine with starting the api manually for now, you can start the app the same way Calva Jack-in would start it. (There’s a command for copying out this command line to the clipboard.) And then start the api from Calva once you have connected. Another way to do it is to start the app with it’s -main
as entry point and start an embedded nrepl server from there. There was a discussion about this here: https://clojurians.slack.com/archives/CBE668G4R/p1713993901033949
Ah, this is helpful. Thank you! I believe I need to install the cider-nrepl dependencies
The cider-nrepl dependencies are a bit optional. The basic repl functionality should be there even without it. This is FYI, I agree cider-nrepl should be added, just that it’s not what’s wrong if you don’t succeed in connecting to the repl.
Hello, I'm getting the following error when run calva: Fire up the getting started REPL
Please help.
This is a pseudo terminal, only used for hosting the Jack-in REPL process. It takes no input.
Pressing ctrl+c with this terminal focused, killing this terminal, or closing/reloading the VS Code window will all stop/kill the Jack-in REPL process.
⚡️ Starting the REPL ⚡️ using the below command line:
pushd /tmp/betterthantomorrow.calva/2inptq ; java -jar '/home/sakib/.vscode/extensions/betterthantomorrow.calva-2.0.448/deps.clj.jar' -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"1.1.1"},cider/cider-nrepl {:mvn/version,"0.47.1"}}}' -M -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]" ; popd
Clojure tools not yet in expected location: /home/sakib/.deps.clj/1.11.2.1446/ClojureTools/clojure-tools-1.11.2.1446.jar
Unzipping /home/sakib/.deps.clj/1.11.2.1446/ClojureTools/clojure-tools.zip ...
Exception in thread "main"
java.io.EOFException: Unexpected end of ZLIB input stream
at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:245)
at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)
at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:197)
at java.base/java.util.zip.CheckedInputStream.read(CheckedInputStream.java:83)
at java.base/java.io.InputStream.transferTo(InputStream.java:704)
at java.base/java.nio.file.Files.copy(Files.java:3078)
at borkdude.deps$unzip.invokeStatic(deps.clj:422)
at borkdude.deps$clojure_tools_install_BANG_.invokeStatic(deps.clj:597)
at borkdude.deps$_main$fn__229.invoke(deps.clj:924)
at borkdude.deps$_main.invokeStatic(deps.clj:924)
at borkdude.deps$_main.doInvoke(deps.clj:882)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at borkdude.deps.main(Unknown Source)
Jack-in process exited. Status: 1
Seems something wrong is downloaded with the downloaded zip file. Perhaps try removing /home/sakib/.deps.clj
and then run again