This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-12
Channels
- # bangalore-clj (1)
- # beginners (28)
- # boot (33)
- # chestnut (3)
- # cider (35)
- # cljs-dev (64)
- # cljsrn (16)
- # clojure (95)
- # clojure-android (6)
- # clojure-austin (1)
- # clojure-italy (5)
- # clojure-korea (1)
- # clojure-russia (55)
- # clojure-sg (1)
- # clojure-spec (25)
- # clojure-uk (57)
- # clojurescript (120)
- # code-reviews (7)
- # community-development (2)
- # core-async (3)
- # cursive (6)
- # data-science (3)
- # datascript (10)
- # datomic (12)
- # devcards (1)
- # emacs (9)
- # gsoc (7)
- # hoplon (18)
- # lumo (2)
- # off-topic (10)
- # om (24)
- # onyx (17)
- # pedestal (46)
- # powderkeg (1)
- # protorepl (7)
- # re-frame (31)
- # ring-swagger (34)
- # spacemacs (10)
- # specter (9)
- # sql (39)
- # unrepl (9)
- # untangled (3)
- # utah-clojurians (1)
I keep seeing references to the cider and cljfmt compatibility, but I can’t find a feature in cider or anything related to it. Does anyone have a link or a command or something similar?
Reposting here from #cljsrn in case I have better luck: Trying to get more familiar with REPL in general, but trying to figure out how to get completion to work with Cider when writing my RN app, any tips?
@benny if you have company
installed there should not be any problem
Please keep in mind that ClojureScript completion is a bit more basic I think so your mileage may vary
not sure how in the world I missed that, thanks for pointing it out @richiardiandrea
Ah ah yeah that can be the issue 😀
@escherize There are a few cider-format
commands that would use cljfmt
to reformat the code. Unfortunately the resulting formatting might be different from what clojure-mode
would produce, I've been wondering for a while whether this feature is useful or pointless and we should remove it.
I'm new to CIDER and Emacs and I'm struggling to find a way to move a file in CIDER/Emacs from one directory to another. How are files moved between directories?
But both are configurable, so bending one to work like the other or bending both to work the same should be possible. I’ll have a look.
@bozhidar for example schema’s defn function has a docstring argument just like clojure’s defn function, except that it gets the string face instead of the comment face applied
why would it get a comment face if it's a docstring argument, which I'm assuming means its a string
sorry, I wasn’t totally accurate: clojure.core/defn
has a docstring argument and it gets the font-lock-doc-face
and schema.core/defn
has a docstring argument that has a font-lock-string-face
doc face helps distinguish a docstring from a string the function cares about, IMO. it also helps visually parse whether you’ve accidentally put the docstring after the argument vector, which I see a lot
https://github.com/clojure-emacs/clojure-mode/commit/5d2f48b1676b82d8775405a68de50b8f75ffa758
I usually C-c C-k (cider-load-buffer) to evaluate a buffer's forms so that I can use them; my file became unwieldy so I put some functions in another file I :require; how do I 'load' the forms in the :required file so I can use them?
there may be something deeply wrong with my approach in general, as per usual.
they should be there loaded for you. Traditionally, in your ns form you have a (:require [my.deps :as alias]))
and then in the file you can use those exposed functions and vars by (alias/function-name ...)
it doesn't ;-(
but I'm trying to duplicate it with a simpler :require'd file to try to isolate the issue.
I'll create a fresh project and see if I can reproduce this there. As I do that, though, I should mention that I'm :require'ing in file A to file B, calling functions from A in B, and evaluating them in B right in the buffer with C-c C-c (cider-eval-defun-at-point)... that should work, right?
it crossed my mind that cider-eval-defun-at-point might not work on functions that have been brought in or something.
ok, works fine in the new project I made. so something went wrong in my current project; I'll just create a project from scratch and bring code over. thanks for the help on this!