This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-20
Channels
- # beginners (35)
- # boot (81)
- # braveandtrue (7)
- # cider (74)
- # cljs-dev (52)
- # cljsrn (5)
- # clojure (114)
- # clojure-austin (1)
- # clojure-belgium (3)
- # clojure-brasil (8)
- # clojure-czech (7)
- # clojure-greece (18)
- # clojure-ireland (1)
- # clojure-russia (67)
- # clojure-uk (11)
- # clojurescript (52)
- # core-async (5)
- # core-matrix (3)
- # cursive (13)
- # data-science (3)
- # datomic (8)
- # emacs (80)
- # events (2)
- # hoplon (8)
- # immutant (7)
- # jobs-discuss (3)
- # juxt (25)
- # ldnproclodo (21)
- # leiningen (27)
- # mount (24)
- # off-topic (6)
- # om (23)
- # onyx (48)
- # parinfer (1)
- # proton (4)
- # re-frame (41)
- # reagent (9)
- # spacemacs (8)
- # untangled (122)
Hey folks! I am facing an issue with mis-match of cider and cider-nrepl versions? My emacs has the cider-version 0.12.0-SNAPSHOT
and I have added the same in my lein profile for cider-nrepl
. However when I run the project and connect to the repl via cider it shows me this warning.
WARNING: CIDER's version (0.12.0-snapshot) does not match cider-nrepl's version (nil). Things will break!
WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.3.0-SNAPSHOT and n/a, respectively.
You can mute this warning by changing cljr-suppress-middleware-warnings.
My lein-profile looks like this -
{
:user {
:plugins [[cider/cider-nrepl "0.12.0-SNAPSHOT"]]
:dependencies [[org.clojure/tools.nrepl "0.2.12"]]
}
}
@benedek: My profiles.clj is actually the text I posted above. I will remove the cider-refactor dep from the plugins.
@zentrope: @rmuslimov FWIW, I started using figwheel yesterday. cider-jack-in-clojurescript works for me by setting
(setq cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/start-figwheel!)
(figwheel-sidecar.repl-api/cljs-repl))")
@malabarba: Yes, I think it’s robust as long as project.clj starts with defproject. Try putting a (def foo “bar”) in front of (defproject …) and you might get what I was seeing: two Cider repls, not cljs.
anytime I jack-in in a project that uses boot it shows Java process icon. this is driving me nuts. how do I turn this off?
For those who're still new and struggling with emacs/cider, I have a custom workflow with a minimalist typographic theme, that includes up-to-date versions of cider 0.12.0 and relevant plugins for Clojure/Clojurescript dev. It is based on “cask” dependency management, and as such upgrades should be less painful. Feedback appreciated. https://github.com/priyatam/emacs.d
@bozhidar: congrats on 0.12.0! I had no problems upgrading to it, and your talk at Clojure/West was inspiring.
ok I was able to fix Java Icon Cup thing for terminal repl by adding `export JAVA_TOOL_OPTIONS="-Dapple.awt.UIElement=true”
`. but this didn’t fix cider-jackin
do I need to add something into ~/profiles.boot
?
where can I find a good starting point for a clojure centric .emacs config? I was using emacs-live from the begining but it started lagging after cider a bit too much
@nooga: all you really need is to (require 'cider)
, and start browsing through the config vars as documented via M-x customize-group <RET> cider <RET>
has anyone else noticed that the chestnut template's (browser-repl)
in a jack-in'd repl doesn't allow cljs-eval if a cljs buffer has already been loaded?
i.e. if I open up my project.clj
, jack-in, then do (run)
and (browser-repl)
, I can open up a .cljs file and eval cljs. But if I open up a .cljs file before running (browser-repl)
, I get a message complaining that there is not cljs connection
that is to say, open up a .cljs file, run (browser-repl)
, and then try to eval, i get an error.
@bja: I'm aware of that issue, you could try the snippet @malabarba posted earlier
(setq cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/start-figwheel!)
(figwheel-sidecar.repl-api/cljs-repl))")
if you have time to make an issue for it that would be great (--> http://github.com/plexus/chestnut)
this solution might work, in which case it should be documented in the README, or if it doesn't work we can follow up and look for a solution
also with this approach you would no longer call (browser-repl)
, instead cider-jack-in-clojurescript
will open two REPLs for you, one CLJ one CLJS
@nooga: cider
, clj-refactor
, and paredit
/`smartparens`/`parinfer` are what I would consider essential. There are a lot of starter kits but unless you take the time to study all the stuff that's in them you're probably better off starting with a minimal config
@nooga: that said most of these "sane-defaults" from @magnars are pretty sensible to have as well https://github.com/magnars/.emacs.d/blob/master/settings/sane-defaults.el
@malabarba: in the os x dock. it creates foreground Java process which I can’t even close
@malabarba: nope 😞
In Linux/Windows that would be almost trivial. But I hear OSX is a little more finicky for that kind of stuff
@malabarba: I feel I tried almost everything - tweaking .boot.properties and profile.boot files, setting env vars and getting them in emacs, using exec-path-from-shell
package - nothing seems to help
@ag have yo utried evaluating this in emacs: (setenv "JAVA_TOOL_OPTIONS" "-Dapple.awt.UIElement=true")
?
@malabarba: one sec