This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-28
Channels
- # aws (1)
- # beginners (30)
- # boot (7)
- # cider (52)
- # clara (91)
- # cljs-dev (33)
- # cljsjs (1)
- # clojure (447)
- # clojure-brasil (3)
- # clojure-dev (16)
- # clojure-dusseldorf (5)
- # clojure-filipino (1)
- # clojure-italy (29)
- # clojure-sanfrancisco (5)
- # clojure-spec (62)
- # clojure-uk (37)
- # clojurescript (145)
- # clojurewerkz (1)
- # code-reviews (12)
- # community-development (157)
- # cursive (5)
- # datascript (1)
- # datomic (27)
- # editors (42)
- # emacs (5)
- # fulcro (31)
- # hoplon (2)
- # jobs (2)
- # keechma (1)
- # lumo (31)
- # off-topic (2)
- # om (1)
- # onyx (13)
- # parinfer (8)
- # re-frame (13)
- # reagent (32)
- # remote-jobs (4)
- # shadow-cljs (103)
- # spacemacs (15)
- # specter (10)
- # sql (1)
- # tools-deps (35)
- # unrepl (13)
@mitchelkuijpers Happy to hear this, although I believe we’re just getting started with it. 🙂
is there a main ns for cider-nrepl
so that people who use cider middlewares and tools.deps
and easily setup :cider
alias with -m
.
Does cider have support for a) jumping to the definition of a var, and b) refactoring a var in ClojureScript?
b) not 100% sure what you mean if renaming a var then clj-refactor does for jvm clojure not for cljs unfortunately
Morning all. Is clojure-cli project type ready for use? I just tried and am getting 'are you sure you want to connect without a project'. clj -r
works at the command line.
I don't know emacs well, is melpa only stables? I thought there was a separate for unstables.
https://github.com/clojure-emacs/cider/issues/2191 this definitely landed.
Probably we’ll disable it completely at some point for clojure-cli
, as people would normally use this outside a project I guess.
With lein
, boot
and gradle
running jack-in outside of a project generally doesn’t make much sense, therefore this warning.
It seems that you have to cider-jack-in
from the dir with deps.edn
, whereas with lein
it would search up to find project.clj
If you’re outside a directory with any project marker file it will also start clojure
right now.
Let me know if you need any help with this. Unfortunately I never found the time to properly polish this, but I hope this will change soon (or someone else will help with it). But at least we have something working even now. 🙂
I think it would be reasonable to search up the dir tree for deps.edn
in the same way that lein
connections do?
But the different behavior for running it outside of a project is mostly there to serve the usecase of someone needing a quick repl to play with Clojure in general.
As you can see here, the code for lein and tools.deps is pretty much the same https://github.com/clojure-emacs/cider/blob/master/cider.el#L1002
Having trouble finding a way to specify which project.clj profile jack-in should use. Is there a way?
One more thing I forgot - if you run cider-jack-in
with a prefix C-u
the command will prompt you for the project you want to jack into and the params for the jack-in command.
Thanks, what is the syntax for those jack in params if you just want to specify a profile?
I’d have put those in parameters
, not global options, as it was intended for something else, but I guess in practice this doesn’t matter much.
I’m not even sure why we have them separated. @benedek came up with separation and it made sense to me, but I can see how it can be confusing. Go figure what’s a param and what’s a global option (think of things like -v
).
cider-lein-parameters is "repl :headless :host ::"
so its important not to blow those away. lein global options is nil and you can just clobber as your heart desires
Yeah, I know. But I really think that we should probably just have one command string per build tool and have people have to think only about it.
Is there a way to get clj-refactor’s middleware to ignore test directories on jack-in? (We have an older test code base, and when the clj-refactor/nrepl middleware builds the AST, it evals the forms, which runs the integration tests, and slows things down.)
clojure -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"} cider/orchard {:mvn/version "0.1.0-SNAPSHOT"} cider/cider-nrepl {:mvn/version "0.17.0-SNAPSHOT"} refactor-nrepl {:mvn/version "2.3.1"}}}' -e '(require (quote cider-nrepl.main)) (require (quote refactor-nrepl.middleware)) (cider-nrepl.main/init ["cider.nrepl/cider-middleware" "refactor-nrepl.middleware/wrap-refactor"])'