by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 05 17:42
    bbatsov commented #2853
  • Jun 05 17:41
    bbatsov commented #2853
  • Jun 05 17:03
    philjackson edited #2853
  • Jun 05 17:00
    philjackson edited #2853
  • Jun 05 16:59
    philjackson opened #2853
  • Jun 05 12:27
    yuhan0 opened #2852
  • Jun 04 16:27

    bbatsov on master

    Fix a docstring (compare)

  • Jun 04 14:35
    jr0cket commented #2851
  • Jun 04 14:19
    bbatsov commented #2851
  • Jun 04 14:04
    jr0cket edited #2851
  • Jun 04 14:00
    jr0cket commented #2851
  • Jun 04 13:40
    jr0cket opened #2851
  • Jun 04 09:13

    bbatsov on master

    Switch back the docs version to… (compare)

  • Jun 04 09:12

    bbatsov on v0.25.0

    (compare)

  • Jun 04 09:12

    bbatsov on master

    Release CIDER 0.25 ("Bergamo") (compare)

  • Jun 04 06:59

    bbatsov on master

    Bump the clojure-mode dep (compare)

  • Jun 04 06:48

    bbatsov on master

    Bump the required cider-nrepl v… (compare)

  • Jun 04 03:10
    stale[bot] closed #2790
  • Jun 04 03:10
    stale[bot] commented #2790
  • Jun 03 19:44
    kolharsam commented #2847
