Fork me on GitHub
#shadow-cljs
<
2021-08-19
>
thheller06:08:56

no, thats not possible

๐Ÿ‘ 2
flowthing13:08:07

@thheller clojure-lsp feeds the result value of npx shadow-cljs classpath to clj-kondo. If shadow-cljs isn't installed locally, shadow-cljs prints a warning saying WARNING: shadow-cljs not installed in project. It prints it into stdout, which means it trickles all the way down to clj-kondo, which then proceeds to croak with an inscrutable error. Would it be possible to change the println calls here such that the warning is printed into stderr instead? https://github.com/thheller/shadow-cljs/blob/de52880090c7840ee30eb5369173c1bd7dd3055c/src/main/shadow/cljs/npm/cli.cljs#L783-L791 Looks like println -> log might do it?

thheller14:08:05

sure, we can do that

flowthing14:08:32

Nice, thanks! I guess the main thing is that the stdout of npx shadow-cljs classpath never contains anything else than the classpath. ๐Ÿ™‚

flowthing14:08:58

I can make an issue later.

dazld20:08:48

hey, is there any way to be able to watch a build, but not have live reload? Iโ€™m making a node script, and itโ€™s being consumed by something that has its own watch semantics (mocha, in this case)

thheller20:08:14

:devtools {:enabled false} in the build config

dazld20:08:37

ah hah! thank you, trying it out

dazld20:08:55

I thought it was autoload false for some reason

thheller20:08:09

that also works but that would still attempt to open the websocket and REPL connection

thheller20:08:29

which might be a problem depending on how the other things reloads stuff

๐Ÿ‘ 3
dazld20:08:38

it seems to work just fine, thank you

dazld20:08:29

it was a problem in this case, had to completely disable devtools as you mention