This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-04
Channels
- # beginners (8)
- # boot (20)
- # cider (8)
- # cljs-dev (263)
- # cljsjs (8)
- # cljsrn (20)
- # clojure (151)
- # clojure-argentina (1)
- # clojure-belgium (7)
- # clojure-dev (18)
- # clojure-italy (25)
- # clojure-spec (34)
- # clojure-uk (15)
- # clojurescript (89)
- # component (45)
- # core-async (27)
- # cursive (16)
- # datomic (53)
- # emacs (40)
- # figwheel (3)
- # hoplon (62)
- # jobs (1)
- # jobs-discuss (7)
- # luminus (8)
- # lumo (60)
- # off-topic (3)
- # parinfer (1)
- # precept (1)
- # protorepl (15)
- # re-frame (37)
- # reagent (7)
- # ring (3)
- # ring-swagger (73)
- # slack-help (1)
- # specter (19)
- # sql (4)
- # test-check (10)
- # uncomplicate (2)
- # unrepl (14)
- # untangled (52)
- # vim (5)
- # yada (42)
is there a way to compile/eval an entire clojure buffer using inferior lisp (not cider) ? You can eval individual top-level expressions, but I'm looking for a counterpart to the "compile whole file" key binding
@ajs I am somwhat intrigued, why not just use Cider ? You'll be missing out on the tighter intregration. Is there some problem with Cider you encountered ?
Heck rich hickey and luke vanderhart and other well-known clojure folks don't use it either. a lot of the contractors I've worked with also don't like it.
i have had problems using some projects from cider with inexplicable errors that my colleagues did not have, and after long time tracking down the problem, it was due to the cider-nrepl interaction on my machine only. it's just overly complex
While that's a tangential discussion, it's not as if Rich & Co are infallible beings - I wouldn't adopt customs from any other person without first reflecting on why I want it. Also, even when "bloated", anything in emacs is lightweight compared to what modern machines has to endure (Electron apps, for example). And perhaps the bloatedness exists in large part to offer additional functionality. That said, try looking in mode help - (C-h m) and see if there isn't some command which sends the entire buffer over. If not, you can always write some elisp to copy over parts of the buffer to the REPL buffer for evaluation 🙂
i used cider for 2 years so it's not like i'm not speaking from experience; i'm not blindly adopting what others do, i just really don't like it.
and so far, inferior lisp solves a lot of the complexity for me. i never used nearly all cider features, so i'm getting the same experience in a much lighter, faster setup
actualy inf-clojure was created because of the popularity of inferior lisp for clojure editing. unfortunately, inf-clojure is written by the cider author, and adds some cider features
ajs: My comment won't add a lot to the discussion. But I for one am very happy that bbatsov is such an active contributor to the community. Saying that 'someone gives us great tooling for free' unfortunately feels mean enough that I'm saying this even though it doesn't help the question at hand.
I am currently contributing quite a bit to inf-clojure
. I don't think inf-clojure
adds any cider
feature actually. Which one is the most worrisome for you?
@U0C8489U6 i've started using inf-clojure and it's not bad so far. hopefully it does not grow to be anything complex
@ajs Are you using version 2.0.1
? Do you find completions slow?
if you are talking about autocompletion, i have not used that in any language in many years. I find autocompletion overrated, and in general a pain to set up properly in any language. I do however use the generic emacs dabbrev-expand which has always been sufficient for me
yeah agree...any slowness in something else?
i haven't found inf-clojure to be slow, except maybe the startup, which was the same as cider
@ajs yeah but that is more like nRepl's fault
socket repl should be faster in theory
If fast and light is your concern, you are using the wrong Lisp 😛
Did you have a look to see what the inferior lisp mode offers in terms of commands ? C-h m
or M-x
describe-mode
.
Also, describe-key
& describe-bindings
are often helpful.
i have looked at the inferior lisp docs, and can do most things i want, but was curious how others had handled whole-file compilation. i can do it easily enough at the repl, but some things in emacs are still confusing for me
actually, with regards to common lisp, it depends on your compiler. and for "lighter" i mean, as a language, clojure is much more minimal than CL
ajs: My comment won't add a lot to the discussion. But I for one am very happy that bbatsov is such an active contributor to the community. Saying that 'someone gives us great tooling for free' unfortunately feels mean enough that I'm saying this even though it doesn't help the question at hand.
i can appreciate the work that went into cider, but it's not for everyone. that's all. hence my reaching out to others who do things without cider.
@ajs there is an attempt for improving on cider called unrepl
, still early days though
the only path forward imho is to work on alternatives, contribute as much as possible will improve things for sure
this is entertaining reading on the subject: https://gist.github.com/levand/b1012bb7bdb5fcc6486f
yep all this is nice and old 🙂 nRepl is the only working solution for now because open source contributions on other projects have been slower...I personally have lately contributed more to inf-clojure
than to cider
because I share this view
Yep I try to, sometimes I indulge in the stability of cider 😀
Anyone use sayid? I am trying to set it up, and get “Sayid didn’t respond. Is it loaded?” when trying a command.
I ran sayid-setup-package
which produced no output (several times in fact). I am using spacemacs in case it matters.
nha: Did you add it to dotspacemacs-additional-packages
, spacemacs will uninstall any package not defined in .dotspacemacs or needed by a layer
It works now 🙂 It seems I just restarted the wrong repl after adding it to my lein dependencies. thanks 🙂
@nha - You might get more targeted help if you ask in #spacemacs.
@jeff.terrell sorry, not used sayid, but been meaning to… is sayid somehow more used by spacemacsers ?
@nha Can't really talk now, but sounds like sayid isn't loaded on the clojure-side of things. Add it to profiles.clj or project.clj?
@dotemacs - Not sure. It's possible, since it is (or soon will be?) in the Clojure layer of Spacemacs by default, thanks to @donyorm.