This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-29
Channels
- # aws (3)
- # beginners (160)
- # boot (2)
- # bristol-clojurians (3)
- # cider (62)
- # cljs-dev (77)
- # cljsrn (15)
- # clojure (147)
- # clojure-brasil (10)
- # clojure-dusseldorf (2)
- # clojure-gamedev (1)
- # clojure-italy (128)
- # clojure-russia (1)
- # clojure-spec (19)
- # clojure-uk (34)
- # clojurescript (408)
- # code-reviews (2)
- # component (1)
- # core-async (56)
- # cursive (1)
- # datascript (1)
- # datomic (81)
- # emacs (11)
- # fulcro (39)
- # java (16)
- # jobs (3)
- # lein-figwheel (2)
- # leiningen (6)
- # lumo (89)
- # off-topic (11)
- # om (2)
- # om-next (1)
- # onyx (17)
- # parinfer (4)
- # pedestal (3)
- # perun (1)
- # quil (3)
- # re-frame (19)
- # reagent (8)
- # reitit (5)
- # remote-jobs (5)
- # shadow-cljs (145)
- # spacemacs (1)
- # sql (7)
- # test-check (15)
- # uncomplicate (1)
- # unrepl (122)
- # vim (2)
- # yada (4)
10:53:53.250 [XNIO-5 task-8] ERROR io.undertow.request - UT005071: Undertow request failed HttpServerExchange{ GET /release-snapshots/app/latest request {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8], Accept-Language=[nl-NL,nl;q=0.9,en-NL;q=0.8,en;q=0.7,en-US;q=0.6], Cache-Control=[max-age=0], Accept-Encoding=[gzip, deflate, br], User-Agent=[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36], Connection=[keep-alive], Cookie=[_okbk=vi3%3Dinactive%2Ccd4%3Dtrue%2Cvi5%3D0%2Cvi4%3D1505836096585%2Cvi2%3Dfalse%2Cvi1%3Dfalse%2Ccd8%3Dchat%2Ccd6%3D0%2Ccd5%3Daway%2Ccd3%3Dfalse%2Ccd2%3D0%2Ccd1%3D0%2C; _ok=1700-237-10-3483; ring-session=1499777936043; _okdetect=%7B%22token%22%3A%2214837138200590%22%2C%22proto%22%3A%22http%3A%22%2C%22host%22%3A%22localhost%3A4040%22%7D; org.cups.sid=0ab9c463b9384ae47f668da6ac4cd702; olfsk=olfsk467559086084683; wcsid=bxjbgsCgQGydcOdD3m39N0N80JEr4BH2; _ga=GA1.1.1242069313.1495026997; hblid=BLdYcEe25b7HnC1K3m39NQDYCOR30OE6; _oklv=1505836580733%2CbxjbgsCgQGydcOdD3m39N0N80JEr4BH2], Upgrade-Insecure-Requests=[1], Host=[localhost:9630]} response {}} { }
java.lang.RuntimeException: Map literal must contain an even number of forms
at clojure.lang.Util.runtimeException(Util.java:221)
at clojure.lang.EdnReader$MapReader.invoke(EdnReader.java:682)
at clojure.lang.EdnReader.readDelimitedList(EdnReader.java:757)
at clojure.lang.EdnReader$MapReader.invoke(EdnReader.java:680)
at clojure.lang.EdnReader.readDelimitedList(EdnReader.java:757)
at clojure.lang.EdnReader$VectorReader.invoke(EdnReader.java:672)
at clojure.lang.EdnReader.readDelimitedList(EdnReader.java:757)
at clojure.lang.EdnReader$MapReader.invoke(EdnReader.java:680)
at clojure.lang.EdnReader.read(EdnReader.java:145)
at clojure.lang.EdnReader.read(EdnReader.java:111)
at clojure.lang.EdnReader.readString(EdnReader.java:67)
at clojure.edn$read_string.invokeStatic(edn.clj:46)
at clojure.edn$read_string.invokeStatic(edn.clj:37)
at clojure.edn$read_string.invoke(edn.clj:37)
at shadow.cljs.devtools.server.web.release_snapshots$info_page.invokeStatic(release_snapshots.clj:41)
at shadow.cljs.devtools.server.web.release_snapshots$info_page.invoke(release_snapshots.clj:33)
at clojure.lang.AFn.applyToHelper(AFn.java:160)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$apply.invoke(core.clj:652)
at shadow.http.router$call_handler.invokeStatic(router.clj:12)
at shadow.http.router$call_handler.invoke(router.clj:11)
at shadow.cljs.devtools.server.web.release_snapshots$root.invokeStatic(release_snapshots.clj:55)
at shadow.cljs.devtools.server.web.release_snapshots$root.invoke(release_snapshots.clj:54)
at clojure.lang.AFn.applyToHelper(AFn.java:154)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$apply.invoke(core.clj:652)
at shadow.http.router$call_handler.invokeStatic(router.clj:12)
at shadow.http.router$call_handler.invoke(router.clj:11)
at shadow.cljs.devtools.server.web$root.invokeStatic(web.clj:160)
at shadow.cljs.devtools.server.web$root.invoke(web.clj:159)
at shadow.cljs.devtools.server$get_ring_handler$fn__56432.invoke(server.clj:60)
at ring.middleware.resource$wrap_resource$fn__14079.invoke(resource.clj:37)
at ring.middleware.resource$wrap_resource$fn__14079.invoke(resource.clj:37)
at ring.middleware.params$wrap_params$fn__14063.invoke(params.clj:67)
at shadow.cljs.devtools.server.ring_gzip$wrap_gzip$fn__56057.invoke(ring_gzip.clj:94)
at shadow.undertow$ring_STAR_$reify__56143.handleRequest(undertow.clj:27)
Oh no this is after: (shadow.cljs.devtools.api/release-snapshot :app {})
Aah ok
Sorry for the noise 😛
.shadow-cljs/release-snapshots/app/latest/bundle-info.edn
probably contains elided forms
for now try (binding [*print-length* 0] (shadow.cljs.devtools.api/release-snapshot :app {}))
that also breaks it right? print-length 0
Ah that might be the case
I made it 999999999 😛
Nice this works
Hello everybody
I want to thank shadow-cljs developers a big thank for the easiest cljs tool to use
I think the only downside the tool has is it's website,it seems to be focused on browser environments or browser targeted apps, while this is not true. I was looking for building some node-cljs scripts and I first discarded shadow-cljs for this regard
@rdanielo welcome. yeah the docs are a constant work in progress. can't document everything at once since it does so much.
I can understand that. To be honest, docs are very good. The only thing I'm missing is a simple but clear statement saying: you can use this tool with node-js as target, here is the example project: link
Because everything is already in place: node-js target documentation, node-js project examples, but there is no mention on the main readme
When using re-frame-10x, I’m supposed to add a line to :closure-defines. What is the equivalent for shadow?
@jmckitrick :closure-defines {re-frame.trace/trace-enabled? true}
in your build config
Oh, same thing? ok
@thheller are you the author of shadow-cljs ?
I want to thank you for thinking out of the box and making a non strictly js tool available through npm
I think npm it is an impressive distribution system
and I used it to deploy all kind of stuff, including interactive documentation and general scripts, glad to see that a JVM based tool get into it too
wasn't my idea. copied it from https://github.com/cljs/tool but it makes total sense in a CLJS setting
Absolutely, it was the most straighforward installation I experienced in the cljs world
One simple question
How can I reload a file on the REPL once it has been re-built ?
I am targeting node repl
I think dnolen talked about some bug with :reload or :reload-all, either or, or both (in clojurescript environment)
no thats just me. not using the related CLJS code so if there is a bug in that as well its purely coincidental
That's sad
So reload-all does not work neither ?
One question, after a couple of iterations the REPL become slow and arrow keys are not working, so I can not take advantage of history
Anyone knows a reason ?
Mmm, seems to be a problem with VSCode integrated terminals
What a pitty
Which editor do you use, which is not emacs
Awesome. Can I reload all the already loaded files ?
But that will only require that file
I want to reload the entire project
Does that mean that it works ?
What is so cool about rlwrap ? Seems to be used on many cljs and haskell projects
@lee.justin.m does cursive require an intellij license ?
Is this the proper way to declare deps on shadow ? :dependencies [:binaryage/oops "0.5.8"]
Ahh, that's the point
Thanks @thheller, deps works now
Has anyone being able to connect lighttable to a shadow repl ?
shadow-cljs - server running at
shadow-cljs - socket repl running at localhost:49898
shadow-cljs - nREPL server started on port 49900
Damn, how many sockets does this open ?Should I use the nREPL one for ide integrations ?
it has an option to connect to a remote clojure REPL through nREPL
So I guess the third one is the correct option
Does this error Worker shutdown.
mean that I have to restart the server process ?
REPL became non-responsive
I had to reload the repl, force stop and then start it again
Can this be related with js interop ? ` [{:type clojure.lang.ExceptionInfo :message "failed to parse ns require"` I'm using the latest version
files are
(ns rancher-cli.core
(:require
[cljs.nodejs :as nodejs]
[rancher-cli.request :as req]))
(ns rancher-cli.request
(:require [cljs.nodejs :as nodejs]
[request :as req]))
and I ust did (require 'rancher-cli.core)
on the repl
but before I tried
(in-ns 'rancher-cli.core)
I got that making a require after making the in-ns first
So maybe I screw things up with that
if you are in light-table and you evaluate the whole file with ctrl+enter, you are effectively doing the same thing as require-ing a file
Nope, it's an npm library
Hi, do you have project to suggest as a starting point for developing with shadow-cljs ?
ah ok, npm library has special syntax in clojurescript, you would need quotation marks ""
It was working before without quotation marks
@hlolli are you using lightabe? How do you connect it to the repl?
It was working before without quotation marks
if that worked, it probably never got evaluated, except you have a cljs file called request
lurking in your root directory
Does that mean that it works ?
I have a file called request on my directory, and it's there where I do the request
Rebooting the server and the repl worked
It is now working with your syntax
But I think it would work too without quotes
I did not find any reference to what you are saying, I mean about using quotes
Oops, new error appeared, hahaha
[1:1]~rancher-cli.core=> (require 'rancher-cli.core :reload)
[:result {:type :repl/error, :ex #error {
:cause "Circular dependency detected: rancher-cli.core -> rancher-cli.core"
:data {:tag :shadow.build.resolve/circular-dependency, :resource-id [:shadow.build.classpath/resource "rancher_cli/core.cljs"], :path [rancher-cli.core rancher-cli.core], :stack [[:shadow.build.classpath/resource "rancher_cli/core.cljs"]]}
I'm pretty sure I don't have circular deps, well, I had loaded that namespace with in-ns
so maybe that was the problem@geraldodev which kind of project are you interested at ? node ? browser ?
@mynomoto it appears zprint.main
has (:gen-class)
in its ns
. this means it can't be loaded as CLJS. don't worry about it though unless you were actually planning on using that.
no I was talking to you @rdanielo, all these default slack profile pics are confuseing me who is who 🙂 I'm also bit burnt out after this week.
@thheller thanks, I'm not using it! I have problems ignoring stacktraces but will do my best 😉
Yes, I agree, I'll update my avatar
@hlolli no, I am not using re-frame. My error about the circular dependency solved by moving to a different namespace, making the require from there and then moving to the original namespace again
Sorry to hear that you're burned out
[:browser] Build failure:
The required namespace "cljsjs.react-highlight" is not available, it was required by "day8/re_frame_10x/view/components.cljs".
This one seems to be a real error.Should I create a PR on https://github.com/thheller/shadow-cljsjs ?
Great, will do. I'm kind of regreting the packages that I added on cljsjs now :thinking_face:
Is there a table somewhere of how the js thing is exported and how to require it from cljs?
@mynomoto you mean the table in this section of the guide? https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages
@lee.justin.m that's the one, thanks! My search abilities are failing right now...
So in the rabbit hole of highlight, how do I create a cljsjs shim for https://github.com/isagalaev/highlight.js/blob/master/src/languages/clojure.js ?
I think I solved the above problem but got a new one:
The required namespace "mranderson047.reagent.v0v8v0_alpha2.reagent.core" is not available, it was required by "day8/re_frame_10x/view/event.cljs".
"mranderson047/reagent/v0v8v0_alpha2/reagent/core.clj" was found on the classpath. Should this be a .cljs file?
There is a clj and a cljs file with the same name.@rdanielo browser