Fork me on GitHub
#conjure
<
2021-12-30
>
Aron12:12:15

I am fumbling a bit here. Trying to use this repo https://github.com/rafaeldelboni/nota and if I open scripts/nota/main.clj conjure just shows econnrefused. I am guessing something is getting confused by the babashka scripts in shadow-cljs project, but I don't know how to debug it https://imgur.com/a/avwrhfI

👀 1
rafaeldelboni12:12:54

Hey how you doing? Are you using the :ConjureShadowSelect main after creating a repl with npm run watch? And don't forget that you need the app running in a browser to be able to make the repl working. https://github.com/Olical/conjure/wiki/Quick-start:-ClojureScript-(shadow-cljs)

Aron14:12:03

it's a babashka script

Aron14:12:19

so I don't need a browser environment for it

rafaeldelboni14:12:32

Ah I thought you were trying to connect to the cljs, sorry.

rafaeldelboni14:12:02

Usually to work with babashka in this project, I just do bb nrepl and manually connect on the sessions created by babashka in conjure

rafaeldelboni14:12:34

I turn off the auto bb repl in conjure because I had many conflicts problems with it

Aron15:12:34

what kind of conflicts?

Aron15:12:07

bb nrepl is some kind of convention?

Aron15:12:39

setting port and bb --nrepl-server works with conjure

Aron15:12:25

echo "1667" > .nrepl-port
bb --nrepl-server
and then opening the script file connects. I wonder if shadow setup will work 😟

rafaeldelboni15:12:10

Exactly what I do, sorry I'm on a trip saying the commands by heart.

rafaeldelboni15:12:47

I do disconnect and connect to switch to shadow, don't know if there a better way to do this

Aron15:12:50

don't apologize please, you gave just enough for me to sort it out, thank you very much 🙂

rafaeldelboni15:12:28

Instead of creating the file, what I do is :ConjureConnect 1667 and for Shadow, I do disconnect and connect

Aron15:12:03

makes sense, I can just have it on a binding

Aron15:12:21

works nice, just bit of typing

Aron15:12:42

just tried it with both shadow and babashka and both could connect

Aron15:12:49

thanks again

rafaeldelboni15:12:04

Cool, I hope you have fun with nota, as I had haha

Aron15:12:23

it's a good entry level project for me 🙂 started by trying to learn a new bb script to list posts and pages, I guess there is a conventional way to do that with edn files, but I don't know