Fork me on GitHub
#clojurescript
<
2017-06-15
>
qqq00:06:43

does go blocks just screw up cljs stack traces, or is there still a useful way to get stack traces in go blocks

richiardiandrea01:06:07

@qqq that's a well known problem and probably @darwin already thought about a solution for dirac..

richiardiandrea01:06:30

I am quite interested myself 😀

qqq02:06:54

what a slacker, what has darwin done since oops, cljs-devtools, and dirac? 🙂

richiardiandrea02:06:46

Oh well that's another target for your qqq-coins 😀

dm307:06:36

is there a way to uniformly access fields on a Clojure/script deftype in a cljc extend-type? E.g.

(deftype A [field])
(extend-type A
   IProtocol
   (-value [this] (.field this)))

thheller07:06:11

(.-field thing)

dm307:06:21

that works in clj?

dm307:06:41

learn something new every day 🙂

dnolen16:06:35

@foobar what else should it show? that’s all you have there

foobar16:06:25

From ff console I see some different content that I set in a script tag

dnolen16:06:49

it’s hard to understand what you are saying. What do you actually see in one case and what do you see the in the other case and what code are you using that leads to these two supposedly different cases?

foobar16:06:54

I was expecting firefox console 'mynamespace.cache' to be the same object as cache in mynamespace or js/mynamespace.cache

dnolen16:06:29

they are most definitely same - but without more information hard to say what’s going on

foobar16:06:21

If I change the above code to set only the users key and not replace cache then it seems to work as I would expect and I see both 'function_requires' and 'users' in cache from both clojurescript and js

foobar16:06:38

I guess it didn't like me replacing cache from js?

dnolen17:06:04

@foobar that helps, under advanced compilation there’s no guarantee that any of those names will exist

dnolen17:06:30

mynamespace.cache will likely become a two character thing like xA

dnolen17:06:01

and this is not even consistent across Closure advanced builds, intentionally so

urbank18:06:39

What does it take for a multimethod to get extended?

urbank18:06:42

I have a defmulti in one file and then I require (:refer) this multimethod in other namespaces and define methods. However, this doesn't seem to work

urbank18:06:55

it always defaults to the :default that I defined in the same file as the defmulti

urbank18:06:20

I changed the dispatch function, and didn't update the defmethods

dnolen18:06:58

yeah changing the dispatch fn won’t update defmethods you need to reload everything in that case

christianromney19:06:35

is the :parallel-build compiler option generally as reliable as serial building? anyone using parallel builds often and with good results? it's yielding a 50% speedup on my project and i'm very enthusiastic about embracing it, just want to know how careful i should be about the switch.

dnolen19:06:00

@christianromney lots of people use it - there have a been a bug report but no minimal reproducer that I’ve seen yet

dnolen19:06:29

the main thing to watch out for is circular deps (which aren’t allowed), we don’t currently have good prevention for that in parallel build case

dnolen19:06:49

you shouldn’t be doing that anyway - and non-parallel builds will show you the problem

christianromney19:06:09

thanks, @dnolen i did spot that in a cursory JIRA search.

christianromney20:06:05

@dnolen I found the bug report, and also failed to reproduce. To make it easier on the next person who wants to look at the bug, I created this repo and added a link to it in a comment in JIRA: https://github.com/christianromney/cljs-1921

linicks22:06:17

How do I get figwheel to auto refresh when I edit my index.html under the resources directory? I've allready added resources to my source paths :source-paths ["src" "resources"]

linicks22:06:26

I've also added ,:autoload true, under :figwheel

darwin22:06:39

@linicks I’m no figwheel expert but I think you expect something figwheel doesn’t offer. Figwheel does hot code swapping. Not html file auto-reloading AFAIK.

darwin22:06:08

In other words, Figwheel will change code in your running web app, without full page refresh.

linicks22:06:35

@darwin Ok, thanks for clarifying that for me!