Fork me on GitHub
#cider
<
2019-02-26
>
anish06:02:13

Hi Everyone, I am using cider with figwheel , to start cider i use cider-jack-in-clj&cljs and choose figwheel

anish06:02:14

Its starts clj cider and then cljs but I see pending-cljs message as it can't connect to cljs cider

anish06:02:15

my cider-version , 0.21

anish06:02:24

[figwheel-sidecar "0.5.16"]

anish06:02:45

[cider/piggieback "0.4.0"]

anish06:02:08

Am i missing something?

Michael Griffiths10:02:27

Is anything relevant logged in the *nrepl-server ...* buffer? What happens if you try to evaluate something in the CLJS REPL marked pending?

anish13:02:52

@cichli sorry i missed your reply, nREPL server started on port 43689 on host localhost -

anish13:02:58

I dont see any errors

Michael Griffiths13:02:09

Ah, I just noticed the Stdin: in the minibuffer. That’s not right

Michael Griffiths13:02:31

Can you try with [figwheel-sidecar "0.5.18"]?

anish13:02:36

thanks @cichli awesome also i had to add :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}

Michael Griffiths13:02:22

Cider should add that automatically if you use cider-jack-in I think. You can check the command it uses in *Messages*

Michael Griffiths13:02:29

Glad it’s working now though 😄

anish13:02:39

cool thanks again 🙂

kommen06:02:56

@anish.developer do you have the cljs app open in a browser?

anish06:02:57

@kommen yeah its open , when app gets connected i get User prompt in cljs

kommen06:02:23

ok, sorry, then I don’t know what is wrong here

anish06:02:43

thanks @kommen, its confusing may be I'm missing something

stathissideris09:02:13

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

Michael Griffiths10:02:19

@stathissideris try prefixing the jack-in command with C-u

Michael Griffiths10:02:26

I’m planning on merging this soon which makes the UX a bit better https://github.com/clojure-emacs/cider/pull/2586

stathissideris10:02:54

@cichli great, thank you, I’ll try

andrea.crotti10:02:36

I remember that adding a project dependency with cljr-refactor would make that dependency available immediately

andrea.crotti10:02:56

I've tried many times recently and it adds the dependency but it's not available in the existing repl anymore

andrea.crotti10:02:21

something missing in my set up or it never worked that way maybe and I just dreamed it?

Michael Griffiths10:02:11

Possibly you updated to a newer JDK? I think it doesn’t work on JDK9+ yet

andrea.crotti11:02:10

mm ;; Clojure 1.10.0, Java 1.8.0_144

andrea.crotti11:02:16

so no still java 1.8

Michael Griffiths11:02:47

Seems it’s disabled completely

andrea.crotti11:02:55

ah right that's a shame

andrea.crotti11:02:02

it's using alembic though, so maybe I can just do it myself

andrea.crotti11:02:33

even though `Alembic doesn't work anymore and other better solutions are coming down the line, so this is disabled for now..`

andrea.crotti11:02:41

so I should maybe look at these better solutions 😄

Michael Griffiths17:02:29

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

Michael Griffiths17:02:04

You could instead pass a function that resolves 'socketserver.core/handler and invokes it each time it’s called

Michael Griffiths17:02:21

Or look into https://github.com/clojure/tools.namespace (and the cider-ns-refresh command)