This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-18
Channels
- # aws (3)
- # beginners (18)
- # boot (3)
- # cider (47)
- # clara (54)
- # cljs-dev (62)
- # clojure (104)
- # clojure-berlin (1)
- # clojure-denver (1)
- # clojure-italy (1)
- # clojure-nl (22)
- # clojure-russia (30)
- # clojure-spec (28)
- # clojure-uk (95)
- # clojurescript (31)
- # cloverage (1)
- # cursive (1)
- # datomic (17)
- # duct (4)
- # emacs (27)
- # fulcro (36)
- # graphql (1)
- # hoplon (1)
- # jobs-discuss (1)
- # lein-figwheel (1)
- # lumo (2)
- # off-topic (44)
- # om-next (5)
- # onyx (29)
- # precept (1)
- # re-frame (8)
- # reagent (7)
- # ring (1)
- # ring-swagger (2)
- # schema (4)
- # shadow-cljs (185)
- # spacemacs (21)
- # specter (59)
- # tools-deps (7)
- # vim (15)
- # yada (1)
@dennisa Which folder do you start CIDER in? You say you’re working with Boot, but you’ve posted an error for lein
not being present.
@cmack cider-jack-in fails with error above, about the lein not found. @bozhidar it runs on the folder with build.boot . It appears that Boot is not configured at all in emacs...
Hey! How to set clojure-mode variable once? I’m appending item to list, so I don’t want to append on every hook
> @cmack cider-jack-in fails with error above, about the lein not found. @bozhidar it runs on the folder with build.boot . It appears that Boot is not configured at all in emacs...
There’s nothing to configure really - CIDER detects the project type and runs the appropriate command to start an nREPL server. If multiple project files are detected you should get asked about the project type to use. That’s why I’m really puzzled by your problem.
You can see the troubleshooting section of the manual and debug cider-jack-in
. Then you’ll easily see what goes wrong with the project type detection.
> Hey! How to set clojure-mode variable once? I’m appending item to list, so I don’t want to append on every hook
@troglotit Can you give us an idea about what you’re trying to do?
something like this (add-to-list 'clojure-align-binding-forms "r/with-let")
but only once and when variable is ready
@bozhidar Perhaps I need to specify the project i'm working in somehow? Or designate it to open the right build.boot? In Atom I have to open the project folder and repls starts using build.boot. How will emacs know about any build tool when I work on the .clj file deep in the scr hierarchy?
> How will emacs know about any build tool when I work on the .clj file deep in the scr hierarchy?
It will find the project root automatically by going up the directory tree from the file you’ve opened.
@troglotit You’re looking for eval-after-load
.
@dpsutton it doesn't work with project
😕 apparently the active filters are different and don't work in the default-filters var
from the docs: Error buffer stacktraces may be filtered by default. Valid filter types include java, clj, repl, tooling, and dup. Setting this to nil will show all stacktrace frames.
another doubt I have for a while now and never figured out how to fix it: how do I make cider understand reader macros from libraries? it's a pain every time I want to format an edn buffer that has a reader macro we use here
That documentation is probably out of date. But project is different because it's a "positive" filter
I know I can probably add a hook to the stacktrace-mode and call the same fn that p
does, but I was looking for a cleaner alternative 😞
If you file an issue I can work on it. Might be tricky to work out an intuitive interaction
now on the right repo: https://github.com/clojure-emacs/cider/issues/2294