cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
bozhidar 2020-10-21T07:29:16.238900Z

@lkottmann Currently no.

bozhidar 2020-10-21T07:29:41.239500Z

If you want to evaluate code within the context you have to do this from the debugger.

michal 2020-10-21T09:55:15.240800Z

hey, whenever I try to flush completion cache I'm getting nrepl-send-sync-request: Wrong type argument: stringp, abort-on-input. I'm not sure what might cause that problem. any hints?

bozhidar 2020-10-21T10:23:21.241800Z

Seems like there's an invocation with wrong arguments somewhere. Open a ticket about this and I'll check it out later.

michal 2020-10-21T10:55:31.242200Z

thanks, ticket created. as I described, this problem is actually a minor one, the real issue I tried to investigate is why I have no autocompletion on namespaces (like (java.util._) or qualified symbols (like (clojure.string/_). I though that flush may help but I feel like it's not that easy 🙂

Louis Kottmann 2020-10-21T13:04:07.242400Z

Maybe I'm missing something as I am new to Clojure, but that's usually how I work to debug something. I.e: binding.pry in ruby, or pdb.set_trace() in python. Is there no such need in Clojure that nobody requested that feature on Cider?

Louis Kottmann 2020-10-21T13:05:53.242600Z

At the moment when I feel the need for repl debugging I use https://github.com/GeorgeJahad/debug-repl but it is much inferior to ciders repl

jmckitrick 2020-10-21T21:59:29.243300Z

What’s the purpose of this prompt and the resulting browser page?

jmckitrick 2020-10-21T21:59:31.243500Z

Visit '<http://localhost:9630>' in a browser? (y or n)

jmckitrick 2020-10-21T21:59:49.243900Z

Is it useful outside the functionality CIDER provides already?

dpsutton 2020-10-21T22:03:42.244300Z

posted in shadow as well but (setq cider-offer-to-open-cljs-app-in-browser nil) i believe

dpsutton 2020-10-21T22:04:00.244700Z

if you are developing a webapp using cljs, you need the runtime. so it helpfully tries to load up the page for you

jmckitrick 2020-10-21T22:11:34.245200Z

Ok, I see. How is that different from a clj backend and shadow/figwheel front end?

jmckitrick 2020-10-21T22:11:47.245500Z

Do you mean cljs entirely in the browser?

jmckitrick 2020-10-21T22:12:22.246100Z

oh, perhaps a web worker or something without a rendered page/dom…. maybe?

dpsutton 2020-10-21T22:13:01.246800Z

if you are making a webapp the js engine is the browser. so its offering to open the browser so you can run the emitted js code from your cljs

jmckitrick 2020-10-21T22:15:13.247300Z

ok. I guess I just don’t see how that’s different from bookmarking localhost:3000 and opening that.

jmckitrick 2020-10-21T22:15:27.247600Z

Except that page shows something very different, of course

dpsutton 2020-10-21T22:17:58.248200Z

not every project uses port 3000. its customizable and shadow will pick other ports if the one you specified is taken

jmckitrick 2020-10-21T22:32:56.249300Z

Hmm. It shows me build status etc, and I thought for sure that page must have a use if someone went through all the trouble of designing it 🙂 rather than just overriding it to point to my app

magra 2020-10-22T09:15:07.253500Z

I do not know the official name of that page but I consider it the shadow-cljs dev tools. Shadow-cljs supports multible builds like test etc. It also shows compile and recompile status. And if you use tap> in cljs it shows up here to. Also notifications about builds come from this.

magra 2020-10-22T09:16:10.253700Z

If you use eg. fulcro quite a lot of things show up here. It might be bleak on a bare new app.

magra 2020-10-22T09:18:44.253900Z

On my setup the app communicates with the server, also in production, via 3000. It communicates with shadow-cljs via 9600.

magra 2020-10-22T09:37:00.254100Z

Correction: browser, not app. And maybe consider it a dashboard.