calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
pez 2021-01-11T07:39:20.251700Z

The fewest step you can achieve is by defining a custom connect sequence, then it becomes ctrl+alt+c ctrl+alt+j enter.

pez 2021-01-11T07:42:39.252700Z

A minimum config looks something like so:

"calva.replConnectSequences": [
    {
        "name": "my-app",
        "projectType": "Leiningen",
        "cljsType": "none",
        "menuSelections": {
            "leinAlias": null,
            "leinProfiles": ["test", "dev"]
        }
    }
]
Depending on what profiles you have and such.

bastilla 2021-01-11T12:45:34.253600Z

Stupid question here: How can I stop a nREPL? (and/or disconnect?)

pez 2021-01-11T13:04:15.254Z

Have you started it using Calva, @bastilla?

bastilla 2021-01-11T13:06:43.256Z

I did. And when I right-click the option to stop is disabled. Thing is, I obviously programmed an endless loop. So I have constant output and cannot stop it. So I closed Calva altogether. But I guess there must be a better solution.

ryan echternacht 2021-01-11T13:09:11.256300Z

^ That was the best solution I found. Or to kill the underlying render proceses

ryan echternacht 2021-01-11T13:10:01.257700Z

I think pez said if your loop is printing, then it’ll build up so much in the buffer that interrupting doesn’t do much

bastilla 2021-01-11T13:10:57.258700Z

🙂 Thanks. Ok, so I better care for that endless loop to get things going again. Merci.

Stefan 2021-01-11T13:24:06.259100Z

Hehe that’ll teach ya’ 😜

pez 2021-01-11T15:55:47.262100Z

So, if you start the REPL using Jack-in, the preferred way to kill it is to hit ctrl+c in the jack-in terminal. Also re-running jack-in will work. But as @ryan072 says, if there is a lot of stuff buffered for the output window, a reload of the vscode window will be necessary. The vscode command Developer: Reload Window should work for that.

ryan echternacht 2021-01-11T16:04:50.262600Z

Thanks @pez. I didn't realize there was a command for that.

ryan echternacht 2021-01-11T16:05:54.263400Z

@bastilla fwiw, for advent of code, I would put short sleeps in my code so that I could watch it run and kill it when I had seen enough steps. Depending on your use case, that may or may not help

bastilla 2021-01-12T08:41:48.281500Z

@ryan072

bastilla 2021-01-12T08:49:00.281700Z

@ryan072 Sounds very professional. Alas I do not have that level of experience to realize your technique. In fact, I still struggle with the whole REPL approach, which isn't a productive tool to me yet. (Often times it simply doesn't work/connect.) I dearly miss debugging (debugger) in Clojureworld. Sad to say after 2 years of Clojure I still depend on: let [... log (str "my-var-to-check: " my-var-to-check ...] Pathetic. But the barriers to Clojureworld (to me) are not the language. It's the ecosystem. In fact, I have no problems traversing tree structures via stack algorithm and loop/recur. No problem to my brain. But the whole tooling in Clojure is still a mystery to me.

ryan echternacht 2021-01-12T13:20:04.284200Z

That was my experience too. And then at some point, something changed and everything became easier. I do think calva getting more stable was a part of that. So best of luck!

ryan echternacht 2021-01-12T13:20:45.285600Z

Also Sean corfield is giving a talk today on repl driven development. So that may be worth watching (I’ll be watching)

bastilla 2021-01-12T17:25:34.287400Z

@ryan072 Excellent! where could I catch that? (as a side note, the Clojure community is just aweseome!)

ryan echternacht 2021-01-12T17:27:39.287900Z

it's in an hour. and sean said the vod will be posted somewhere

bastilla 2021-01-12T17:48:32.288300Z

ah. I just signed up to meetup, then was given the link. Alas I don't do zoom. (Simply no camera nor microphone on my linux laptop here.) If there will be a VOD afterwards I better take that option. (Otherwise I pose an irritation to the rest of you guys. A thousand thanks for the link+opportunity!)

ryan echternacht 2021-01-11T16:08:32.263700Z

it has the advantage of not blowing out the calva buffer with mass text tho

2021-01-11T17:30:31.268500Z

Hello Calva users and maintainers! As you may be aware, I'm currently engaged in a project called Startup in a Month, which is a project I'm embarking on for all of 2021 to make 12 startup in 12 months, all with Clojure and ClojureScript. I'm practically brand new to the language, but I'm banking on the quick learning curve and all the benefits of the language to give me a big productivity boost. You can learn more about it here: https://startupinamonth.net Anyway, being new to the language, I'm also new to the tools and REPL. I'm a first-time Calva user, and the maintainers of the library (looking at you @pez) may be interested to watch me make my first steps with it. These two stream recordings in particular have a lot of footage of me hitting my head in the dark as I try to figure things out 😅https://www.twitch.tv/videos/864853522https://www.twitch.tv/videos/865807336 Hope you find this useful for user-testing research! And hope to see you in the stream 🙂

❤️ 2
pez 2021-01-11T17:33:50.270900Z

Thanks! ❤️ Haven’t checked it out yet, but generally this is stuff that is hard to get at for finding out where the Ux problems are. Will definitely look at these!

alexmiller 2021-01-11T21:27:22.271900Z

hey just wanted to say I looked at Calva today for the first time in a long time and wanted to say kudos - super easy to install and get started

7
❤️ 9
pez 2021-01-11T21:39:17.279700Z

Oh, thanks, @alexmiller! It is super great to hear this from someone who really knows what makes a good Clojure dev environment. Yesterday I watched you demo Clojure to a bunch of Java devs and you mentioned Calva in the passing, also revealing that you hadn’t tried it. So I was about to reach out asking that you give it a spin so that we can get your input. Quite amazing that you beat me to it. 😃

alexmiller 2021-01-11T21:43:36.280600Z

I was connected to a repl in <10 minutes, so that was pretty easy

🤘 3
pez 2021-01-12T17:14:03.287100Z

I hope you don’t mind: https://calva.io ❤️

alexmiller 2021-01-12T17:45:36.288100Z

I'd prefer not to have that on the page if you don't mind :)

pez 2021-01-12T17:48:32.288500Z

Oh noes! But I’ll remove it then, of course.

pez 2021-01-12T17:50:39.288700Z

Done!

alexmiller 2021-01-12T17:59:22.288900Z

thx

bringe 2021-01-11T21:58:16.281200Z

As Peter said, thanks! It always feels good to hear the effort put into something is really paying off.