This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (1)
- # babashka (44)
- # beginners (188)
- # calva (37)
- # chlorine-clover (28)
- # cider (12)
- # clj-kondo (40)
- # clojars (1)
- # clojure (323)
- # clojure-austin (7)
- # clojure-europe (20)
- # clojure-italy (4)
- # clojure-nl (16)
- # clojure-spec (7)
- # clojure-uk (37)
- # clojuredesign-podcast (1)
- # clojurescript (30)
- # cryogen (2)
- # cursive (30)
- # data-science (1)
- # datomic (26)
- # emacs (1)
- # events (1)
- # figwheel-main (13)
- # fulcro (89)
- # garden (1)
- # graalvm (20)
- # graphql (8)
- # jobs (1)
- # jobs-discuss (1)
- # joker (6)
- # kaocha (125)
- # lambdaisland (1)
- # meander (42)
- # off-topic (18)
- # pathom (3)
- # pedestal (6)
- # shadow-cljs (55)
- # spacemacs (21)
- # sql (18)
- # tools-deps (8)
- # uncomplicate (2)
- # vim (1)
- # yada (3)
How can I get the source function in Spacemacs/Cider. The documentation says: "SPC m s u require Clojure utils into current namespace - i.e. functions doc source" But I get "SPC m s u is undefined".
Recently there were some keybinding updates. Perhaps guide is outdated? You are on develop branch?
I don't think so. I can fetch it. I wanted to try the linter anyway and it seems I need to have the dev branch for that.
I’m trying to get clojure to have “jump to definition” functionality, but cider-find-var doesn’t seem to work for me. I get this error:
I’m on the most recent version of the develop branch and all my packages should be fully up to date. I tried googling the error but didn’t find anything particularly helpful. Any idea what this means?
Wrong type argument: hash-table-p, nil
I think it might have something to do with using cider connect instead of jack-in?
@david.schmidt I always use one of the cider-jack-in commands and
, g g for cider-find-var seems to work okay. So long as the repl is running it seems to work fine. I havent tried
cider-connect for a long time. Are there any errors in the messages buffer,
SPC b m ?
I unfortunately have to cider-connect for my development environment to work. Here’s the error from the messages buffer:
When doing cider connect and getting this failure, cider-find-var also fails to default back to dumb jump. If I cider-jack-in to another project, definition jumping seems to work, but I’m not sure which handler it used.
nrepl-dict-from-hash: Wrong type argument: hash-table-p, nil
Does evaluating the function definitions you want to find make any difference, or just evaluating the whole source code buffer? I appreciate it does defeat the purpose of find var a little if you have to evaluate the function before finding it. If
cider-find-var still doesnt work with the functions evaluated, then is seems something is broken with cider-connect. Probably should raise an issue on https://github.com/clojure-emacs/cider
I've raised a new pull request to add two keybindings for browsing the clojure.spec specifications of a clojure project,
, h s to browse a specific spec and
, s S to browse all specs. The functions called have been present for a while but without keybindings. The new keybindings follow the same approach as browsing namespace keybindings.
(Note: no muscle memory was hurt in the making of this pull request)
, h s and
, h S for browsing clojure.spec specifications are now part of the Spacemacs
does any one know why the parinfer layer might not be working? https://github.com/syl20bnr/spacemacs/issues/13350
Looks like nothing has changed with par-infer layer for a year and a half https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Bmisc/parinfer/packages.el
The parinfer layer defines the
SPC t P keybinding, so when the layer is not included, then that keybinding does not exist.
I cannot see any obvious commits or PR's to Spacemacs that would have broken the parinfer layer. I would have assumed it would be some updates to Vim or Evil related packages that have broken something, or perhaps the parinfer package relies on something that has been depreciated or removed. The parinfer layer seems to do very little, except pull in the parinfer package and set it to indent mode, adding a keybinding and enabling a toggle action.
An alternative to parinfer is to use agressive indenting and align form https://practicalli.github.io/spacemacs/improving-code/formatting/ which doesnt need any additional layers
I use it on vim and find that it works better than the version of emacs. But I havent been able to install it on my spacemacs configuration
@pablore If you like parinfer, I recommend you try adjust-parens-mode + aggressive-indent-mode combo
Basically, it always formats everything automatically as you type, and you press TAB or C-TAB to indent/dedent which will also adjust parenthesis accordingly