Fork me on GitHub
#klipse
<
2016-11-10
>
practicalli-john14:11:51

@viebel how would I get (doc map) to work in klipse? I have tried (clojure.repl/doc map) and (cljs.repl/doc map) but I get "Type Error - undefined" error messages.

Yehonathan Sharvit14:11:52

doc is not yet supported in klipse

Yehonathan Sharvit14:11:49

but you can workaround it with (:doc (meta #‘map)) See an example here: http://app.klipse.tech/?cljs_in=(%3Adoc%20(meta%20%23%27map))%0A&amp;eval_only=1

practicalli-john14:11:28

Thanks. Hmm, that not something I would like to put in front of Clojure beginners though. For ClojureBridge content I'll just add a link the online docs at http://clojuredoc.org for specific functions, rather than in klipse for now. Its probably better they get used to looking at http://clojuredocs.org website as it has other examples too...

Yehonathan Sharvit18:11:15

Your work looks wonderful!

Yehonathan Sharvit18:11:09

I gave it a try and basically, one can do a funny thing - run cljs_live inside klipse

Yehonathan Sharvit18:11:20

(sorry for the long url)

mhuebert18:11:14

hah, neat. so the external-libs option takes any src directory

Yehonathan Sharvit18:11:27

yeap! not compiled

mhuebert18:11:59

is there a way to automagically dig into clojars directories?

Yehonathan Sharvit18:11:14

that would be great

Yehonathan Sharvit18:11:18

but not for the moment

Yehonathan Sharvit18:11:28

usually, I take code from github

Yehonathan Sharvit18:11:46

The problem is that with the deps of the libs

Yehonathan Sharvit18:11:01

For the moment, you have to add them manually into the external-libs parameter

Yehonathan Sharvit18:11:19

Theoretically, I could read the project.clj and resolve deps

Yehonathan Sharvit18:11:52

but I would need the repo of each dep - and it is not part of the project.clj

Yehonathan Sharvit18:11:23

but maybe one could check in clojars what is the repo of the dep and solve all the deps

mhuebert18:11:54

Sorry, my internet cut out

mhuebert18:11:43

Hmm. It would be nice if there was just a mirror of the files in the jar, then versioning would be aligned

Yehonathan Sharvit18:11:23

We just need the git commit of release tag!

mhuebert18:11:01

I have to run to dinner now but let's chat more later

Yehonathan Sharvit18:11:45

I think you opened a lot of interesting doors with cljs-live

mhuebert18:11:16

a mirror is also useful because there’s so much work that can be cached. like compilation. it’s really slow making the browser compile everything from source

mhuebert18:11:24

of course it depends on use-case how important that is.

Yehonathan Sharvit18:11:40

what do u mean by a mirror?

mhuebert18:11:29

at first I just meant another server that would host a cljs-subset of Clojars, where the jars are expanded (since a jar is just a bunch of files compressed together), to use like you are using git.

mhuebert18:11:09

but then in addition to just mirroring jarfiles as raw source directories, there is lots to do to make it convenient for grabbing clojurescript-compiler-friendly bundles of dependencies.

mhuebert18:11:55

in one swift move you could pass the client everything they need to compile whatever namespace they requested. then, like in cljs-live.compiler, this stuff is put into a client-side cache so the load-fn doesn’t have to make any more http requests.

mhuebert18:11:43

ok im signing out, speak later!