This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-29
Channels
- # announcements (1)
- # beginners (40)
- # calva (30)
- # cider (3)
- # clj-kondo (1)
- # cljdoc (12)
- # clojure (79)
- # clojure-dev (7)
- # clojure-france (4)
- # clojure-spec (10)
- # clojure-uk (13)
- # clojurescript (19)
- # core-async (1)
- # core-typed (1)
- # cursive (2)
- # datomic (2)
- # emacs (3)
- # events (1)
- # kaocha (2)
- # klipse (14)
- # off-topic (26)
- # pathom (1)
- # reagent (8)
- # rewrite-clj (8)
- # shadow-cljs (22)
- # tools-deps (18)
@thheller can I wish for the .nrepl-port
file to be created even if [:nrepl :port]
is set? Calva uses this file’s creation as a signal in its jack-in process (because limitations in the vscode API:s).
Is there a way to ask for Shadow to not try to resolve a JS dependency, and just maps to a specific require
?
The reason for that is that while developing an atom package I found out that I can compile it with :js-provider :shadow
to avoid using node_modules. This made the package smaller, installs faster, and when Atom starts the package adds waaay less time on startup time
But as the target is as node library, sometimes dependencies tries to require('fs')
for example, and shadow's compilation complains that it can't find the module for it
Just... Wow! Thanks a lot, it works perfectly!
@thheller , alright, I'll run a few more tests with it, maybe I jumped to the conclusion. (Probably did.)
just remember to use the correct file. .nrepl-port
is wrong and kind of unreliable since it doesn't want to interfere with lein
creating one
Ah, maybe that's what happening. So I should be looking in the .shadow-cljs dir instead? Calva doesn't treat shadow special with this file today, but maybe it should.
Roger that. I'll need to look closer at jack-in for shadow web projects anyway, I noticed today.
Another thing, while I am at this. When using the nrepl op for loading a file. With figwheel (both flavors) i get a result back. But not with shadow. This puzzles me a bit. What could be causing that?
I'll look closer at which messages I get. Maybe there is something else I can use to signal that the operation has been carried out.
Hi guys, just getting started with clojure and im trying to run a basic project on my windows machine. When I run watch it runs the project for a minute or two and then exits
tried to add
:fs-watch {:watcher :polling}
to shadow-cljs.edn but that didn't alleviate the issueJust... Wow! Thanks a lot, it works perfectly!