Fork me on GitHub
#cider
<
2022-04-19
>
nonrecursive01:04:05

this is cider-adjacent, but i’m trying to get projectile-toggle-between-implementation-and-test to work with a deps.edn project. I get the message No matching test file found for project type 'clojure-cli' when trying to toggle to a test file that hasn’t been created. I have (setq projectile-create-missing-test-files t) in my config. Does anyone know how to fix this?

nonrecursive01:04:29

if I create the file then it toggles fine

bozhidar05:04:00

@nonrecursive Yeah it was a recent regression that I had forgotten about. Clearly the past two months weren't very productive for me. The fix is merged now. Thanks for reminding me about it!

cider 2
David Pham14:04:48

@bozhidar Thanks a lot for everything you do, and also on Twitter, you are a great inspiration, especially with what is happening in the last two months at your borders 🙂

❤️ 4
gratitude 2
1
1
1
wilkerlucio19:04:38

hello, I'm just starting with Cider, most of things going great! one thing that I'm missing from Cursive is that in Cursive, when I ask to eval to top level form from inside a (comment ...) it understands I don't want the comment, but the form below it, is there a way to have to eval in Cider using this kind of constraint?

wilkerlucio19:04:12

on Google I found something about cider-eval-toplevel-inside-comment-form (at https://github.com/clojure-emacs/cider/issues/2375), but I can't find this command

dpsutton19:04:59

(setq clojure-toplevel-inside-comment-form t)

1
dpsutton19:04:29

should do the trick for you

dpsutton19:04:51

also, here’s a lovely function to make a comment block for you

(defun personal/insert-comment ()
  (interactive)
  (end-of-defun)
  (insert "\n")
  (insert "(comment\n  )\n")
  (clojure-backward-logical-sexp)
  (forward-char 1)
  (clojure-forward-logical-sexp)
  (insert "\n")
  (indent-according-to-mode))

wilkerlucio19:04:32

awesome! the setq did the trick 😄

wilkerlucio19:04:02

what that function does? I'm new on emacs but I think I used to use a snippet for something similar of what this function is doing

dpsutton19:04:56

so imagine you are working inside the body of a function. I hit C-M-i and that makes a new comment form under the function i was working in so i can start typing a comment block

wilkerlucio19:04:17

gonna try, thanks!