Fork me on GitHub
#shadow-cljs
<
2020-02-13
>
Niclas16:02:34

Is it possible to connect multiple clients to the nREPL server and “broadcast” REPL commands to all connected clients?

dpsutton16:02:38

https://github.com/clojure/tools.nrepl/wiki/Extensions check concerto. no idea if up to date and maintained

dpsutton16:02:58

oh, just saw this is in shadow. no idea then 🙂

haywood16:02:52

👋:skin-tone-2: Does shadow not support importing node packages like ["@elastic/eui" :as eui]?

haywood16:02:11

I’m not sure what’s up with that @

haywood16:02:44

ah, scoped packages

haywood16:02:01

> sometimes people mistakenly think that `(:require ["foo/bar" :as x])` is something `shadow-cljs` specific when it is absolutely not

thheller16:02:09

@haywood sure thats supported just fine

haywood16:02:14

yea that’s what I figured… gotta double check all of the variables

p-himik21:02:57

Oh. Wow. I think I just got some gray hair trying to understand what's going on. I have a project reagent-playground with a bunch of sources:

;; a.cljs
(ns reagent-playground.a
  (:require [reagent-playground.b :refer [f] :rename {f b-f}]))

(defn f [])

(js/console.log "A F" f)

;; b.cljs
(ns reagent-playground.b)

(defn f [])

;; core.cljs
(ns reagent-playground.core
  (:require [reagent-playground.a :as a]))

(js/console.log "A F2" a/f)
The JS console output is:
a.cljs:6 A F fnreagent-playground$a$f[]
core.cljs:5 A F2 undefined

p-himik21:02:54

So a/f works inside a, but outside suddenly becomes undefined. It can be fixed by not requiring that b namespace along with :rename.

thheller21:02:14

looks like a bug

p-himik22:02:49

Let me know if you need any additional information.

thheller23:02:29

feel free to open an issue otherwise this will get lost. I can at least confirm if its something shadow-cljs does or CLJS specific