clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
william 2020-12-06T00:05:09.165900Z

which developer plugin do you use to inspect the state of the app when using reagent?

borkdude 2020-12-06T10:30:20.169100Z

I recommend portal! There is also this thing: https://github.com/Odinodin/data-frisk-reagent

william 2020-12-06T00:05:19.166100Z

the react one?

william 2020-12-06T00:14:35.167300Z

also, when I insert a keyword in some javascript state, it's silently converted to a js object. So code like (= :my-keyword state) where state is originally a keyword (but now a string) will fail

victorb 2020-12-06T11:16:29.169500Z

that doesn't sound right, I think. You have a fuller example of this?

william 2020-12-06T00:14:49.167700Z

what's the usual way of going around that?

djblue 2020-12-06T04:30:16.167900Z

If you are using shadow-cljs, I think you can use its inspect + tap>

djblue 2020-12-06T04:33:55.168200Z

If not, you can always use https://github.com/djblue/portal to inspect your reagent state (shameless plug 😂)

✅ 2
rgm 2020-12-06T15:41:03.171500Z

I noticed the “Newbie Friendly Tickets” link in the Clojurescript github wiki (https://github.com/clojure/clojurescript/wiki/Developers) is a dead link to the old Clojure Jira. Is there a revised link for the new Jira? (Well, “dead” = 403 forbidden).

alexmiller 2020-12-06T15:42:42.172100Z

presuming that was a filter, I don't know that it was recreated in the new jira system

alexmiller 2020-12-06T15:42:46.172300Z

probably could do though

rgm 2020-12-06T15:43:59.172800Z

yeah, looked like some sort of view: http://dev.clojure.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=10616

alexmiller 2020-12-06T15:47:04.173100Z

here's a replacement: https://clojure.atlassian.net/issues/?filter=10028

alexmiller 2020-12-06T15:50:43.174100Z

if you get to the point of wanting to supply patches, please see https://clojure.org/dev/dev for process to sign the CA and request a jira account, and discuss any issues in #cljs-dev

🙏 1
alexmiller 2020-12-06T15:51:09.174400Z

and I updated the wiki page link

Dan Maltbie 2020-12-06T22:07:40.176500Z

I'm getting the following error message when I try to call a function from emacs/cider debug Buffer (window). #object[Error Error: No protocol method IDeref.-deref defined for type null: ] The code works when I call it from the webpage. the cider debugger says that it is a function. ttncore.copy> (st/fetch-block "xx" :LINK) #object[Error Error: No protocol method IDeref.-deref defined for type null: ] ttncore.copy> (type st/fetch-block) #object[Function]

dpsutton 2020-12-06T22:17:01.177400Z

somewhere you're dereferencing nil instead of an atom it seems

Dan Maltbie 2020-12-11T19:16:33.266Z

Good to know. I've been able to fix my problem with your help. I did look at the stack trace in the browser but didn't help. Thanks again for your help. My programming error.

dpsutton 2020-12-06T22:17:15.177700Z

@nill or (deref nil)

Dan Maltbie 2020-12-06T22:46:13.178Z

Yes, it seems like it should be something obvious like that. Hard to isolate failure though since it doesn't indicate where in the code or what atom is being dereferenced. thanks for the suggestion.

dpsutton 2020-12-06T22:50:21.178300Z

what's the full stacktrace? place it here in this thread using triple backticks: `

dpsutton 2020-12-06T22:51:52.178500Z

triple backticks
allow multiple
lines