This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-24
Channels
- # aws (7)
- # aws-lambda (3)
- # beginners (65)
- # boot (43)
- # cider (7)
- # cljs-dev (12)
- # cljsrn (15)
- # clojure (284)
- # clojure-austin (32)
- # clojure-brasil (4)
- # clojure-dusseldorf (4)
- # clojure-germany (1)
- # clojure-italy (40)
- # clojure-spec (21)
- # clojure-uk (69)
- # clojurescript (97)
- # core-async (11)
- # cursive (19)
- # data-science (1)
- # datascript (6)
- # datomic (30)
- # dirac (2)
- # emacs (4)
- # events (2)
- # fulcro (76)
- # graphql (38)
- # juxt (1)
- # lein-figwheel (1)
- # leiningen (6)
- # luminus (4)
- # lumo (13)
- # mount (4)
- # off-topic (24)
- # om (28)
- # onyx (32)
- # other-languages (1)
- # parinfer (40)
- # pedestal (1)
- # portkey (47)
- # re-frame (21)
- # reagent (4)
- # ring (4)
- # ring-swagger (3)
- # rum (1)
- # shadow-cljs (115)
- # spacemacs (5)
- # sql (14)
- # unrepl (1)
- # yada (3)
hmm, it apperas that shadow-cljs servers remain running when terminal windows are closed? not sure which java
processes they are, they also don’t seem to respond to requests
also when i try to watch, it connects to server and then seems to hang:
mattpro:shadow-re-frame MattPro$ npx shadow-cljs watch browser
shadow-cljs - config: /Users/MattPro/Documents/sites2017/shadow-re-frame/shadow-cljs.edn version: 2.0.37
shadow-cljs - connected to server
[email protected]
fixes another issue related to npm requires with browser overrides
i will just force quit the rest of these processes. i started doing that and now i’m in a state where nothing works at all
mattpro:shadow-re-frame MattPro$ npx shadow-cljs watch browser
shadow-cljs - config: /Users/MattPro/Documents/sites2017/shadow-re-frame/shadow-cljs.edn version: 2.0.39
events.js:163
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED 127.0.0.1:58762
at Object.exports._errnoException (util.js:1034:11)
at exports._exceptionWithHostPort (util.js:1057:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1096:14)
when i force quit the java process then immediately the browser’s hung request stops and says “ERR_CONNECTION_REFUSED”
2.0.39 with maria:
[:live] Build failure:
NullPointerException:
clojure.lang.Reflector.invokeNoArgInstanceMember (Reflector.java:301)
shadow.build.npm/find-package-json (npm.clj:78)
shadow.build.npm/find-package-json (npm.clj:77)
shadow.build.npm/find-package-for-file (npm.clj:90)
shadow.build.npm/find-package-for-file (npm.clj:89)
shadow.build.npm/find-resource* (npm.clj:604)
shadow.build.npm/find-resource* (npm.clj:592)
shadow.build.npm/find-resource (npm.clj:670)
shadow.build.npm/find-resource (npm.clj:652)
shadow.build.resolve/fn--20914 (resolve.clj:81)
shadow.build.resolve/fn--20914 (resolve.clj:78)
clojure.lang.MultiFn.invoke (MultiFn.java:238)
shadow.build.resolve/find-resource-for-symbol (resolve.clj:191)
shadow.build.resolve/find-resource-for-symbol (resolve.clj:157)
shadow.build.resolve/resolve-symbol-require (resolve.clj:205)
shadow.build.resolve/resolve-symbol-require (resolve.clj:201)
shadow.build.resolve/resolve-require (resolve.clj:235)
shadow.build.resolve/resolve-require (resolve.clj:231)
shadow.build.resolve/resolve-deps/fn--20895 (resolve.clj:56)
clojure.lang.PersistentVector.reduce (PersistentVector.java:341)
clojure.core/reduce (core.clj:6752)
clojure.core/reduce (core.clj:6735)
seems like I need to restructure my whole CLI script just to fix those damn orphan java processes
var cp = require("child_process");
cp.spawnSync("java", ["-cp", "../target/classes", "Test"], {stdio: "inherit"});
hmm, somehow an error like this doesn’t display the filename alongside the error:
[:bootstrap] Build failure:
Invalid namespace declaration
In: [2] val: ((:require [clojure.walk :refer :all] [thi.ng.dstruct.core :as d] [thi.ng.xerror.core :as err])) fails spec: :shadow.build.ns-form/ns-form predicate: (cat :docstring (? string?) :meta (? map?) :clauses :shadow.build.ns-form/ns-clauses), Extra input
yeah i am hoping that those will get better. https://github.com/bhb/expound/ looks interesting.
i know you’re busy with the process stuff now, just making note of this bootstrap thing i’m trying to get to work
after that ns
related error led me to thi.ng.geom.core.macros.vector
, non-selfhost-friendly macros namespace, so I put that in :exclude. then it fails with this math namespace.
Retrieving org/clojure/clojurescript/0.0-3117/clojurescript-0.0-3117.pom from central
yeah it is a bit old. but karsten has written some really good and high performance stuff
m i just added [thi.ng.geom.svg.core :as svg]
to the require of an entry that was in bootstrap
i did it in the shadow-bootstrap-example, just added [
to deps plus that require
[:bootstrap-support] Compiling ...
failed to inspect cljs file: jar:file:/Users/zilence/.m2/repository/thi/ng/geom-core/0.0.908/geom-core-0.0.908.jar!/thi/ng/geom/core/macros/vector.clj
Invalid namespace declaration
In: [2] val: ((:require [clojure.walk :refer :all] [thi.ng.dstruct.core :as d] [thi.ng.xerror.core :as err])) fails spec: :shadow.build.ns-form/ns-form predicate: (cat :docstring (? string?) :meta (? map?) :clauses :shadow.build.ns-form/ns-clauses), Extra input
-- Syntax error -------------------
Value has extra input
(... ... (:require
[clojure.walk :refer :all]
[thi.ng.dstruct.core :as d]
[thi.ng.xerror.core :as err]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-- Relevant specs -------
:shadow.build.ns-form/ns-form:
(clojure.spec.alpha/cat
:ns
'#{clojure.core/ns}
:name
clojure.core/simple-symbol?
:docstring
(clojure.spec.alpha/? clojure.core/string?)
:meta
(clojure.spec.alpha/? clojure.core/map?)
:clauses
:shadow.build.ns-form/ns-clauses)
-------------------------
Detected 1 error
I think he has an ongoing complaint that clojure does not pay enough attention to performance ’cause lots of his work demands it.
Closure compilation failed with 1 errors
--- EXTERNS:/Users/MattPro/.m2/repository/cljsjs/d3/4.2.2-0/d3-4.2.2-0.jar!/cljsjs/d3/common/d3.ext.js:670
Object literal contains illegal duplicate key "scaleSequential", disallowed in strict mode
have you had an issue where shadow doesn’t recognize changed versions in shadow-cljs.edn?
i’m compiling a debugging-oriented thing in :advanced mode, so its just a bunch of weird things
found this package https://www.npmjs.com/package/signal-exit
var onExit = require('signal-exit')
onExit(function (code, signal) {
console.log('process exited!')
})
Shaun just ran into a unicode problem I have never seen before as well … and also didn’t happen when tested inside the shadow-cljs project