Fork me on GitHub
#clojurescript
<
2019-02-13
>
jaide00:02:49

Never mind! Two decent solutions came to mind. If anything better comes to yours Iโ€™m all ears ๐Ÿ˜„

JaimeV01:02:29

Does anyone have a github template to cljs development with CIDER and lein that works? I have tried "lein re-frame +cider" and "lein chesnut", but connecting CIDER to the cljs REPL doesn't seem to work or the config from the default templates is missing part of the recipe.

dpsutton01:02:47

how are you attempting to start up the project?

JaimeV01:02:11

From the view.cljs file, I issue "cider-jack-in-cljs". I get the following error: "error in process filter: No ClojureScript REPL type (do (require 'figwheel-sidecar.repl-api) ..."

dpsutton01:02:56

ok. and can you tell me your lein versions and CIDER versions? (`lein --version` && m-x cider-version respectively)

JaimeV02:02:08

CIDER 0.21.0snapshot (package: 20190212.1312)

JaimeV02:02:55

Leiningen 2.9.0 on Java 1.8.0_162 Java HotSpot(TM) 64-Bit Server VM

JaimeV02:02:19

Any ideas?

dpsutton02:02:32

i'm sorry. i'm still at work so i couldn't dive into it

dpsutton02:02:50

one thing to do: look for any uses of tools.nrepl 0.2.12 and excise them

dpsutton02:02:08

unfortunately the version of nrepl has gone from that to 0.6.0

JaimeV02:02:57

I don't have dependencies for nrepl. Would binaryage figwheel or piggieback depend on it?

dpsutton02:02:19

figwheel needs to be 0.5.18, piggieback needs to be 0.4.0

dpsutton02:02:30

i can check out lein re-frame +cider when i get home though and give you specific help in #cider

dpsutton02:02:14

of course! maybe in an hour or two? if you're around

JaimeV02:02:15

Great. I will be around. Your pointers move the problem forward. I am getting a new error: "Figwheel CLJS REPL: nREPL connection found but unable to load piggieback."

dpsutton02:02:40

check that cider/piggieback 0.4.0 is included

dpsutton02:02:24

and figure out the exact incantation for

:repl-options {
                 :nrepl-middleware [cider.piggieback/wrap-cljs-repl]}

dpsutton02:02:44

this is what hijacks eval to go from clj -> cljs

JaimeV02:02:11

I have both.

JaimeV02:02:52

Should I use "figwheel" or "figwheel-main" ?

dpsutton02:02:51

figwheel main if you can

JaimeV02:02:40

"figwheel-main" appears not available. I tried with "figwheel" again, no error but not repl either. The status-bar show (pending-cljs)

dpsutton02:02:03

ah sorry. use figwheel

dpsutton02:02:13

but in general you should move towards the (different deps) figwheel-main

dpsutton02:02:21

i misunderstood your question

dpsutton02:02:42

if you use figwheel selection, it should start building

dpsutton02:02:46

you should see output after a few seconds

JaimeV02:02:11

Compilation works, but I cannot get cider to eval s-exp with c-x c-e. The buffer does not appear associated to the cljs-repl session.

JaimeV02:02:03

If you have time, I will appreciate your help getting lein re-frame working with cider and figwheel-main.

AlejoVargas03:02:00

๐Ÿ˜€๐Ÿ‘

kappa 10
jsa-aerial03:02:25

I think I saw something recently that self hosted ClojureScript is not available when using advanced optimization. True??

thheller08:02:55

yes correct.

jimberlage03:02:50

Yep, thatโ€™s true

domparry16:02:00

Does anyone know if there is a list of David Nolenโ€™s talks?

lilactown21:02:02

I've noticed that some of my tap>s get dropped. haven't been able to minimally reproduce it, but it is consistent in some cases. any ideas why that might be happening?

lilactown21:02:54

e.g. in a reagent component I have:

(tap> member)
          (tap> app-data)
the first one goes through, the second one is dropped

thheller21:02:00

what does your tap-fn do? when using core.async channels you might be running into buffer limits for example

Raymond Ko21:02:16

@domparry Not sure, but here is a list of transcribed talks by David Nolen: https://github.com/matthiasn/talk-transcripts/tree/master/Nolen_David

๐Ÿš€ 5
Raymond Ko21:02:41

Does anyone have a working example of how to integrate draft.js with reagent? I sort of got it working, but clicking on a bold button, I am struggling to pass back control to the Editor component while maintaining the selection.

lilactown21:02:11

@thheller that might be it. I'm put!ing the value on a core.async channel that eventually sends a message over a websocket

thheller21:02:06

try to use (when-not (async/offer! the-chan value) (js/console.log "failed to put val" value))

thheller21:02:23

then async/offer! returns false the buffer was full

thheller21:02:46

that way you at least know that it happened ๐Ÿ˜‰

๐Ÿ’ฏ 5
thheller21:02:32

websocket can easily get overloaded with message spam so gotta be careful there

lilactown21:02:36

I guess this is where I get started with handling back pressure and such ๐Ÿ˜ฌ

thheller21:02:49

yep ๐Ÿ˜‰ usually making the buffer bigger is step 1 and you fix that once you run out of memory ๐Ÿ˜‰

florentpastor22:02:21

Hi! Is a way to work with the latest version of Google Closure Library in ClojureScript ? The version that is shipped with cljs is two years old ๐Ÿ˜•

thheller22:02:59

I asked in #cljs-dev but it may be best to open a proper Jira issue https://dev.clojure.org/jira/browse/CLJS

florentpastor22:02:07

But, isnโ€™t the library in this package ? [org.clojure/google-closure-library "0.0-20170809-b9c14c6b"]

thheller22:02:08

yeah closure-library is independent of the closure-compiler

thheller22:02:16

the library is rather old

john22:02:25

oh, ma' bad