Fork me on GitHub
#calva
<
2023-02-05
>
noob.clj03:02:02

How do I interrupt calva repl if I accidentally say added a print and it is going like a million times 😞. I pressed Ctrl C in the terminal and I got Jack-in process exited. Status: null but it is still going on.

noob.clj03:02:28

Damn, I killed VSCode and now when opening getting

noob.clj03:02:09

Ummm…. I cannot open VSCode now 💀.

noob.clj03:02:06

Okay it opened 😛 after several retries.

Ben Lieberman03:02:14

Theres an interrupt evaluation command I forget the shortcut for but if you search for it in the command palette you'll find it

Ben Lieberman03:02:24

ctrl+alt+c ctrl+alt+d

noob.clj03:02:13

ahhh got it 🙂 thanks.

2
skylize03:02:04

The Command Pallete usually still works (at least initially) when the repl goes loopy. So a search for "interrupt" should find it. But definitely worth memorizing the shortcut. For whatever reason, the repl seems to often need convincing that you really do want to stop everything. I generally just spam the shortcut until I see a nice stable prompt. If you normally hide the repl window, it's probably worth opening it while working on recursive code, just so you can watch that when you inevitably blow things up.

👍 2
pez08:02:26

Depending on how fast you print, interrupting the repl might have no effect. Since when you killed the repl, printing didn't stop, I don't think you would have fared better with the interrupt once enough prints had been buffered. This is something we need to fix.

🙌 2
phill17:02:19

Sometimes it seems Calva's output window gets slow when it is too full, and speeds up again if I hop into a terminal and do "truncate -s 0 .calva/..." where the output file lives. But, to get to the heart of the matter, AFAIK Java does not really offer a reliable, leak-proof way to "stop" something except by terminating the Java process.

Ben Lieberman17:02:32

That's an interesting way to clean up the file that I did not know about. I usually just select all and delete lol. Goes to show what I know.

skylize17:02:26

> I usually just select all and delete lol. > Same

pez17:02:46

>> I usually just select all and delete lol. > Same Same 😃

😄 2
❤️ 2
lspector19:02:06

Two questions regarding the absolutely fabulous browser version of Clava (https://calva.io/get-started-with-clojure/): 1. Might it be possible to post a version that comes up empty, without the "getting started" content? The screen is quite full and busy even without that content, especially for people new to VSCode, and it'd be great to be able to get directly to a blank project/file/REPL into which one can type and evaluate code. 2. hello_repl.clj doesn't seem to appear in the Explorer... which I think means there's something I fundamentally don't understand about what that is... but maybe I should just ignore that if we can type and evaluate expressions in the buffer anyway? 🙂

pez19:02:49

1. Yes. That's what I meant with my suggestion in that other thread. Let's make a simpler project. 2. Sounds like a bug. Can you describe it a bit further? I don't quite understand what's the gap between what you expect to happen and what happens. 😃

lspector19:02:52

It looks like I'm editing a file called hello_repl.clj, but I don't see anything like this (or even an src directory) in the explorer pane on the left. That's as expected?

pez20:02:23

Yeah, that's as expected with the Getting Started REPL. Those files open in a TEMP directory. We really should build something simpler, tailored for your students.