Fork me on GitHub
#shadow-cljs
<
2018-10-26
>
vigilancetech08:10:56

with this repo: [email protected]:vigilancetech-com/hoplon-test.git I'm getting nothing but Build failure: from the watch task and this from the server:

...
shadow-cljs - nREPL server started on port 42651
Exception in thread "async-dispatch-5" java.lang.Error: java.net.SocketException: Socket closed
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1155)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
        at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
        at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
        at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
        at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
        at java.io.BufferedWriter.flush(BufferedWriter.java:253)
        at clojure.core$flush.invokeStatic(core.clj:3703)
        at clojure.core$prn.invokeStatic(core.clj:3713)
        at clojure.core$prn.doInvoke(core.clj:3706)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at shadow.cljs.devtools.server.util$stdout_dump$fn__13982$state_machine__6460__auto____13987$fn__13990.invoke(util.clj:213)
        at shadow.cljs.devtools.server.util$stdout_dump$fn__13982$state_machine__6460__auto____13987.invoke(util.clj:213)
        at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973)
        at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972)
        at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977)
        at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975)
        at clojure.core.async.impl.ioc_macros$take_BANG_$fn__6478.invoke(ioc_macros.clj:986)
        at clojure.core.async.impl.channels.ManyToManyChannel$fn__2089$fn__2090.invoke(channels.clj:95)
        at clojure.lang.AFn.run(AFn.java:22)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        ... 2 more
This is me toying around with shadow's electron example. This is one thing ya gotta love about clojuresque languages. Opaque error messages. Anyone have an idea what it is (and why it doesn't tell me anything useful)?

vigilancetech08:10:54

Also, I'm pretty sure I saw a flag to make shadow not output custom terminal codes (e.g. vt100) so it could be used, for example, in eshell. Now I can't find it (and it doesn't appear to be anywhere in the manual). Does anyone remember what it is?

thheller09:10:39

@vigilancetech that is not a build failure message

thheller09:10:08

there is no such flag

thheller09:10:28

run shadow-cljs server and open

thheller09:10:36

then select your build

thheller09:10:39

and click compile

thheller09:10:20

and to be of any use debugging I need to know which command you used in which environment

robert-johansson16:10:20

Hello all - I'm quite new to clojurescript and shadow-cljs. I'm thinking about the possibility to write your own cljs code for an existing React template.

robert-johansson16:10:29

Is it possible to write cljs code that includes components/scss/etc from the template, and build such project with shadow-cljs?

robert-johansson16:10:10

@thheller OK sounds promising. So I could probably then add JS/JSX files from the template to a shadow-cljs project, and then import components locally from my cljs code?

thheller17:10:31

jsx files are going to need to be pre-processed but then they can be imported normally yes

robert-johansson18:10:16

@thheller That seems to be exactly what I need. Thanks!

wilkerlucio18:10:50

is there a flag today to make the builds serial? its for my ci thing, or do I have to run separated processes?

Wilson Velez20:10:18

hi, how can I stop a watch?

Wilson Velez20:10:55

I’m starting it “shadow-cljs watch app”

thheller20:10:13

@wilkerlucio there is no flag no but you can create a function and call that via shadow-cljs run

thheller20:10:29

@wilkerlucio just pushed 2.6.19 which now does release sequentially instead of parallel

thheller20:10:37

until I can figure out what is happening thats the safer default

Wilson Velez22:10:42

how do I know and change the version of clojure(Script) in my shadow-cljs configuration?

lilactown23:10:20

@wvelezva shadow-cljs pulls in the latest clojurescript version

lilactown23:10:35

I think you can override it in your dependencies