Fork me on GitHub
#calva
<
2023-06-19
>
leifericf07:06:49

Does there exist a command to "Restart the Project REPL" while is currently running? Or maybe "Flush the Project REPL." As a newbie, I keep messing up my environment due to not having a good workflow and best practices, so I must run "Stop/Kill the Project REPL" followed by "Start a Project REPL." It's not a big deal, but having one command for that would be convenient.

pez07:06:57

In what ways are you messing up the environment? I think it sounds like a good thing that you do it. Should mean you are experimenting with the dynamism and figuring out the boundaries. Still, there are REPL experts here, that might be able to help you find ways to recover the REPL state without restart.

👍 2
pez07:06:04

Jacking in again will first stop the running REPL, so there’s your restart command. The statusbar REPL button changes the name of the jack-in option to reflect this.

💡 2
leifericf08:06:22

Yes, I keep evaluating expressions, and over time, my REPL becomes "polluted" with references to old versions of functions, etc. And I forget to change all usages, so the code keeps working for a long time because the REPL keeps running for days even when I close my laptop, which is awesome! Then, when my REPL crashes and I try to continue, my code no longer works because I was using old stuff hanging around in the REPL. The problem is my workflow and lack of experience working with the REPL, not Clojure or Calva. I need to learn how to use this powerful tool more effectively. 😅

leifericf09:06:50

Ahaaa! I didn't know I could click the REPL status thingy to get this popup. Nice!

leifericf09:06:24

I also didn't know I could interrupt running evaluations. Nice! I've just been waiting patiently when evaluating a heavy expression by mistake 😂

pez09:06:42

Haha. Yeah, we could promote that REPL button a bit. It does help you discover some important features.

phill11:06:31

"Interrupt running functions"?! Hot dog! That's super! Thanks for the screenshot @U01PE7630AC

🌭 7
pez20:06:00

@orestis I just noticed that over a year ago you provided great feedback on the Calva Notebooks feature over at ClojureVerse. https://clojureverse.org/t/visual-tools-meeting-16-calva-notebooks-portal-summary-recording/9581/3?u=pez Don’t know how I missed it, and now I can’t comment there since there is a strange setting closing the comments after some time. So pasting here. CC @domagala.lukas .

pez20:06:17

The thing about the contents of Rich Comments getting evaluated was highlighted recently here, and also fixed. So there’s that. 😃

orestis07:06:10

Thanks @U0ETXRFEW - I kind of got busy with work so I stopped paying attention 🙂