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-07-04T10:04:25.360500Z

Dear Calva friends. http://calva.io/merch is just updated with a new design. It’s the Calva symbol at the front, and some silly Clojure code at the back, I named it “We do it with Rich Comments” 😀. Also some more availability of the existing designs. Please check it out! Amazon only lets me add a design or a market per day so it is slow populating with t-shirts. If there is some particular design you want to see in some particular Amazon store, please let me know and I’ll prioritise accordingly. While at it I’d like to highlight this from the Merch page: > To keep the admin of this shop to a minimum the merch is sold at production prize. There is no royalty going to anyone in the Calva team when you buy one of these t-shirts. You will represent, which is certainly a way to support the project. You are of course encouraged to support us via sponsoring as well: > > * https://github.com/sponsors/PEZ > * https://github.com/sponsors/bpringe

❤️ 3
slipset 2021-07-04T10:45:14.362100Z

It struck me. Wouldn’t it be good if the closing paren of a comment form was auto-formatted to its own line?

slipset 2021-07-04T10:45:44.362800Z

Actually got the idea from reading the source on the t-shirt.

pez 2021-07-04T10:53:44.364600Z

Yes, that makes sense. I find myself often fighting against the auto folding of that last paren. Please add as feature request! I have no idea how tricky it might be to implement, but I’ll give it a shot! 😃

seancorfield 2021-07-04T15:37:19.366800Z

I used to use ,) to keep the paren on its own line (in Atom, and then in VS Code with the old paredit extension), but when I switched to Calva, the , was treated as whitespace to the degree that TAB would put ,) back up on the previous line 😞 -- so now I use .) which stops Calva's paredit from moving it.

pez 2021-07-04T15:51:34.366900Z

Do you find yourself putting that . at the end for other forms than comment?

seancorfield 2021-07-04T15:52:04.367100Z

Just comment.

🙏 1
rickheere 2021-07-04T20:49:19.369600Z

If I jack in, pick shadow-cljs and start an node-repl where can I find the nodejs output? To see the actual javascript errors and that kind of stuff. I'm a very happy Calva user btw, thanks for all the good work.

❤️ 1
rickheere 2021-07-05T18:17:43.378Z

Alright I'm back again with some more information

rickheere 2021-07-05T18:25:39.378300Z

In the first picture I did what I described above, jack-in node-repl. When I trigger an error I see this node-repll-exit thing. I searched in other places. The output-calve-repl window looks like it should show those errors. This #object[Promise bla bla] this is some output from the repl I assume. https://rickheere.nl/2021-07-05-210451_1920x1080_scrot.png

rickheere 2021-07-05T18:28:53.378600Z

Also, and I think it fits within the same "problem" is that if I do a console.log directly from the code. I mean (.log js/console "Hello") and shift+ctrl+c,space I see it show up in the window. But if I have a console.log as part from the code, for example I want to log what request comes in on a ring handler it does not show up in the window.

rickheere 2021-07-05T18:32:10.378800Z

But then I take a different approach and I do a shadow-cljs watch app and then node build/main.js and then connect to the app repl I do get al kinds of output in the terminal of the repl: https://rickheere.nl/2021-07-05-211602_1920x1080_scrot.png

rickheere 2021-07-05T18:32:26.379100Z

What am I missing?

pez 2021-07-04T21:07:51.369800Z

Have you looked in the jack-in terminal output?