Fork me on GitHub
#cljsrn
<
2021-07-28
>
paulocuneo01:07:16

hi everyone, I'm trying out krell with cider, following the reagent wiki example. It's seems it doesn't find new namespaces I create until I run

clj -M -m krell.main -v -co build.edn -c
Am I missing some config? or this is the proper workflow? should I recompile every new namespace.

woonki.moon13:07:06

I have the same issue! :thinking_face:

gammarray22:07:47

I’m trying the rn-rf-shadow repo with expo go and getting timeouts:

gammarray22:07:33

The app does load initially and upon subsequent saves it will update, but the timeouts are pretty consistent.

gammarray22:07:07

Each save loads the state of the app code from the previous save since that one timed out.

thheller05:07:20

it might be picking the wrong IP trying to connect back to the shadow-cljs REPL server

thheller05:07:42

you can set the correct one manually in ~/.shadow-cljs/config.edn with {:local-ip "123.4.5.6"}

gammarray13:07:32

hm unfortunately that didnt help

gammarray13:07:31

Here's the output of npx expo diagnostics:

Expo CLI 4.0.2 environment info:
    System:
      OS: Linux 5.10 NixOS 21.05 (Okapi) 21.05.906.cedcf2565c6 (Okapi)
      Shell: 4.4.23 - /run/current-system/sw/bin/bash
    Binaries:
      Node: 14.17.0 - /run/current-system/sw/bin/node
      Yarn: 1.22.10 - /run/current-system/sw/bin/yarn
      npm: 7.20.2 - ~/.npm-packages/bin/npm
      Watchman: 4.9.0 - /run/current-system/sw/bin/watchman
    npmPackages:
      expo: 39.0.5 => 39.0.5
      react: 16.13.1 => 16.13.1
      react-dom: 16.13.1 => 16.13.1
      react-native: 0.63.3 => 0.63.3
      react-native-web: 0.13.7 => 0.13.7
    npmGlobalPackages:
      expo-cli: 4.0.2
    Expo Workflow: managed

gammarray13:07:27

and shadow-cljs info:

shadow-cljs - config: /home/jasonmj/git/rn-rf-shadow/shadow-cljs.edn
=== Version
jar:            2.15.2
cli:            2.15.2
deps:           1.3.2
config-version: 2.15.2

=== Paths
cli:     /home/jasonmj/git/rn-rf-shadow/node_modules/shadow-cljs/cli/dist.js
config:  /home/jasonmj/git/rn-rf-shadow/shadow-cljs.edn
project: /home/jasonmj/git/rn-rf-shadow
cache:   .shadow-cljs

=== Java
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment (build 16+36-nixos)
OpenJDK 64-Bit Server VM (build 16+36-nixos, mixed mode, sharing)

=== Source Paths
/home/jasonmj/git/rn-rf-shadow/src/main
/home/jasonmj/git/rn-rf-shadow/src/test

gammarray13:07:41

initially i tried this in emacs with cider, then i used the command line with shadow-cljs watch app and npm start. both yielded the same timeout error as the screenshot above.

gammarray13:07:34

i have opened ports 19000-19003 on my host firewall and confirmed that my phone can connect

gammarray13:07:43

oh and i've tried with fast refresh off and on. doesnt seem to make a difference

gammarray14:07:09

heh, i also tried shadow-cljs watch app --config-merge '{:local-ip "123.123.123.123"}' after finding that in a github issue. that didn't help either 😕

gammarray15:07:00

aha! opening port 9630 resolved the issue.