This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-25
Channels
- # announcements (3)
- # aws (6)
- # beginners (143)
- # boot (14)
- # calva (2)
- # cider (1)
- # clara (1)
- # clj-kondo (1)
- # cljdoc (4)
- # cljs-dev (50)
- # cljsrn (5)
- # clojure (61)
- # clojure-chicago (1)
- # clojure-europe (4)
- # clojure-italy (5)
- # clojure-nl (5)
- # clojure-spec (32)
- # clojure-uk (11)
- # clojurescript (166)
- # clojureverse-ops (2)
- # clr (3)
- # core-typed (1)
- # cursive (8)
- # datomic (21)
- # defnpodcast (1)
- # emacs (1)
- # figwheel (1)
- # figwheel-main (1)
- # fulcro (7)
- # graphql (7)
- # jobs (8)
- # leiningen (4)
- # luminus (3)
- # lumo (17)
- # mount (3)
- # nrepl (4)
- # off-topic (113)
- # pedestal (1)
- # re-frame (15)
- # reagent (2)
- # reitit (2)
- # shadow-cljs (75)
- # spacemacs (3)
- # sql (12)
- # tools-deps (44)
- # uncomplicate (2)
- # xtdb (15)
I’m developing an add-in for Excel. I’m currently on Mac, so my JS runtime appears to be an embedded Safari. When I load the page in Excel, Shadow tells me there was a websocket error. This is the only thing in the logs:
shadow-cljs: websocket error – Event
Selected Element
<html>…</html>
Any ideas on how to troubleshoot this?
Oh, this may be important: I’m serving the app over a different http server that’s using SSL (not using the built in shadow server)
Problem solved (or, sidestepped, anyway). I found out I didn’t need https in the first place. When served over http with shadows built in server, everything works fine.
yeah if you serve over https you need to configure https for the shadow-cljs server as well
Goodday everybody, I am working on getting my tests running automatically on every change. The combintaion of shadow-cljs watch test
and a :autorun true
should allow for test to run automatically no? After rebuid
@thheller yes I am using this, but no autotest on change. Now configured with an npm watch. Tried many combinations but did not succeed. The test do not run on a shadow-cljs watch test
output may be going to the wrong process if you have a shadow-cljs server
instance running
@souenzzo open the UI at http://localhost:9630
when upgrading from 2.8.3 to 2.8.33 I get a babel error on semantic-ui-react. I’ve tried pinning babel to the version in that library, but it doesn’t help…any ideas why this would break on this upgrade?
so it looks like .27 had some changes to configurability of babel…but I see no docs on it anywhere. Any suggestions on what options might fix it to work like .26?
I indeed upgraded babel to a newer version so totally possible that something that worked before doesn't work anymore
semantic-ui-react
compiles and loads fine for me so some more details are required:P
[:main] Compiling ...
/Users/tonykay/owsy/gondola-client/.shadow-cljs/babel-worker/babel-worker.js:3497
!0,Hg.Ya="cljs.core.async.impl.ioc-helpers/t_cljs$core$async$impl$ioc_helpers243717",Hg.Hb=function(b){return Vb(b,"cljs.core.async.impl.ioc-helpers/t_cljs$core$async$impl$ioc_helpers243717")};return new Hg(a,oe)}function Oi(a){try{var b=a[0];return b.l?b.l(a):b.call(null,a)}catch(c){if(c instanceof Object)throw b=c,a[6].qb(null),b;throw c;}}function Pi(a,b){b=Hi(b,Ni(function(c){a[2]=c;a[1]=4;return Oi(a)}));return z(b)?(a[2]=H(b),a[1]=4,vh):null}
^
TypeError: Invalid value used as weak map key
at WeakMap.set (<anonymous>)
at d (/Users/tonykay/owsy/gondola-client/.shadow-cljs/babel-worker/babel-worker.js:1790:192)
babel failed?
{:file "/Users/tonykay/owsy/gondola-client/node_modules/semantic-ui-react/dist/es/lib/AutoControlledComponent.js"}
I somehow doubt that this is related to the babel runtime since that is not what is compiling all of this
I'm having an interesting situation where a node script never exits despite clearly being done. But once I kill the shadow-cljs worker it exits.
And prints "REPL client disconnected"
package.json is
{
"dependencies": {
"keycloak-js": "^4.8.3",
"element-resize-detector": "^1.1.14",
"intl-messageformat": "^2.2.0",
"karma": "^4.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cljs-test": "^0.1.0",
"lodash": "^4.17.11",
"natives": "^1.1.6",
"raven-js": "^3.25.2",
"react": "^16.4.1",
"react-autocomplete": "^1.8.1",
"react-dom": "^16.4.1",
"react-icons": "^2.2.7",
"react-number-format": "^4.0.5",
"react-transition-group": "^2.2.1",
"reakit": "^0.11.2",
"semantic-ui": "^2.3.1",
"semantic-ui-react": "^0.85.0",
"shadow-cljs": "2.8.26",
"showdown": "^1.8.6"
}
}
@martinklepsch the websocket connection will keep the node process alive. set :devtools {:enabled false}
if you want your process to exit when done.
interestingly, there is this warning when using .26 of shadow (which works):
------ WARNING #1 - -----------------------------------------------------------
Resource: node_modules/semantic-ui-react/dist/es/lib/AutoControlledComponent.js:269:2
JSDoc annotations are not supported on return.
--------------------------------------------------------------------------------
@thheller thanks — what do I lose by disabling the devtools for a node script?
right — I do use the node repl a lot but I guess that will still work...
thanks for the quick answer, much appreciated 🙌
@tony.kay FWIW setting :js-options {:babel-preset-config {:safari 11}}
fixes it. checking why it fails without config.
is there a way to start the server & watch all the builds?
in one command
thanks!
there should maybe be a --all
switch or so. listing all the build ids may be tedious 😉