beginners

Getting started with Clojure/ClojureScript? Welcome! Also try: https://ask.clojure.org. Check out resources at https://gist.github.com/yogthos/be323be0361c589570a6da4ccc85f58f.
Kenneth Gitere 2021-04-17T04:58:42.188900Z

Hi. I have just added clojure-lsp so that Emacs can pick it up and now I can't write a single thing without the lsp formatting after every keystroke. Is there a way to disable this?

ericdallo 2021-04-17T14:19:30.191500Z

Set lsp-enable-formatting to nil

👍 1
seancorfield 2021-04-17T05:15:45.189700Z

@gitere81 You might want to join the #lsp channel if you're not in there already and see if they can help.

👍 1
Joe 2021-04-17T11:27:50.190300Z

Hi, I'm getting a stack overflow error in a recursive function (`search`) that I'm having trouble tracking down, and I'd appreciate any help. I'm using recur which I thought meant that it would be tail-call optimized, and there are no other recursive calls, so I don't where to start looking. The code is https://github.com/RedPenguin101/aoc2015/blob/main/src/aoc2015/day19.clj , and the problem (from Advent of Code 2015) is a pretty standard search, where I check if the first entry on a path matches a target, and if doesn't, generate the next states from that entry and repeat. Thanks!

Joe 2021-04-18T14:33:15.204200Z

So I am finding :( Thanks for the tip, I will have to have a think.

2021-04-17T12:00:38.190500Z

https://stuartsierra.com/2015/04/26/clojure-donts-concat Maybe hitting this?

Joe 2021-04-17T12:17:25.191200Z

Ooh, that seems likely, thanks!

tws 2021-04-17T22:08:07.194500Z

iirc, that advent problem has a trick to it, you might hit some difficulty with that approach and the given input data.

william 2021-04-17T22:19:46.195900Z

In the ghostwheel readme, it's mentioned to:

On Clojure – launch the REPL / build with the JVM system property -Dghostwheel.enabled=true
can I do that just by editing my deps.edn file, or do I have to change how emacs starts the repl?

william 2021-04-17T22:40:21.196200Z

ok, an global option in my deps.edn sufficed:

:jvm-opts ["-Dghostwheel.enabled=true"]