Fork me on GitHub
#clojurescript
<
2018-12-14
>
sova-soars-the-sora01:12:05

i'm a teepee, i'm a wigwam!

sova-soars-the-sora01:12:18

"you're too tense." [tents]

🚪 4
Dante T. M.03:12:05

Found an interesting behavior with figwheel. I introduced :foreign-libs into my project.clj file and I'd get a Java null pointer exception before the figwheel process failed. The files had compiled as I could view the result in the static output files (if the foreign library was missing, several features wouldn't have worked), so the build was successful. Decided to take the :foreign-libs key and vector out of project.clj and move it into a deps.cljs file in src and figwheel decided to play nice. Obviously I don't need to solve the problem anymore, but these things are an itch I like to scratch. Anyone else see this kind of behavior?

dnolen14:12:44

@dante.the.monkey never heard of anything like that

dnolen14:12:22

if you think you've found a bug probably best to report a minimal case to #figwheel or #figwheel-main depending on what you're using

lmergen15:12:08

is alias available in clojurescript? https://clojuredocs.org/clojure.core/alias for some reason, it appears to not be available when i try to use it:

11 | (create-ns 'app.specs)
  12 | (alias 'specs 'app.specs)
--------^-----------------------------------------------------------------------
 Use of undeclared Var 'app.auth/alias
--------------------------------------------------------------------------------
  13 | ;(s/def ::specs/uuid uuid?)
what could be the reason ?

lmergen15:12:40

i wasn't successful in finding any documentation on this on google, although it's a bit difficult to google for

thheller15:12:31

@lmergen no it is not available. ns stuff can only be done in actual ns

lmergen16:12:41

fair enough, thanks for confirming!

dnolen16:12:02

@lmergen alias is a run time operation on ns objects

dnolen16:12:12

ns objects don't exist in ClojureScript

lmergen16:12:34

that makes sense, then

andrea.crotti18:12:44

does anyone have a way to get test coverage reports for clojurescript?

andrea.crotti18:12:34

the dream would be something that works with both CLJ and CLJS at the same time so that we get the right report for all the CLJC files as well, but I guess that's not really going to be possible

souenzzo18:12:50

i think that #"\/" generates a wrong js code

benzap19:12:23

Is there something special about #error {:message <message>}? Shouldn't I be able to get the message via (:message e)?

benzap19:12:47

I'm trying to catch an expound error message, and display it properly formatted in a node server console, but I can't seem to extract the message

manutter5119:12:54

Try (.-message e)

👍 4
Alex Miller (Clojure team)19:12:59

#error is a tagged literal which is a printed/readable representation of an object (does not imply anything about the actual structure of the object or what it responds to)

benzap19:12:58

Interesting, that's good to know

benzap19:12:21

Normally i'd just inspect the object in the javascript console, but I don't have that luxury in a node server 😉

benzap19:12:26

at least that I know of...

Schpaa19:12:59

In my setup, the clojurescript compiler must run two times to produce all the files needed when optimization is set to none. Does this sound familiar to anyone?

lilactown19:12:11

when in node, you can do js/console.log to see what the actual JS representation of it is

👍 4
Dante T. M.22:12:05

Having issues with figwheel picking up stale files and only updating when (e.g.) adding and deleting a space in a string. Nothing changed in the functionality, but figwheel renders the site. Any help?

dnolen23:12:28

make sure you don't have JS asset caching enabled

dnolen23:12:58

I thought Figwheel had some cache busting stuff, also you might want to ask this question in #figwheel