This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-02
Channels
- # announcements (14)
- # beginners (133)
- # cider (27)
- # cljs-dev (7)
- # cljsjs (13)
- # clojure (105)
- # clojure-dev (58)
- # clojure-italy (1)
- # clojure-nl (17)
- # clojure-russia (33)
- # clojure-spec (5)
- # clojure-uk (154)
- # clojured (1)
- # clojurescript (35)
- # cloverage (4)
- # cursive (35)
- # datomic (58)
- # duct (8)
- # editors (9)
- # emacs (15)
- # events (1)
- # figwheel (47)
- # figwheel-main (132)
- # hyperfiddle (5)
- # immutant (29)
- # instaparse (21)
- # luminus (3)
- # off-topic (5)
- # onyx (5)
- # overtone (5)
- # pedestal (8)
- # re-frame (7)
- # reagent (6)
- # reitit (3)
- # schema (2)
- # shadow-cljs (178)
- # spacemacs (49)
- # specter (2)
- # sql (1)
- # tools-deps (110)
Hi, I'm new to spacemacs and cider. Have a week or so of free time so wanted to give it a go.
I'm specifically looking for correct set up instructions for testing. Is there any resource which properly documents how to structure tests folder, run all tests, auto load tests, etc?
Right now, if I do SPC m t n
from my source file, I get this error: No test namespace: prm.model.core-test
. I can't get it to work. Attaching screenshot of my structure.
so the problem is SPC m t n
uses
https://github.com/clojure-emacs/cider/blob/master/cider-test.el#L602
to infer the test ns, which defaults to the same ns
but with the -test
added to the end of the ns.
Looks like you can define a custom function but I’m not sure how you’d do it
I frequently do SPC /
to do a fuzzy search for text across the project. Sometimes it would be really useful for the output to be sorted. Anyone have any hints on how I might accomplish that? I tried
(defun helm-project-search-sorted (&optional default-inputp)
(interactive)
(sort
(spacemacs/helm-project-smart-do-search)
'<))
But the results end up not being sorted -- or to be more specific, sections of the results appear to be sorted, but the whole is not. I'm guessing this is because ripgrep
is farming out the search to multiple threads, and my fn isn't smart enough to put those together properly before sorting.
Any tips would be appreciated! My emacs lisp skills aren't very strong.if you do SPC h d v
and search for max-mini-window-height
, you should be able to set the value
actually this might be what you want then: https://emacs.stackexchange.com/questions/26311/how-to-increase-height-of-minibuffer-mini-window-in-spacemacs
Like when I hit SPC
I want a good sized window to pop up. Not a window that can grow to my max height, if that makes sense
Im inside a buffer and I can't get to the regular mini buffer that would allow me to do SPC b d
when you don't have evil enabled you can also press whatever key is set in dotspacemacs-emacs-leader-key
you can set which-key-side-window-max-height, the max amount is 1, I don't know if that's enough
Sorry its just that switching over to spacemacs feels like learning how to walk all over again
Magit is huge.. It will take you some time to master it. I've been thinking about recording a video on sorta "advanced" tricks, but swamped with much stuff at work
Ah I didn't mean it like that. Just meant that getting rid of changes was pretty straight forward from that point on
I started a REPL in Cursive which provides me with a host ip and a port number. CIDER allows me to connect to it. So far so good. In the Cursive side I loaded up a file and switched to its namespace. But in CIDER when I call those functions that were loaded in (via cursive) it yells and says "no such function".
I’ve never even considered running a REPL in one editor and connecting to that REPL in another editor. You could try looking up if nrepl broadcasts all changes to all connections to a REPL. I am curious to know what benefit you get from running two editors attactched to one REPL. Are you just comparing the different experiences.
Very good question. The reason I did that earlier was because I was having issues starting up CIDER from spacemacs. And I just wanted to get a REPL up and running. So I figured as a workaround for the moment I could start a REPL session via Cursive and then connect to it from spacemacs.