This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-11
Channels
- # announcements (1)
- # aws (5)
- # beginners (8)
- # biff (7)
- # calva (32)
- # cider (26)
- # clj-kondo (6)
- # clojure (100)
- # clojure-europe (6)
- # clojure-greece (1)
- # clojurescript (15)
- # core-logic (3)
- # fulcro (2)
- # honeysql (4)
- # hoplon (39)
- # hyperfiddle (11)
- # lsp (12)
- # other-languages (2)
- # podcasts-discuss (1)
- # squint (30)
New to Calva. I can't get rid of three clj files, when starting Calva. One of them is hello_repl.clj
Hi! Welcome to Calva! You don’t need to start Calva. Do you mean the three files that open when you run the command Fire up the Getting Started REPL?
Exactly them, yes.
How do I know Calva is started? I see no indicator.
Calva activates when there is Clojure project files in the folder that it opened in VS Code. You will see a REPL button to the left in the status bar.
If you are new to Clojure: Here’s a minimal get started project, with some links in the readme to more beginner resources: https://github.com/PEZ/clojure-get-started-mini
Is the white dot in front of clojure-lsp the indicator?
Sort of. If you see that, then Calva is started. To the left of that you should also see the REPL-button. These buttons show up when the Calva extension activates. Then you should connect the REPL. Do you have a Clojure project you want to work with?
I have to execute the Calva Command to see REPL. And then the three files show up.
Ah, but that is because it starts a Getting Started REPL. It is not the command to connect the REPL to your project.
Here’s a page about connecting the REPL: https://calva.io/connect/
I don't know the difference between babashka, nbb and joyride. (for project type)
If you use the minimal project I linked to above, then you should select deps.edn
as the project type.
I don't think I have seen an deps.edn alternative. I can't see such a file either.
Atm I'm doing 1. Click Joyride, 2. Click REPL 3. Start Joyride.
Joyride is for scripting VS Code. You need the Joyride extension for that. (I think you should be alerted that the extension is needed, but I could be wrong.)
The minimal project, I link to it again: https://github.com/PEZ/clojure-get-started-mini has a Usage section telling you about the requirements and how to start the REPL.
Is it possible to see the values of all subexpressions simultaineously?
Like: (comment (* 2 (+ 3 4) # 12 ) # 14 )
The command you have for something like that I’d say are two: • Evaluate Current form • Evaluate To Cursor It’s a bit hard to explain in text here. If you have time for a video chat we can do a quick huddle if you like?
Here’s a video, it’s subtitles with the commands I use. Don’t know how easy it is to follow.
I think I cna see both 12 and 14 using ctrl+Enter, but not at the same time. This will do for tonight, thanks a lot!
Haha, I was quite tired... My tab key is not working. I would like to keep the tabs and have a size of 4 spaces. Do I have to change something in code, clojure, calva or parinfer? Tabs are working to my desire in other files, like python, coffeescript and others.
You can unbind the tab key, which Calva uses as the shortcut for formatting code the Clojure way.
I have no clue where to do that.
In VS Code’s keyboard shortcut bindings. There’s a command for opening them in a an editor view: Preferences: Open Keyboard Shortcuts
Dear Calva friends, here’s a dev version of Calva that can connect to the #C03U8L2NXNC nREPL server, which was just released. In the process I fixed some other issues with how Calva evaluates things and navigates namespaces. So it would be great if you tested that this Calva works with your projects. It should, but I could have missed something in my testing, of course.
• https://output.circle-artifacts.com/output/job/800fdb10-a096-4c9e-8382-2463d58d86d5/artifacts/0/tmp/artifacts/calva-2.0.395-2343-squint-nrepl-c3b96003.vsix, download and from the VS Code Extensions panel, select Install from VSIX… from the top meatballs menu. (Make sure it was downloaded with the .vsix
file extension. If not change .zip
to .vsix
.)
Thanks in advance for any help testing! 🙏 ❤️