This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-25
Channels
- # beginners (27)
- # boot (49)
- # cider (51)
- # cljs-dev (29)
- # cljsjs (1)
- # cljsrn (19)
- # clojure (59)
- # clojure-austin (2)
- # clojure-belgium (19)
- # clojure-china (1)
- # clojure-dev (14)
- # clojure-dusseldorf (7)
- # clojure-russia (8)
- # clojure-spec (115)
- # clojure-uk (45)
- # clojurescript (118)
- # css (6)
- # cursive (8)
- # datascript (20)
- # datomic (32)
- # emacs (5)
- # events (2)
- # flambo (21)
- # hoplon (58)
- # incanter (8)
- # jobs-rus (1)
- # jobs_rus (1)
- # off-topic (3)
- # om (22)
- # om-next (9)
- # onyx (5)
- # other-languages (79)
- # re-frame (126)
- # reagent (6)
- # ring (7)
- # specter (1)
- # untangled (119)
- # yada (38)
eldoc isn't displaying any information anymore since a couple of days. i'm running spacemacs from develop branch with up-to-date packages. any ideas why this could be?
eldoc has been through some changes recently. do you get any error message in the *Messages*
buffer ?
Hmm after doing cider-jack-in-clojurescript
the repl of both clj and cljs start and connect, I can evaluate in them, and I can C-c C-c
in a clj file but the clojurescript buffer I started the jack-in says:
user-error: `cider-eval-defun-at-point' needs a ClojureScript REPL.
If you don't know what that means, you probably need to jack-in (`C-c M-J').
For instace, if you evaluate inc
. Do you see a java class or a javascript function?
Starting nREPL server via /Users/baruchberger/bin/lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.3.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.13.0-SNAPSHOT\"\] -- repl :headless...
nREPL server started on 55866
[nREPL] Establishing direct connection to localhost:55866 ...
[nREPL] Direct connection established
Connected. May the Source be with you!
[nREPL] Establishing direct connection to localhost:55866 ...
[nREPL] Direct connection established
Connected. Learn the rules like a pro, so you can break them like an artist. -Pablo Picasso
Starting a custom ClojureScript REPL
I must add that I have a kind-of exotic set-up. I am connecting to a chrome-extension, which required me to tunnel 443 to 3449 (figwheel) and set-up figwheel to use secure websockets.
I have a quick question (and let me know if I’m way off base or doing something horribly wrong), but I’m starting up a remote nrepl server for my app and connecting to it from cursive’s built in remote REPL functionality. Is there a way to force everything that’s sent to and from that session to print to the console out on the server? I’m using an uberjar at the moment and my startup code looks like this:
(ns my-ns.core
(:require [clojure.tools.nrepl.server :as nrepl]
[cider.nrepl :as cider])
(:gen-class))
(defonce server (atom nil))
(defn shutdown [] (nrepl/stop-server (deref server)))
(defn -main
[& args]
(reset! server (nrepl/start-server :port 1234 :bind "localhost" :handler cider/cider-nrepl-handler))
(println "Hello, World!"))
@stephenmhopper: You could write a middleware for that. But I'm not sure how you would add it to nrepl
But this isn’t some pre-existing functionality?
@malabarba: you mentioned a work-around?
@malabarba: GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0, NS apple-appkit-1348.17) of 2016-04-27 on Baruchs-MBP
(defun hack-connection-type (cs)
(mapcar (lambda (c)
(with-current-buffer c
(when (string-match "CLJS" (buffer-name))
(setq cider-repl-type "cljs"))))
cs)
cs)
(advice-add 'cider-connections :filter-return #'hack-connection-type)
@malabarba: Thanks a bunch 🙂 Really amazing how quickly you helped me. I am not sure what to include in a bug report.
Might try to re-install emacs, spacemacs and the redo the configuration first either way.
has anyone else reported a error with Cider and company-mode completions? I get this error consistently when typing clojure function names: Error running timer company-echo-show: (error "Company: backend (company-capf company-dabbrev-code) error \"Wrong type argument: sequencep, 115\" with args (meta reductions)”
I just wanted to check before trying to find a minimal repro case.