Fork me on GitHub
#shadow-cljs
<
2018-09-15
>
lxsameer10:09:21

hey folks, I'm new to shadow-cljs, I used :node-script target, and ran shadow-cljs watch app which compiles the app just fine ( it's a hello world ) but when i use node to run the compiled file

lxsameer10:09:38

after printing hello world it waits and never exit

lxsameer10:09:42

is it normal ?

thheller10:09:36

@lxsameer yeah, it is normal. it is the devtools connection keeping the process alive. if you do not plan on using a REPL into your build then set :devtools {:enabled false} in your build config

thheller10:09:11

then the process will exit normally when you are done with it

thheller10:09:48

haven't yet figured out how to tell the node process to shut itself down if the only remaining thing is the devtools websocket

lxsameer10:09:29

also I'm having some problem using cider with shadow-cljs

lxsameer10:09:57

i have to run clj-repl via shadow and use cider-connect and then call (shadow/node-repl)

lxsameer10:09:06

i there any easier way ?

thheller10:09:09

I don't use emacs so I have no idea sorry. you can run shadow-cljs node-repl and cider-connect

thheller10:09:27

but you still need to switch the CLJ repl to CLJS via (shadow/repl :node-repl)

thheller10:09:32

so thats not any better really

lxsameer10:09:36

thanks man,

lxsameer10:09:00

Also kudos, So far I liked shadow-cljs so much , It's a really cool piece of software

👍 4
tony.kay16:09:48

Is there a known issue with current versions of shadow-cljs related to this kind of error:

Error: ENOENT: no such file or directory, open '/Users/.shadow-cljs/builds/babel-worker/dev/out/cljs-runtime/goog.debug.error.js'

tony.kay16:09:12

That isn’t the correct folder for .shadow-cljs in any build universe I live in

thheller16:09:18

oh crap did I publish the dev version again?

thheller16:09:22

which version are you on?

tony.kay16:09:24

I’m on 2.6.7

thheller16:09:01

compiling ..

thheller17:09:06

@tony.kay should be fixed in 2.6.8. sorry about that.

tony.kay17:09:16

I’ll give it a shot and report back 🙂

tony.kay17:09:24

no prob…I’ve done similar things

thheller17:09:28

happens when I deploy after making a dev build

thheller17:09:49

should really start looking into proper automated deploy stuff

tony.kay17:09:52

do I need to blow away any caches?

tony.kay17:09:46

same error 😞

thheller17:09:22

hmm maybe you do then. delete .shadow-cljs/babel-worker

tony.kay17:09:35

already trying…

thheller17:09:57

in your project. dunno why its pointed at /Users/.shadow-cljs in the error above

tony.kay17:09:07

me neither…makes no sense

tony.kay17:09:20

it’s like babel misdetected project root

tony.kay17:09:29

worked this time 🙂

thheller17:09:48

ah yeah. that setup doesn't properly invalidate on new versions

thheller17:09:52

I'll fix that