This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-03
Channels
- # boot-dev (1)
- # cider (27)
- # cljsjs (6)
- # cljsrn (11)
- # clojure (249)
- # clojure-dusseldorf (1)
- # clojure-finland (1)
- # clojure-greece (1)
- # clojure-italy (28)
- # clojure-nl (12)
- # clojure-russia (2)
- # clojure-spec (5)
- # clojure-uk (27)
- # clojurescript (24)
- # clojutre (2)
- # component (8)
- # cryogen (1)
- # cursive (7)
- # datomic (61)
- # editors (18)
- # emacs (1)
- # events (1)
- # figwheel (4)
- # fulcro (35)
- # graphql (4)
- # jobs (3)
- # jobs-rus (1)
- # keechma (1)
- # leiningen (1)
- # london-clojurians (1)
- # luminus (62)
- # off-topic (154)
- # onyx (23)
- # pedestal (43)
- # portkey (66)
- # re-frame (49)
- # reagent (23)
- # shadow-cljs (92)
- # tools-deps (113)
- # uncomplicate (2)
after upgrading to the latest shadow, I can't start the compilation, getting:
[2018-05-03 02:09:34 - WARNING] HTTP startup failed
java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found
reverting to 2.2.18
works
@wilkerlucio are you using deps.edn
? if so you might need to upgrade that
the XNIO package is a :scope "runtime"
dep so older versions of tools.deps wouldn't pick that up. https://dev.clojure.org/jira/browse/TDEPS-26
@thheller thanks, that works
In order to manage the complexity of my projects,
Is there a way to the dependency graph (edited) of a src ? ie: to render graphs or as input for further analysis of code
tools.namespace doesn't like stuff like ["codemirror" :as codemirror]
.
thanks!
@steveb8n is working on https://github.com/stevebuik/Stu which wants to answer those questions
rendering a dependency tree is surprisingly difficult since it gets unreadable pretty fast
this is available today: https://clojureverse.org/t/help-wanted-release-bundle-size-visualization/871/11?u=thheller
but it only aims to answer the "why is my build so big?" question. it does not yet answer "why is this in there?"
Yeah, my goal is to get the "what is in there and who asked for it"
something like
, lein's plugin that lets me get a high level view of a project'.
yeah, something like that. > thought about building something like that. just don't have the time to do it. understandable! 😀 I am gonna see what i can do... that way i learn more of how shadow and the cljs compiler work too.
I am aiming at something interactive and queryable... maybe dump the graph into datascript and use some datalog visual query browser that i have somewhere from a project challenge + coffee
@thheller is there a way to instruct shadow-cljs which path it should use for the sources
entry in the source-map files? VS Code allows me to place breakpoints in my actual source files if I edit the source map. For instance for the message
module in Calva shadow puts calva/repl/message.cljs
in sources
. If I change that to ../../src/main/calva/repl/message.cljs
things start to work.
(I have :output-dir "out"
in my build config, which puts the generated files in out/cljs-runtime
)
The user guide lists :source-map-path
as unsupported or non-applicable. But maybe that is actually meant to point to where the source maps are…
:source-map-path
only applies to the browser context I think when you want to have source maps in a different path not matching :asset-path
For the browser, I am using the Chrome Debugger extension for Code and it has an option for rewriting paths. I haven’t figured it out, but I think it should be able to help.
I got some trouble running my code bundled with shadow-cljs in release mode. (code running on http://tabletwo.topix.im/ )
@jiyinyiyong which version?
Turned out I can still get two copies of window.shadow$provide
in my bundle, with 2.3.16
.
I guess the code should be just shadow$provide
, since it's defined with var
somewhere in the file.
@jiyinyiyong actually it is not fixed. sorry about that.
@jiyinyiyong 2.3.17
I switched my workflow to single bundles like in last months, or a little earlier. Just for convenience. I found myself gain no obvious benefit by splitting them(at least for now).
it's safe to not
npm install --save-dev shadow-cljs
if we're just using the jar and compiling to browser, right? seems to work (get a warning)the install is required for certain things (ie. babel
) so you definitely should always add it
I am having a weird problem getting CSS file watching to work with Windows, pretty sure I am screwing something up, but the source watching works fine, changes are compiled and pushed to my electron hosted app
but css doesn't, although the sass command that I run on file change, stages the file in the correct location (since hitting refresh loads the CSS changes)
I tried the :file-watch
option to switch to :polling
but I got an error about key (sorry can't seem to find that option to tell the exact error)
also found an issue where if you symlink node_modules to another folder, it doesn't build on shadow-cljs
doubtful that it is windows related given that I'm on windows myself. but I don't do any electron development so there might be something going on there.