This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-14
Channels
- # announcements (1)
- # beginners (206)
- # calva (2)
- # cider (64)
- # cljs-dev (12)
- # clojars (2)
- # clojure (177)
- # clojure-europe (2)
- # clojure-finland (1)
- # clojure-italy (2)
- # clojure-losangeles (5)
- # clojure-nl (7)
- # clojure-russia (69)
- # clojure-spec (41)
- # clojure-uk (92)
- # clojurescript (60)
- # core-async (16)
- # cursive (48)
- # data-science (6)
- # datomic (73)
- # duct (5)
- # events (2)
- # figwheel-main (5)
- # fulcro (29)
- # hoplon (1)
- # off-topic (52)
- # pathom (11)
- # reagent (4)
- # reitit (5)
- # remote-jobs (1)
- # rum (7)
- # shadow-cljs (58)
- # slack-help (10)
- # spacemacs (3)
- # testing (3)
- # tools-deps (5)
@thheller This is so awesome! Thankyou!
@thheller Now that we have a self-host mode in shadow probably this needs to be fixed https://github.com/thheller/shadow-cljs/blob/483a25b522895225b63321e39bbc081dfba8c58b/src/main/shadow/build/closure.clj#L603
if anything ever calls goog.nodeGlobalRequire
it is because of a bug that needs to be fixed
well i would want to call load-file which calls this.
hi, with latest cider-nrepl
, I get this when using shadow-cljs watch
:
[2019-02-14 09:49:48.486 - WARNING] :shadow.cljs.devtools.server/nrepl-ex
Note: The following stack trace applies to the reader or compiler, your code was not executed.
CompilerException Syntax error compiling at (cider/nrepl.clj:1:1). #:clojure.error{:phase :compile-syntax-check, :line 1, :column 1, :source "cider/nrepl.clj"}
clojure.lang.Compiler.load (Compiler.java:7647)
clojure.lang.RT.loadResourceScript (RT.java:381)
clojure.lang.RT.loadResourceScript (RT.java:372)
clojure.lang.RT.load (RT.java:463)
clojure.lang.RT.load (RT.java:428)
clojure.core/load/fn--6824 (core.clj:6126)
clojure.core/load (core.clj:6125)
clojure.core/load (core.clj:6109)
clojure.core/load-one (core.clj:5908)
clojure.core/load-one (core.clj:5903)
clojure.core/load-lib/fn--6765 (core.clj:5948)
clojure.core/load-lib (core.clj:5947)
Caused by:
FileNotFoundException Could not locate nrepl/middleware/caught__init.class, nrepl/middleware/caught.clj or nrepl/middleware/caught.cljc on classpath.
clojure.lang.RT.load (RT.java:466)
clojure.lang.RT.load (RT.java:428)
clojure.core/load/fn--6824 (core.clj:6126)
clojure.core/load (core.clj:6125)
clojure.core/load (core.clj:6109)
clojure.core/load-one (core.clj:5908)
clojure.core/load-one (core.clj:5903)
clojure.core/load-lib/fn--6765 (core.clj:5948)
clojure.core/load-lib (core.clj:5947)
clojure.core/load-lib (core.clj:5928)
clojure.core/apply (core.clj:667)
clojure.core/load-libs (core.clj:5985)
shadow-cljs is using clojure 1.10 now. guess there is something in the ns form that it doesn't like anymore?
Seems like a nrepl issue
@thheller There is a nodeGlobalRequire implementation here https://github.com/clojure/clojurescript/blob/9a8196ebfe4265feda88a06de84affb9df469012/src/main/cljs/cljs/bootstrap_nodejs.js
@metacritical yes I know that. nodeGlobalRequire
is bad and should not be used
So i should just manually load a cljs file in bootstrapped env and eval it?
aah that makes sense.!
maybe it is used by something internally. I don't know but you definitely cannot use it to load .cljs
files
That is helpful i would do a custom load file then. Thanks a lot!
works now, thank you. I only get this warning:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by mranderson048.orchard.v0v3v0.dynapath.v0v2v5.dynapath.defaults$eval8306$fn__8307 to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of mranderson048.orchard.v0v3v0.dynapath.v0v2v5.dynapath.defaults$eval8306$fn__8307
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
I just pushed 2.7.35
with new logic for the built-in development HTTP servers. Old configs should still work so no changes required (unless you want to). Please let me know if something breaks in your dev setups. https://shadow-cljs.github.io/docs/UsersGuide.html#dev-http
@thheller trying this out now. my push-state routes donโt seem to be working, I have :dev-http {8701 "public"}
- localhost:8701/
loads my index.html file from /public
correctly, but localhost:8701/intro
gives me Not found. Missing index.html.
@manuel I saw your woes too late. M-x cider-jack-in-clojurescript
adds the correct -d nrepl:0.6.0
for you. The jack-in-X commands have gotten very good (in my experience) lately
WoW three minor version number bumped in a day.
Slack Driven Development actually works.
@thheller how far along are you with doing a simple Gatsby JS clone / SSR story. Last I remember you were going to use Fulcro? Iโm growing interested in Fulcro and also prefer not to do redundant work. So if there is a repo to watch I would love to know :)
no time to work on anything related to that. others have done SSR with fulcro and pathom would make hooking up some kind of storage trivial
is there a trusted deps.edn
and shadow-cljs
docker container folks use?