calva

kiemdoder 2025-04-25T06:06:08.625389Z

Is debugging supported for Babashka?

borkdude 2025-04-29T12:33:15.086109Z

Another way is to run your script in the JVM, use the debug tools you're used to and then return to the glorious wonder world of bb Use bb print-deps to print a deps.edn you can use for development in a JVM

πŸ™ 1
pez 2025-04-25T08:56:24.072839Z

No. This needs support in the #babashka nrepl to provide. But inline def debugging of course works. Very often that is as good as, even better than, the debugger. (And sometimes it is not as good.)

kiemdoder 2025-04-25T09:05:09.748699Z

ok, thanks for clarifying

πŸ™ 1
dabrazhe 2025-04-25T11:15:34.968359Z

Can I move the calva repl window in VSC to the window bottom, where my terminal is, into another tab?

pez 2025-04-25T11:18:58.480239Z

The repl window is a regular file/editor and can only go where editors can go. So, no. Until the VS Code team fixes it, it can’t be moved into the bottom panel. Are you using it as a prompt or for output?

dabrazhe 2025-04-25T11:21:22.604889Z

Mainly for output. Is there another way to print the output at the terminal etc?

dabrazhe 2025-04-25T11:21:40.092919Z

i.e. the bottom of the window

pez 2025-04-25T11:25:02.701399Z

Yes, search for calva output destination in Settings. I recommend setting them all to "terminal".

dabrazhe 2025-04-25T11:28:39.972619Z

I guess I have have both, repl and terminal?

pez 2025-04-25T11:29:17.347419Z

I’m not following.

dabrazhe 2025-04-25T11:29:59.104319Z

like this? "evalResults": ["terminal", "repl-window"],

pez 2025-04-25T11:30:16.818069Z

Nope.

dabrazhe 2025-04-25T11:32:02.246819Z

Perplexity AI suggested this option : ))

"calva.outputDestinations": {
  "evaluationResults": ["repl-window"],
  "evaluationOutput": ["calva-says-output-channel", "calva-output-terminal"],
  "otherOutput": ["calva-output-terminal"]
}

pez 2025-04-25T11:38:13.493829Z

It’s a pretty neat idea! I often use their hallucinations to get ideas for how to design API and settings. Unfortunately the output destination configurability was made without AI assistance. πŸ˜ƒ Anyway, I have them all set to terminal and Calva is configured to not open the REPL Window automatically. It’s a bliss.

πŸ’‘ 1
πŸ˜… 1
1
dabrazhe 2025-04-25T11:42:32.853109Z

yes, the only difference is the colour scheme of the terminal output

dabrazhe 2025-04-25T11:43:05.358659Z

syntax highlight for end structures etc

pez 2025-04-25T11:44:19.579459Z

There are a few more differences πŸ˜ƒ but yeah, ANSI coloring in the terminal.

βœ”οΈ 1
chromalchemy 2025-04-25T16:56:08.034569Z

I use the terminal output, but have that terminal automatically moved into a window/tab on jack-in. (so, the opposite πŸ™ƒ

pez 2025-04-25T18:51:40.339519Z

The terminals behave a lot like all views should behave. You can place them where you want. It is totally beyond me why they have made the UI so that there are like five different kinds of views with random placement policies.