This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-26
Channels
- # announcements (4)
- # beginners (160)
- # boot (2)
- # calva (40)
- # cider (41)
- # clara (24)
- # cljdoc (2)
- # cljs-dev (99)
- # clojars (4)
- # clojure (71)
- # clojure-dev (9)
- # clojure-europe (4)
- # clojure-italy (2)
- # clojure-nl (19)
- # clojure-spec (97)
- # clojure-uk (103)
- # clojurescript (57)
- # core-logic (1)
- # cursive (15)
- # data-science (31)
- # datomic (24)
- # duct (1)
- # emacs (39)
- # events (7)
- # figwheel-main (14)
- # fulcro (44)
- # garden (7)
- # jobs (13)
- # juxt (1)
- # leiningen (29)
- # music (2)
- # nyc (4)
- # off-topic (37)
- # pathom (12)
- # re-frame (26)
- # ring (1)
- # ring-swagger (10)
- # shadow-cljs (35)
- # spacemacs (2)
- # specter (4)
- # test-check (67)
Hi Everyone, I am using cider with figwheel , to start cider i use cider-jack-in-clj&cljs and choose figwheel
Its starts clj cider and then cljs but I see pending-cljs message as it can't connect to cljs cider
Is anything relevant logged in the *nrepl-server ...*
buffer? What happens if you try to evaluate something in the CLJS REPL marked pending?
@cichli sorry i missed your reply, nREPL server started on port 43689 on host localhost -
Ah, I just noticed the Stdin:
in the minibuffer. That’s not right
Can you try with [figwheel-sidecar "0.5.18"]
?
thanks @cichli awesome also i had to add :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
Cider should add that automatically if you use cider-jack-in
I think. You can check the command it uses in *Messages*
Glad it’s working now though 😄
@anish.developer do you have the cljs app open in a browser?
for deps.edn projects, is there an interactive way to select the aliases before launching a REPL? for now I’m using a .dir-locals
file to start my project with the :dev
alias but I’d like to be able to add more aliases in some cases
@stathissideris try prefixing the jack-in command with C-u
I’m planning on merging this soon which makes the UX a bit better https://github.com/clojure-emacs/cider/pull/2586
@cichli great, thank you, I’ll try
I remember that adding a project dependency with cljr-refactor would make that dependency available immediately
I've tried many times recently and it adds the dependency but it's not available in the existing repl anymore
something missing in my set up or it never worked that way maybe and I just dreamed it?
Possibly you updated to a newer JDK? I think it doesn’t work on JDK9+ yet
mm ;; Clojure 1.10.0, Java 1.8.0_144
so no still java 1.8
https://github.com/clojure-emacs/refactor-nrepl/commit/f75441e2bb9f8f47aed221f592a1ac583df4cf1b
Seems it’s disabled completely
ah right that's a shame
it's using alembic though, so maybe I can just do it myself
even though `Alembic doesn't work anymore and other better solutions are coming down the line, so this is disabled for now..`
so I should maybe look at these better solutions 😄
I assume tcp/start-server
is a function, so it only ever sees the value of handler
it’s provided, and if -main
only runs once, then it will only be provided the value at initial load-time. Reevaluating handler
won’t rerun -main
You could instead pass a function that resolves 'socketserver.core/handler
and invokes it each time it’s called
Or look into https://github.com/clojure/tools.namespace (and the cider-ns-refresh
command)