This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-02
Channels
- # announcements (2)
- # beginners (69)
- # boot (1)
- # cider (35)
- # clara (1)
- # cljs-dev (1)
- # clojure (40)
- # clojure-spec (11)
- # clojure-uk (8)
- # clojurescript (9)
- # cursive (1)
- # datomic (5)
- # figwheel-main (25)
- # fulcro (64)
- # jobs (2)
- # jukebox (1)
- # kaocha (3)
- # off-topic (7)
- # pathom (39)
- # planck (5)
- # random (1)
- # re-frame (11)
- # reagent (8)
- # shadow-cljs (58)
- # test-check (41)
- # vim (13)
Hello. I'm trying to use shadow-cljs with Calva, and there is no progress.
I can connect to repl via shadow-cljs cljs-repl frontend
, but Calva says Failed starting cljs repl for shadow-cljs build: :frontend. Is the build running and conected?
Shadow works in lein mode, so I added [cider/cider-nrepl "0.20.0"]
into project.clj, then I added it into shadow-cljs.edn, no effect.
Can someone help me?
What’s the best way to have code that only runs in development mode? In figwheel-main I configured an extra env/dev source path.
Nevermind, able to achieve it with the :dev and :release configs. Shadow-cljs is amazing!
Was able to change the :main with the :dev and :release.
@richiardiandrea can you name some of the npm libs you use in your azure builds or other node builds? I'm working on the one-file bundler thing and need examples of libs people actually use
Sure, Bunyan, node-postgres, @azure/cosmos, ajv, request...just by memory
I know that this won't work with all node libs but if webpack can do it so should we 😉
@lilactown 1. install shadow via lein 2. add shadow-cljs.edn
{:lein true
:builds {:frontend ...}}
3. add [cider/cider-nrepl "0.20.0"]
to lein (not shadow-cljs) deps
4. start shadow lein run -m shadow.cljs.devtools.cli watch frontend
5. trying start repl lein run -m shadow.cljs.devtools.cli cljs-repl frontend
6. trying to connect via Calva
7. getting
This looks like a shadow-cljs coding session.
Failed starting cljs repl for shadow-cljs build: :frontend. Is the build running and conected?
but if a "server-mode" process is running (eg. the watch
) then it won't run lein
and instead connect to the server process
lein run -m shadow.cljs.devtools.cli cljs-repl frontend
this will NEVER work when launched through lein
$ npm run shadow-cljs watch frontend
...
# another terminal
$ npm run shadow-cljs cljs-repl frontend
> [email protected] shadow-cljs /Users/kana/Development/waifoo
> shadow-cljs "cljs-repl" ":frontend"
shadow-cljs - config: /Users/kana/Development/waifoo/shadow-cljs.edn cli version: 2.7.24 node: v10.6.0
shadow-cljs - connected to server
[1:1]~cljs.user=> js/document
#object[HTMLDocument [object HTMLDocument]]
[1:1]~cljs.user=>
But Calva returns the same in "Calva says"
This looks like a shadow-cljs coding session.
Failed starting cljs repl for shadow-cljs build: :frontend. Is the build running and conected?
I just trying to connect to cljs repl separately from clj repl, by "Attach ClojureScript repl" command, but when I am trying to connect to clj repl, it always successfully connected to cljs repl
There was only one rebuild after cljs change (in log), but there were two reloads in browser
{:lein true
:builds {:frontend
{:output-dir "resources/public/js"
:target :browser
:modules {:main {:entries [waifoo.client]}}
:asset-path "js"
:devtools {:watch-dir "resources/public/css"}}}}
css folder didn't has changes