Lars Andersen
@expez
actually not sure how it happened. If I did lein release clojars it shoud use the version in project.clj, right?
And since that is a snapshot it should've released a snapshot?
Benedek Fazekas
@benedekfazekas
ah lein release does the whole bumping versions etc dance i think
John Stevenson
@jr0cket
@Bost thank for the code, it seems to work very well. I renamed the function to clojure-toggle-reader-comment-sexpand gave it different keybindinds though :) I use C-# as a short cut and put it under the major mode as #
Tianxiang Xiong
@xiongtx
Strangely, cider-find-var only seems to work in a Cljs buffer for some vars (e.g. om/root), while others (e.g. om/component) work in all buffers (e.g. *scratch*). What's the issue here?
Lars Andersen
@expez
No issue, it's only supposed to work on clj(s) buffers
Specifically, if you're making the query in the scratch buffer, how can find-var know if you want it to look for a clj or cljs var?
Stuff also has to be loaded into the repl for the queries to work
Tianxiang Xiong
@xiongtx
OK, so why does it work for some vars?
Glauber Alex Dias Prado
@greboide
hi is there some way to take refactor-nrepl out of the boot process for cider-jack-in?
i couldnt figure it out, it is bugging me with this issue puniverse/pulsar#43
hmm it seems expez answered my question already :D
Tassilo Horn
@tsdh
Hi. Is there a way to start a cider repl with some jars in the classpath without having a leiningen project? I just want it in a Java project to be able to play with some static methods.
Tassilo Horn
@tsdh
I know I can start a standalone repl with M-x cider-jack-in outside of a project, but how would I put some jars in the classpath of such a repl?
James Elliott
@brunchboy
I think the way to do that is to create the Leiningen project! :smile: A major purpose of the project is to tell tools what needs to be on the class path. If the jars are not from Maven you may need to look into setting them up as local artifacts, using one of the approaches outlined here: https://stackoverflow.com/questions/2404426/leiningen-how-to-add-dependencies-for-local-jars
Petra Jaros
@Peeja
Yesterday, cider-jack-in-clojurescript was starting a Figwheel repl for me; today, after restarting Emacs, it will only start a Rhino repl. My cider-cljs-lein-repl should still be correct, though…
(setq cider-cljs-lein-repl
        "(do (require 'figwheel-sidecar.repl-api)
             (figwheel-sidecar.repl-api/start-figwheel! \"dev\" \"devcards\")
             (figwheel-sidecar.repl-api/cljs-repl \"dev\"))")
Is there more to this that I'm forgetting I did yesterday to make it work? :)
Oh, I did upgrade ClojureScript; could it care about that for some reason?
Petra Jaros
@Peeja
Oh, drat, I see the problem. I made it buffer-local, and the global value is still the default rhino one.
Is it a bug that Cider doesn't respect the buffer-local value?
jmjoy
@jmjoy
Why not clojure has raw string? such as """ in pthon.
James Elliott
@brunchboy
It doesn’t need them, ordinary Clojure strings can already include newlines.
Patrik
@birdspider
hello, what is the correct way to add java sources/doc to a lein dependency vector so that cider-javadoc knows about them ? (... :classifier "sources" results in error: duplicate class)
Nicolas Almy
@almynic
Hi i'm trying to get ac-cider running but it doesn't work.
Nicolas Almy
@almynic
this is my init.el https://pastebin.com/gqvwAmhB
i added ac-cider but somehow I doesn't work when i'm editing clojure files
Bost
@Bost
Hi I've got a problem with cider--format-reindent: Wrong type argument: arrayp, nil. Does anyone experienced it before?
Bost
@Bost
@jr0cket I improved the comment function(s):
(defun clojure-toggle-reader-comment-fst-sexp-on-line ()
  (interactive)
  (let* ((point-pos1 (point)))
    (evil-insert-line 0)
    (let* ((point-pos2 (point))
           (cmtstr "#_")
           (cmtstr-len (length cmtstr))
           (line-start (buffer-substring-no-properties
                        point-pos2 (+ point-pos2 cmtstr-len))))
      (if (string= cmtstr line-start)
          (progn
            (delete-char cmtstr-len)
            (goto-char point-pos1)
            (left-char cmtstr-len))
        (progn
          (insert cmtstr)
          (goto-char point-pos1)
          (right-char cmtstr-len))))))
;; Bound to "s-\" (s is the windows super-key)

(defun clojure-toggle-reader-comment-current-sexp ()
  (interactive)
  (newline-and-indent)
  (clojure-toggle-reader-comment-fst-sexp-on-line))
;; Bound to "C-s-\" (s is the windows super-key)
@jr0cket ... improved and renamed.
@jr0cket Oh yea. Giving good names is hard.
John Stevenson
@jr0cket
Thanknyou @Bost your code is much appreciated
Bost
@Bost
Regarding cask task of clojure-mode. Does anyone know what this means / how to fix it?
$ make test
make: *** No rule to make target '/home/bost/dev/clojure-mode/.cask/25.3/elpa', needed by 'test'.  Stop.
Sean Allred
@vermiculus
Might cask/cask#399 be related?
Bost
@Bost
Hard to tell. I just installed cask. I have to have a look. Thanx for the hint anyway. I realized my $PATH needs some cleanup.
Bost
@Bost
@vermiculus no I think the cask/cask#399 is unrelated to my problem.
Tim
@timofeytt
Hi everyone. I have a clj web project (chestnut app) that I'd like to work on. When I evaluate application.clj there is a main method that starts a web server. However, once I execute the whole buffer in CIDER, there is no local server started.
(defn -main [& _]
  (let [config (config)]
    (-> config
        app-system
        component/start)
    (println "Started chestnut-tutorial on" (str "http://localhost:" (:http-port config)))))
How is CIDER supposed to work with web servers?
To me this appears to be an important use-case that needs documentation.
Tim
@timofeytt
My main question is why is main method not evaluated? Now, I see that the standard procedure is to call (run) from cider-repl.
Neil Okamoto
@gonewest818
With C-c C-k that (defn -main ...) is evaluated but that’s not the same as evaluating -(main). Type (-main) at the repl and the webserver should start, is that right?
If you’re using component, however, you might want to look at this workflow instead. https://github.com/stuartsierra/component/blob/master/README.md#entry-points-for-development
Artur Malabarba
@Malabarba
@timofeytt You can run the main function with M-x cider-run, but that's not how you usually start servers with cider.
Well, actually, it's fine if your function is asyncronous
But if your function is synchronous I think it'll lock up the repl for you
A different way to do it (which I'm pretty sure is documented) is to add cider-nrepl to your project.clj. Then you can start your server normally and connect with M-x cider-connect
The command is pretty smart and should offer tab-completion for your server
Artur Malabarba
@Malabarba
As for your last question. Indeed, Cider doesn't take the liberty of calling functions for you after connecting. That's why there's a command for calling -main
Neil Okamoto
@gonewest818
a few messages ago I think @Malabarba meant to say "...addtools.nrepl to your project.clj"
Artur Malabarba
@Malabarba
Probably :-)