Fork me on GitHub
#shadow-cljs
<
2018-04-01
>
denik02:04:22

version 2.2.21 EDIT: looks like this was a build issue. I’ve run into this at least twice now, still haven’t build up the habit of cleaning :output-dir (which solved it for me). @thheller have you considered to programmatically wipe all target output between versions?

geraldodev02:04:05

I'm getting "module without entry or suffix: jquery ? On build entry put :js-options :resolve {"jquery" {:target :global :global "jQuery"} }

geraldodev15:04:06

When You call "shadow-cljs cljs-repl cards" and press ) the repl exits. Are you using a different repl client with shadow-cljs ?

thheller15:04:01

@geraldodev shadow-cljs does not touch the user.clj. Clojure does. whatever you put in there will be loaded by clojure.

thheller15:04:05

@denik cleaning output-dir should never be necessary since the compiler is supposed to overwrite all relvant files. if you have something that is happening consistently thats a bug you should report.

denik22:04:17

@thheller Unfortunately I don’t think I have anything reproducible enough. Only noticing that things break between version updates. And then I spend hours trying to figure out what’s going in. Could this maybe have to do with upgrading cljs to 1.10..?

thheller22:04:46

no. any version change will invalidate all caches.

👌 4
4
thheller15:04:54

@geraldodev the ) exit should not happen. it is indeed a bug.

thheller15:04:58

the query thing however works just fine for me?

geraldodev15:04:15

@thheller do you want me to open an issue ?

geraldodev15:04:19

man I was looking your code, beautiful use of spaces.

geraldodev15:04:19

I find interesting that you bundle clojurescript. That means that shadow-cljs is kind of a curator of cljs versions

geraldodev15:04:16

Do you remember which clojure code touches user.clj ?

thheller15:04:39

what do you mean? shadow-cljs is just a build tool for clojurescript. it uses clojurescript to compile everything.

geraldodev15:04:07

Because it bundles a specific version

thheller15:04:04

ah yeah. thats just more convenient that way.

thheller15:04:31

don't know what part of clojure loads user.clj

geraldodev15:04:35

It felt strange when the lack of tools.namespace dependency required by user.clj was blowing the compilation process.

thheller15:04:35

it in the RT.doInit function which is one of the first things that gets called when clojure starts

thheller15:04:48

no way around that

geraldodev16:04:29

@thheller Is https://github.com/bhauman/devcards/pull/135 preventing the use of devcards with shadow-cljs ?

geraldodev16:04:26

Or have you seen users using devcards with shadow-cljs ?

thheller16:04:36

@geraldodev you can use devcards just fine. only need to use (:require [devcards.core :as devcards :include-macros true])

👍 4
thheller16:04:49

and :compiler-options {:devards true}

geraldodev16:04:15

@thheller Thank You! now I'm back in the game

geraldodev19:04:59

I saw that :compiler-options {:devcards true} on one githubrepo but I was thinking It was a mistake, because I didnt see :devcards on neither shadow-cljs and clojurescript searching with ag

alex-dixon20:04:07

Anyone using with cider?

alex-dixon20:04:30

Not yet. Came across this so I was thinking it should recognize shadow-cljs.edn now but no luck. https://github.com/clojure-emacs/cider/commit/973e1041bd0a7f6e60dbda126e20d90b870bab05

thheller20:04:41

@alex-dixon it works if you use a cider snapshot version but I don't think it was officially released yet

alex-dixon20:04:42

Ok. I just pulled 0.17.0-snapshot I think…date was from yesterday. I’m an emacs noob so not positive. Going to try with atom

thheller20:04:00

I know pretty much nothing about cider but it seemed to work fine