Fork me on GitHub
#beginners
<
2021-04-17
>
Kenneth Gitere04:04:42

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?

ericdallo14:04:30

Set lsp-enable-formatting to nil

👍 4
seancorfield05:04:45

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

👍 3
Joe11:04:50

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!

Joe12:04:25

Ooh, that seems likely, thanks!

tschady22:04:07

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

Joe14:04:15

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

Carlo22:04:46

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?

Carlo22:04:21

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

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