Discussion about all editors used for Clojure/ClojureScript
clojuregeek 2015-06-14T01:37:48.000985Z

hmm trying to get cider repl working in emacs

1 │  ; CIDER 0.8.2 (Java 1.8.0_40, Clojure 1.6.0, nREPL 0.2.6)
   2 │  WARNING: The following required nREPL ops are not supported:
   3 │  apropos classpath complete eldoc info inspect-start inspect-refresh ins\
        pect-pop inspect-push inspect-reset macroexpand ns-list ns-vars resourc\
        e stacktrace toggle-trace-var toggle-trace-ns undef
   4 │  Please, install (or update) cider-nrepl 0.8.2 and restart CIDER

clojuregeek 2015-06-14T01:38:46.000986Z

and my ~/.profiles

{:user {:plugins [[cider/cider-nrepl "0.8.2"]
                  [lein-pprint "1.1.2"]
                  [lein-try "0.4.3"]]
        :dependencies [[org.clojure/tools.nrepl "0.2.10"]]}
 :dev {:dependencies [[org.clojure/tools.nrepl "0.2.10"]]}}

clojuregeek 2015-06-14T01:39:52.000987Z

any ideas? I removed .m2 and redownloaded all the jars … it removed cider from emacs and installed version 0.8.2

ppold 2015-06-14T01:55:43.000988Z

@clojuregeek: Could you try switching to [cider/cider-nrepl "0.9.0-SNAPSHOT”]?

ppold 2015-06-14T01:56:39.000989Z

I think the CIDER version that emacs downloads by default is that one.

clojuregeek 2015-06-14T02:03:45.000991Z

looking into my list of packages: cider 0.8.2 installed

clojuregeek 2015-06-14T02:04:54.000992Z

I am therefore pretty sure the emacs version is 0.8.2

clojuregeek 2015-06-14T02:06:52.000993Z

M-x cider-version displays CIDER 0.8.2

ppold 2015-06-14T02:08:08.000994Z

:s I have no other clues 😞

clojuregeek 2015-06-14T02:08:59.000995Z

googling its a common problem.. with no real solution 😭

ppold 2015-06-14T02:10:08.000996Z

you could always switch to the latest snapshot, but that also comes with its own surprises...

clojuregeek 2015-06-14T02:11:29.000997Z

well thats what I did have … and i had errors too :simple_smile:

jcsims 2015-06-14T02:14:38.000998Z

clojuregeek: how did you start the repl?

clojuregeek 2015-06-14T02:15:16.000999Z

i start my server

lein ring server
Jun 13, 2015 8:36:54 PM com.mchange.v2.log.MLog <clinit>
INFO: MLog clients using java 1.4+ standard logging.
Started nREPL server on port 5000

clojuregeek 2015-06-14T02:15:42.001Z

then m-x cider-connect

jcsims 2015-06-14T02:15:46.001001Z

hmm so the cider nrepl middleware might not be brought in by the lein ring plugin

jcsims 2015-06-14T02:16:17.001002Z

unfortunately I’m not sure how to fix that, but that’s my best guess as to what’s happening

jcsims 2015-06-14T02:16:55.001003Z

to work around it, you might define a start function that starts the server, and just run that from a lein repl

jcsims 2015-06-14T02:17:36.001004Z

it could basically be the same entry point that you might have in an uberjar/war

clojuregeek 2015-06-14T02:17:44.001005Z

i have in project.clj

14 │    :ring {:handler recipe-api.core/handler
  15 │           :nrepl {:start? true :port 5000}}

clojuregeek 2015-06-14T02:17:58.001006Z

which a friend suggested earlier

jcsims 2015-06-14T02:19:59.001007Z

hmm yeah I don’t see an easy way to specify middleware - surprised that it doesn’t seem to pull in your user profile, though

clojuregeek 2015-06-14T02:21:23.001008Z

ok :simple_smile: thanks … maybe will figure out later, thanks for suggestions

jcsims 2015-06-14T02:22:05.001009Z

definitely. For a reference, this is what I’ve done in the past: https://github.com/quality-clojure/qualityclj/blob/master/src/clj/qualityclj/repl.clj

jcsims 2015-06-14T02:22:32.001011Z

basically just a namespace I only use in dev, that still allows for reloading of the app logic

clojuregeek 2015-06-14T02:24:22.001012Z

cool thanks

jcsims 2015-06-14T02:27:41.001013Z

for sure

cfleming 2015-06-14T04:39:12.001014Z

rauh: Alt-Enter - you can always use that when you see the little lightbulb at the left of the editor, that shows an intention of some kind you can execute.

rauh 2015-06-14T13:04:09.001015Z

@cfleming: Thanks! That works.

xlevus 2015-06-14T14:03:42.001016Z

How does cider decide which window to put its ouptut into? At the moment doing something like C-c C-m ends up putting the output into a new buffer in a different window every time... I was using that window. And I don't fully know how to go back to what was in there before

danielcompton 2015-06-14T23:21:21.001020Z

How do I disable Cursive’s comment indentation? By default it puts them way out to the left

cfleming 2015-06-14T23:32:07.001022Z

danielcompton: Normally it aligns them to the right of the line if there’s any other content

cfleming 2015-06-14T23:32:24.001023Z

danielcompton: You can stop it doing that by setting the comment alignment column to 0

danielcompton 2015-06-14T23:33:30.001024Z

Cool, I found that one. It might be handy to add to the web docs too, I couldn’t find it by searching. Is that open source too?

cfleming 2015-06-14T23:34:22.001025Z

The docs, you mean?

danielcompton 2015-06-14T23:34:27.001026Z

Yeah, is it possible for me to edit them or suggest edits @cfleming ?

cfleming 2015-06-14T23:43:38.001029Z

danielcompton: Not right now, although I’m thinking about opening that up. Creating the screenshots and especially the animations is a little tricky. But it’s a great idea, so I’ll try to figure out a way to make it easier.