Dear Calva-friends. It has finally happened.
I’ve been using Calva w/ Antigravity (it’s VSCode, … everything is VSCode these days). I keep running into weirdness and decisions I don’t understand.
Today:
• why can’t I interrupt repl evaluation? I use the interrupt running evaluations command, but my repl keeps on chugging along
• why is “jump to definition” F12 ?!? I know I can change it, but I’d like to stick to defaults when practical. Seems like all the “jump to X” commands have recruited F12. Is this some legacy windows BS? 🙂
• Is there a way to make the repl output window stop scrolling when I’ve scrolled back? If a firehose of results are spewing out to the repl, I want to be able to scroll back and read some of it
•
Re: F12 -- apparently Visual Studio adopted that in the '90s and every editor and IDE followed suit because that is what devs had gotten used to. So, TL;DR: "because history" 🙂
Re: interrupt repl eval -- are you on JDK 21 or later? If so, you need the "attach self" JVM enabled -- I use an alias like this:
:allow-attach-self
{:jvm-opts ["-Djdk.attach.allowAttachSelf"]}
and then ensure that's passed into the jack-in command, or start the REPL myself that way.I don't know the answer to the 3rd bullet Q.
The answer to scroll stop of repl output is to configure something else as the output destination. I use the terminal.
Ah, yes, I've had that configured for so long I forget the behavior of the older output window:
"calva.outputDestinations": {
"evalResults": "terminal",
"evalOutput": "terminal",
"otherOutput": "terminal"
},thanks everyone!