Fork me on GitHub
#cider
<
2023-09-19
>
Ruben Sevaldson14:09:47

Hello 🙂 newbie question incoming: after calling cider-debug-defun-at-point, is there a way to remove the generated breakpoint?

dpsutton14:09:09

just reevaluate the function

dpsutton14:09:09

debug-defun-at-point is basically throwing a bunch of code inside your regular function to step through it. so to remove that code you just redefine whatever your function is back to your regular version

Ruben Sevaldson14:09:43

Many thanks 🙂

nivekuil18:09:31

I believe enrich-classpath drops :local/root deps from the classpath, a similar bug to the missing git deps which was fixed a few weeks ago https://github.com/clojure-emacs/enrich-classpath/pull/41/commits/3d5ba3edb2c126ee060dece2de8c7d04380ede66

1
vemv18:09:31

What enrich version are you using?

nivekuil18:09:11

should be the one injected by CIDER 1.8.0-snapshot (package: <tel:202309171951|20230917.1951>)

nivekuil18:09:40

no enrich in the deps.edn

vemv18:09:24

To make sure, please check clojure.sh within ~/.emacs.d/elpa/cider*/clojure.sh. It should be 1.17.0 There's specific test coverage for :local/root and I also test this out from time to time. Do you have a project you could share? Or a redacted deps.edn maybe?

nivekuil18:09:42

output=$(2>&1 "$clojure" -Sforce -Srepro -J-XX:-OmitStackTraceInFastThrow -J-Dclojure.main.report=stderr -Sdeps '{:deps {mx.cider/tools.deps.enrich-classpath {:mvn/version "1.17.0"}}}' -M -m cider.enrich-classpath.clojure "$clojure" "$here" "true" "$@") looks like 1.17. ill make a repro if you think it should work

nivekuil18:09:50

I should note, this was with :local/root outside the project dir, i.e. starting with ../

vemv18:09:21

I'll add test coverage for that today and will let you know if there was a bug there. If not I might need more info In the meantime you can set (cider-enrich-classpath . nil) in the .dir-locals for the affected project

nivekuil18:09:53

updated the same repro repo as last time, git clone --recurse-submodules [email protected]:nivekuil/scv.git

vemv18:09:08

Thank you. Investigating this as we speak!

vemv19:09:59

Fix on its way. Great job pointing to a relevant commit 🙌

nivekuil19:09:52

yeah, that keep looked a little suspicious 🙂

🔍 1
vemv19:09:47

It's here :) https://clojars.org/mx.cider/enrich-classpath/versions/1.17.1 It's on CIDER master now. If you use MELPA, you'll have to wait up to 3 hours until the new package is visible. You can always edit the mentioned clojure.sh script by hand