This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-23
Channels
- # aws (38)
- # babashka (3)
- # beginners (27)
- # calva (47)
- # clj-otel (14)
- # clojure (90)
- # clojure-brasil (9)
- # clojure-europe (36)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-uk (6)
- # clojurescript (9)
- # docker (1)
- # emacs (8)
- # fulcro (14)
- # funcool (2)
- # graalvm (6)
- # graphql (5)
- # gratitude (1)
- # holy-lambda (11)
- # honeysql (12)
- # lingy (2)
- # malli (4)
- # missionary (3)
- # off-topic (2)
- # overtone (3)
- # pathom (2)
- # pedestal (20)
- # polylith (2)
- # re-frame (2)
- # remote-jobs (1)
- # shadow-cljs (76)
- # testify (4)
Did having project specific calva.replConnectSequences
in the .code-workspace
stop working? I moved them to user settings.json
and they work again.
I don’t think it has been changed anything around that in Calva. If you remember when it last worked you can try both with using a Calva from that time, and with using a VS Code version from that time.
For reference, current:
Calva version used: v2.0.446
clojure-lsp version used: 2024.04.22-11.50.26
clj-kondo version used: 2024.03.13
It’s a quite confusing Ux. Though I do not know if it is possible to unconfuse it. The feature is very nice!
I opened from shell and usually it just works with code-insiders .
but this time it didn't so I tried code-insiders .code-workspace
and that solved it.
You can use some styling of the titlebar and things to easily see when you’re in the workspace. This is what we use in the Calva project:
"workbench.colorCustomizations": {
"sash.hoverBorder": "#90B4FE",
"titleBar.activeBackground": "#DB9550",
"titleBar.activeForeground": "#131722",
"titleBar.inactiveBackground": "#db9550d5",
"titleBar.inactiveForeground": "#13172299"
},
note, for those color customization's to work you also need this setting:
_"window.titleBarStyle":_ "custom"_,_
The divider between panes that you drag to shrink one and grow another. If you paste that setting as it is, you will quickly see what it is. 😃
I have encountered the following behaviour in VSC when using Calva with babashka. Open a project A in the VSC workspace, eg a Python one. Add a babashka project to the same workspace. .clj-kondo or calva folders are created in the root of the first project A, git suggests adding it to the repo of project A. But I don’t want anything in project A, not even to change gitignore.
I’m not sure what can be done about it. Please file an issue and maybe we can figure something out. You can add those to your global gitignore and at least you will not commit the directories to the repo. Though if you have local config that doesn’t work.
Also, if other things permit it, it may work placing the babashka project folder as the first folder in the workspace.

@pez do you think it's possible to perform this action (see screenshot and snippet below) when Calva Output and Calva Jack-In are both opened as terminal? I do this by hand now. You can set a keyboard shortcut for it.
@command:workbench.action.terminal.join +when:terminalHasBeenCreated || terminalProcessSupported
Maybe it can be done with https://blog.agical.se/en/posts/vs-code-runcommands-for-multi-commands-keyboard-shortcuts/. Stringing together jack-in and this command.
Do you know what action is needed to press enter in a popup? For instance I trigger an action that creates this input screen at the top but I want it to just auto select and start
What action is it? Maybe it takes an argument and when given one will not pop up anything.
I spent the morning trying everything I could find, my keybindings.json is a mess. Even tried doing it in Joyride without succes. I gave up lol.
The command is workbench.action.terminal.join
I ended up doing this btw:
{
"key": "shift+ctrl+alt+n",
"when": "terminalHasBeenCreated || terminalProcessSupported",
"command": "runCommands",
"args": {
"commands": [
"workbench.action.terminal.focusNext",
"workbench.action.terminal.join",
]
}
}
is there a way in Calva to not remove the last parens in rich comment forms when formatting the file? calva.fmt.keepCommentTrailParenOnOwnLine keeps it on its own line while you’re editing the comment block
if I add :remove-surrounding-whitespace? false to .cljfmt.edn it works but it’s less than ideal for the rest of the formatting
I think I heard that James Reeves is open for adding this kind of formatting to cljfmt. See if you can find an issue in that repo. I place a :rcf
keyword inside the closing paren.
I just add a ';' on a line before the closing parens, that keeps formatting stable.
Why would it remove a closing paren? Do you mean it shifts it to the end of the comment block?
That looks pretty weird, @U02CX2V8PJN 😃