This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-20
Channels
- # admin-announcements (1)
- # announcements (9)
- # aws (11)
- # babashka (33)
- # beginners (125)
- # calva (20)
- # cider (18)
- # clj-kondo (7)
- # cljs-dev (73)
- # clojure (72)
- # clojure-europe (18)
- # clojure-italy (13)
- # clojure-nl (13)
- # clojure-uk (9)
- # clojurescript (22)
- # core-async (7)
- # cursive (1)
- # data-science (25)
- # datomic (22)
- # duct (32)
- # emacs (13)
- # graalvm (5)
- # hoplon (16)
- # juxt (6)
- # kaocha (8)
- # leiningen (3)
- # malli (11)
- # meander (12)
- # off-topic (18)
- # pathom (109)
- # pedestal (5)
- # rdf (10)
- # reagent (1)
- # reitit (12)
- # shadow-cljs (27)
- # spacemacs (5)
- # sql (9)
- # tools-deps (7)
random question: I’m trying to invoke a single file emitted by shadow via the graalvm polyglot context (i.e. from jvm clojure). It fails to load due to an error stating “org.graalvm.polyglot.PolyglotException: ReferenceError: global is not defined” I presume this is goog.global. My question is: could this work or am I trying to do something in the “too hard” basket?
extra info: graal polyglot does not support nodejs modules so it needs to be a single js artifact. for that reason, I used :node-script as the target
ah yes, of course. I had answered my own question without knowing it. thanks. I’ll go with the other architecture instead.
Hi, I'm new here! Thanks for the awesome compiler! I'm migrating from figwheel + cljs-oops/cljsjs/externs and couldn't be happier to throw away a few layers of dependencies and be able to use npm's packages!
I have a question: I have lein managing my dependencies and can successfully build an app using lein-shadow plugin. But I don't understand how I can run a build-report using lein dependencies? I want to see what adds size to my package. Thanks!
I don't recommend using lein-shadow but the config it generated should be enough to be able to run a regular build report
Thanks! It was giving me getSourceName not found
error. But after I run lein shadow release app
and then immediately build a report it worked. Not sure what was the problem, I'll dig deeper next time I generate a report.
Got it. Now I see what doc meant about weird java stack traces with lein and, indeed, I had a closure compiler in my dependency vector that was different from the one that shadow depends on. I removed any mentions of closure compilers in my dependency vector and will let shadow manage it for me. Everything seems to be back to normal. Thanks for all the help!
Running compilation before the report seems to solve the problem above and remove a weird java stack trace. Is it a requirement to run a compilation before generating a report?
hello all, how do I convert
import EStyleSheet from 'react-native-extended-stylesheet';
to clojurescript
?I tried ["react-native-extended-stylesheet" :default EStyleSheet]
and it´s giving Can´t find variable EStyleSheet
@thheller would you be interested in making the build cache aware of content of source files, instead of mod times? Tracking hashes in the cache perhaps? We are trying to keep our docker build self-contained and tracking file content would allow us to re-use the cache between docker builds.
https://github.com/thheller/shadow-cljs/issues/673 happy to help with a PR!
Is this meant to be the same:
shadow-cljs cljs-repl $BUILD_ID
(require '[shadow.cljs.devtools.api :as s])
(s/node-repl $BUILD_ID
I’m seeing some weird differences around :node
reader conditionals between those
specifically the CLI invocation properly gets a REPL that has :node
stuff read and the Clojure API one doesn’t
Oh just realizing that I’m using the API wrong
Hello, I am discovering shadow-cljs for a personal project. I use Emacs. I'm used to figwheel way of working. When there is a compilation error (for any reason), the completion in Emacs ceases to work. This makes coding quite painful. It's not the case in figwheel. Will it change in future versions? Thanks