Fork me on GitHub
#clojurescript
<
2020-06-20
>
Justin Roche01:06:46

I'm running lein-repl using shell mode in emacs, according to this: https://github.com/plexus/chestnut/blob/master/README.md. But if I kill the lein repl buffer, and start a new shell, the prompt is gone. Is lein repl doing something to my bashrc?

donyorm18:06:49

Anyone have any wisdom/advice for deploying shadow-cljs apps to heroku? Or suggestions for an alternative to heroku that works well with clojurescript (currently just have a frontend so no worry about setting up a backend yet)

cjsauer01:06:20

Check out netlify

Chris McCormick01:06:30

if you want to self-host Piku is a good option

p-himik06:06:03

Since there's no build-pack that supports shadow-cljs (at least there wasn't the last time I checked), you can just write whatever you need to run in bin/build shell script within your project. Alternatively, create a buildpack, host it on GitHub, and just add it to your Heroku app as a Git URL.

rafalw18:06:16

Hi, I'm trying to setup clojure-script project using deps.edn, shadow-cljs and quil / p5.js, when I run shadow-cljs watch app I'm getting

[:app] Compiling ...
------ WARNING #1 -  -----------------------------------------------------------
 Resource: node_modules/p5/lib/p5.js:79496:13
 Parse error. extra visibility tag
--------------------------------------------------------------------------------
[:app] Build failure:
no output for id: [:shadow.build.classpath/resource "goog/base.js"]
{:resource-id [:shadow.build.classpath/resource "goog/base.js"]}
ExceptionInfo: no output for id: [:shadow.build.classpath/resource "goog/base.js"]
        shadow.build.data/get-output! (data.clj:196)
        shadow.build.data/get-output! (data.clj:192)
        shadow.build/enhance-warnings (build.clj:28)
        shadow.build/enhance-warnings (build.clj:24)
        shadow.build/extract-build-info/fn--12880 (build.clj:99)
        clojure.core/map/fn--5866 (core.clj:2753)
        clojure.lang.LazySeq.sval (LazySeq.java:42)
        clojure.lang.LazySeq.seq (LazySeq.java:51)
        clojure.lang.RT.seq (RT.java:535)
        clojure.core/seq--5402 (core.clj:137)
        clojure.core.protocols/seq-reduce (protocols.clj:24)
        clojure.core.protocols/fn--8146 (protocols.clj:75)
        clojure.core.protocols/fn--8146 (protocols.clj:75)
        clojure.core.protocols/fn--8088/G--8083--8101 (protocols.clj:13)
        clojure.core/reduce (core.clj:6828)
        clojure.core/into (core.clj:6895)
        clojure.core/into (core.clj:6887)
        shadow.build/extract-build-info (build.clj:101)
        shadow.build/extract-build-info (build.clj:71)
        shadow.build/update-build-info-after-compile (build.clj:109)
        shadow.build/update-build-info-after-compile (build.clj:107)
        shadow.build/compile (build.clj:433)
        shadow.build/compile (build.clj:422)
        shadow.cljs.devtools.server.worker.impl/build-compile (impl.clj:364)
        shadow.cljs.devtools.server.worker.impl/build-compile (impl.clj:345)
        shadow.cljs.devtools.server.worker.impl/fn--14242 (impl.clj:440)
        shadow.cljs.devtools.server.worker.impl/fn--14242 (impl.clj:429)
        clojure.lang.MultiFn.invoke (MultiFn.java:234)
        shadow.cljs.devtools.server.util/server-thread/fn--14019/fn--14020/fn--14028 (util.clj:285)
        shadow.cljs.devtools.server.util/server-thread/fn--14019/fn--14020 (util.clj:284)
        shadow.cljs.devtools.server.util/server-thread/fn--14019 (util.clj:257)
        java.lang.Thread.run (Thread.java:834)
Any idea what i'm doing wrong? My deps.edn:
{:deps {org.clojure/clojurescript {:mvn/version "1.10.764"}
        cider/cider-nrepl {:mvn/version "0.25.0-alpha1"}}}
My shadow-cljs.edn
{:source-paths ["src"]
 :dependencies [
                [quil "3.1.0"]
                ]
 :builds {:app {:target :browser
                :output-dir "public/js"
                :asset-path "/js"
                :root "public"
                :modules {:main {
                                 :entries [hello.hello]
                                 }}
                }}
 :dev-http {8000 "public"}}
I've installed p5 using npm and it's present in the package.json

lilactown18:06:48

@rafal.wysocki I ran into this yesterday after installing an npm module w/ the latest shadow-cljs

lilactown18:06:53

restarting the shadow-cljs process fixed it

lilactown18:06:58

I figured it was a one-off

rafalw19:06:37

@lilactown you're right, it works after restart