This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-18
Channels
- # announcements (4)
- # babashka (2)
- # beginners (72)
- # calva (2)
- # cider (18)
- # clj-kondo (30)
- # cljs-dev (2)
- # clojure (106)
- # clojure-austin (2)
- # clojure-europe (17)
- # clojure-italy (6)
- # clojure-nl (4)
- # clojure-uk (109)
- # clojurescript (31)
- # cursive (6)
- # data-science (2)
- # datomic (30)
- # events (1)
- # fulcro (20)
- # graphql (4)
- # jobs (2)
- # joker (8)
- # kaocha (2)
- # meander (31)
- # off-topic (1)
- # pathom (53)
- # re-frame (22)
- # reitit (1)
- # shadow-cljs (26)
- # specter (2)
- # sql (20)
- # testing (2)
- # tools-deps (2)
- # tree-sitter (1)
- # xtdb (20)
- # yada (6)
I'm creating a new project from scratch, and when I try to connect to a clojurescript repl in cider it mentiones "no clojure project detected". Do I need to have something to indicate it's a clojure project?
Is there an obvious reason https://github.com/hoplon/hoplon/blob/master/src/hoplon/core.clj won't compile with bootstrapped cljs? I tried removing all the java stuff but keep getting
{:error #error {:message Could not require hoplon.core, :data {:tag :cljs/analysis-error}, :cause #error {:message ns hoplon.core not available, :data {:ns hoplon.core}}}}
when i try to compile it (according to this guide (https://code.thheller.com/blog/shadow-cljs/2017/10/14/bootstrap-support.html).Is there a list of rules anywhere on how to make a library bootstrap compatible? Or any general tips for debugging this?
strangely, I have no issues with bootstrapping javelin macros (https://github.com/hoplon/javelin/blob/master/src/javelin/core.clj) directly, even though that's a clj file and has some java calls. But it seems like it's that library (which hoplon also depends on) which I suspect might be giving me the issues when trying to use hoplon. I could be wrong on that though
Hmmm I removed all macros from hoplon and even then it doesn't work. (still getting " Could not require hoplon.core"). My bootstrap build looks like
:bootstrap-support
{:target :bootstrap
:output-dir "public/bootstrap"
:exclude #{cljs.js}
:entries [cljs.js javelin.core cljs.analyzer hoplon.core]
:macros []}
I'm trying to locate a problem with a version of an npm package. I'm running the compiler with npm shadow-cljs watch my-app
and then starting node target/main.js
Am I right that I only need to restart the node target/main.js
part every time I test a different version of the npm package?
Strangely though, javelin and it's macros are working perfectly for me, the io
ns is never used in that file. I had a local versiont that got rid of the io require and this line, which I don't think is valid cljs https://github.com/hoplon/javelin/blob/557b51ce14f31c391aefa8a22c8c2aa42db7b269/src/javelin/core.clj#L200
But strangely, after I got that working I went back to using the github/master version and it still worked fine. (I deleted caches several times too)
I think I'm just doing something unrelated and dumb because now I keep getting the same error on cljs only projects (even though for some reason javelin still works)
Does anyone know a solution for this issue? I tried to specify a main and also put the :browser-inject :main
as advised in the documentation, but I can't overcome this.
How can I use different stubs for debug and production? By this it looks like it's not possible? https://shadow-cljs.github.io/docs/UsersGuide.html#_clojure_script I'm trying to use [Debux](https://github.com/philoskim/debux), which has sperate deps for production stubs and development tracing.