cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
macrobartfast 2021-04-19T00:38:46.330800Z

do I (ns) int the cljs reple, or?

macrobartfast 2021-04-19T00:40:02.331Z

haha, didn’t think you were shouting… but, for the record, any of you can shout at me all day long… you all are angels so you can do no wrong.

macrobartfast 2021-04-19T00:45:42.331200Z

the cljs repl prompt is cljs.user> if that’s useful.

macrobartfast 2021-04-19T00:52:47.331400Z

I was able to switch my prompt to the namespace foobar is defined in and type it in with an argument and that worked.

macrobartfast 2021-04-19T00:53:00.331600Z

my cljs.user> prompt, that is.

macrobartfast 2021-04-19T02:29:03.331800Z

@qythium thanks!

macrobartfast 2021-04-19T04:54:20.333700Z

I really like cider-clojuredocs as someone who’s learning; however, in a cljs file one gets 'cider-clojuredocs' doesn't support ClojureScript so I have to change the mode to clojure-mode for the buffer then it will work; however, almost all the symbols I am looking up are not specifically cljs ones… is there a way to get it to work for those symbols without having to change the buffer mode to clj and back?

bozhidar 2021-04-19T06:21:07.335400Z

I might remove this error at some point - the problem is that ClojureDocs really lists only Clojure namespaces and as some are named slightly differently (e.g. cljs.core) I didn't want to put a translation map between them.

bozhidar 2021-04-19T06:22:37.336200Z

At this point I tend to agree it'd better to just give errors about missing symbols than some blanket error statement. Feel free to open a ticket about this. It's trivial to change it.

bozhidar 2021-04-19T06:30:13.337400Z

I see on the backend that we resolve the symbols as Clojure syms, which I assume won't work when routed via a ClojureScript REPL, and this is probably the actual reason for the error message.

macrobartfast 2021-04-19T06:57:05.339600Z

Ah, ok. Sweet!

macrobartfast 2021-04-19T06:58:09.340800Z

Since a lot of people are coming into Clojure via ClojureScript and the community docs are so much more helpful for people new to Clojure this’ll be awesome.