This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-10
Channels
- # beginners (9)
- # boot (8)
- # calva (9)
- # cider (11)
- # cljs-dev (6)
- # clojure (21)
- # clojure-austin (1)
- # clojure-spec (55)
- # clojure-uk (24)
- # clojurescript (30)
- # cursive (1)
- # datomic (3)
- # defnpodcast (1)
- # emacs (3)
- # figwheel-main (9)
- # fulcro (8)
- # jobs-discuss (3)
- # nrepl (7)
- # pathom (8)
- # pedestal (4)
- # perun (4)
- # planck (79)
- # shadow-cljs (46)
- # sql (5)
- # vim (29)
is there an easy way to turn off the nrepl server that starts up with shadow-cljs watch?
ah thanks -- not using nrepl, don't need it to be running -- less resource use, less open ports, etc.
@sogaiu in [email protected]
you can set :nrepl false
and/or :socket-repl false
to disable them
@thheller adding :nrepl false to shadow-cljs.edn seems to work as expected in 2.7.31, thanks a lot π
at least in the case of writing packages in cljs for atom or extensions for vscode, nrepl does not seem necessary
is there a way to inform shadow-cljs to pick up new versions of npm deps I installed?
hm, I ran npm i
to grab new React versions that were in my package.json and I had to restart the shadow-cljs process to get it to pick up
I tried shadow/stop-worker
and re-running shadow/watch
too, was still getting errors due to not being on latest React
that doesn't do anything. the cache is shared between workers so restarting the worker won't restart the cache
The socket repl is not starting up. nRepl server starts and I get a log statement shadow-cljs - nREPL server started on port 9000
. There is no corresponding statement for the socket repl. The relevant bits of my shadow-cljs.edn file are
:socket-repl {:port 9001}
:nrepl {:port 9000}
At least, I think those are the relevant bits of the shadow-cljs config. I must be missing something π
@mark340 did you try connecting to post 9001? it just isn't printed but it should be started
So it is. The repl is started but no log output
Thanks!
Really silly question but I have some css files in resources/
which are exposed by my web server and which I include in a page. Is there a way to get the page to live-reload when I change the css? (preserving everything; just updating the css)
Anything to do about an error like this:
[:app] Build failure:
failed to convert sources
{:tag :shadow.build.closure/convert-error, :sources [[:shadow.build.npm/resource "node_modules/qr-scanner/qr-scanner.min.js"]]}
ExceptionInfo: failed to convert sources
...
Caused by:
RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Source map's "sources" and "sourcesContent" lengths do not match.
com.google.javascript.jscomp.PrebuildAst.prebuild (PrebuildAst.java:79)
...
It is this npm package thatβs the issue: https://github.com/nimiq/qr-scanner
you can remove //# sourceMappingURL=qr-scanner.min.js.map
from the node_modules/qr-scanner/qr-scanner.min.js
file
first time I've seen this error. guess clojure is really strict about incorrect source maps