[ClojureScript] GMail code formatter

2016-06-14 Thread Alan Thompson
Just discovered a cool Chrome extension so that you can get proper syntax highlighting when pasting code into your email. It turns plain-old code into something nice to read: *Plain:* (defn truthy? "Returns true if arg is logical true (neither nil nor false); otherwise returns false." [arg]

[ClojureScript] Omission on ClojureScript Quick-Start on GH

2016-03-28 Thread Alan Thompson
Hi - Anybody here familiar with the CLJS QuickStart on github? I think I've found an omission. At the part about adding foo: (defn foo [a b] (+ a b)) it is missing the ":reload" in the (require ...). The missing ":reload" results in this at the repl: cljs.user=> (require

Re: [ClojureScript] Omission on ClojureScript Quick-Start on GH

2016-03-28 Thread Alan Thompson
PM, David Nolen <dnolen.li...@gmail.com> wrote: > > You should not need a `:reload` for the first one. Only the second one. If > that's no longer true there has been a regression and you should open a > JIRA ticket. > > On Mon, Mar 28, 2016 at 4:30 PM, Alan Thompson <cloo

[ClojureScript] Video of ClojureScript & Reagent

2016-04-12 Thread Alan Thompson
Hi - Just saw this nice introduction to ClojureScript and Reagent from the SF Reagent Meetup Group: https://youtu.be/DYzwfekWSzQ Enjoy, Alan -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed

[ClojureScript] Nice Om Tutorial

2016-04-11 Thread Alan Thompson
Hi - Just came across this nice 6-part tutorial on Om and thought I'd post a link. The 2nd half is especially good: https://blog.stephanbehnke.com/zero-to-om/ Enjoy! Alan -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message

Re: [ClojureScript] #{:ann} funcool/struct - yet another validation library for Clojure and ClojureScript.

2016-05-03 Thread Alan Thompson
Hi - Looks nice! Alan On Mon, May 2, 2016 at 11:11 PM, Andrey Antukh wrote: > Hi all. > > I am happy to announce the first public release of funcool/struct > validation library. > > https://github.com/funcool/struct > > Why an other? > > I have started on my project using well

Re: [ClojureScript] Re: Figwheel and Java 9 compatibility

2018-05-07 Thread Alan Thompson
.10, you need to add: >>> :jvm-opts ["--add-modules" "java.xml.bind"] >>> to your Leiningen config. >> >> >> that this kind of workaround will become unnecessary with ClojureScript >> 1.10. That does not seem to be the case. >> >>

Re: [ClojureScript] Re: Figwheel and Java 9 compatibility

2018-05-02 Thread Alan Thompson
on: > javax.xml.bind.DatatypeConverter, compiling:(org/httpkit/server.clj:1:1) > > at clojure.lang.Compiler.load(Compiler.java:7526) > > at clojure.lang.RT.loadResourceScript(RT.java:379) > > ... > > > Am Montag, 30. April 2018 02:46:34 UTC+2 schrieb Alan

Re: [ClojureScript] Re: Figwheel and Java 9 compatibility

2018-05-02 Thread Alan Thompson
xception: > javax.xml.bind.DatatypeConverter, compiling:(org/httpkit/server.clj:1:1) > > at clojure.lang.Compiler.load(Compiler.java:7526) > > at clojure.lang.RT.loadResourceScript(RT.java:379) > > ... > > > Am Montag, 30. April 2018 02:46:34 UTC+2 schrieb Alan

Re: [ClojureScript] Re: Figwheel and Java 9 compatibility

2018-05-03 Thread Alan Thompson
on > > java 9.0.1 > > Java(TM) SE Runtime Environment (build 9.0.1+11) > > Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode) > > Am Mittwoch, 2. Mai 2018 21:05:09 UTC+2 schrieb Alan Thompson: >> >> Can you verify versions for Java, Clojure, & Cloj

Re: [ClojureScript] Re: Figwheel and Java 9 compatibility

2018-05-03 Thread Alan Thompson
And what happens if you type `lein figwheel` ? On Thu, May 3, 2018 at 1:42 PM, Johannes <bra...@nordakademie.de> wrote: > > > Am Donnerstag, 3. Mai 2018 22:28:29 UTC+2 schrieb Alan Thompson: >> >> That looks good. Can you verify it matches what is in `project.clj`

Re: [ClojureScript] Re: Figwheel and Java 9 compatibility

2018-05-03 Thread Alan Thompson
es both http-kit and figwheel-sidecar/figwheel-server not sure who the culprit is (or clojurescript 1.10.238 ?) Alan On Thu, May 3, 2018 at 8:22 PM, Alan Thompson <clooj...@gmail.com> wrote: > Hmmm, OK, I just noticed I am on JVM 1.8. If I switch to java 9, I get > the same error a

Re: [ClojureScript] Importing react components from clojurescript

2018-08-20 Thread Alan Thompson
Meant to paste the URL: https://github.com/cloojure/cljs-template Alan On Mon, Aug 20, 2018 at 4:32 PM Alan Thompson wrote: > If you clone this template project it provides examples of 3 ways in > "import" native JS code into a CLJS project (see "dino.js" etc). &g

Re: [ClojureScript] Seeking advice on making HTTP requests from CLJS

2018-10-26 Thread Alan Thompson
Hi - Just learned about the Martian project this week. It sounds exactly like what you need. I'm looking forward to using it in future projects. Watch the video first. - Video: https://skillsmatter.com/skillscasts/8843-clojure-bytes#video - Blog post:

[ClojureScript] Plumatic Schema error in CLJS

2018-11-05 Thread Alan Thompson
Copied from the Clojure mailing list I am seeing the following errors in CLJS, but not in CLJ: ERROR in (dotest-line-695) (schema/core.js:33:64) expected: (clojure.core/= (t/thru 9) (t/glue-rows data)) actual: #object[Error Error: No

[ClojureScript] Re: Plumatic Schema error in CLJS

2018-11-05 Thread Alan Thompson
lojure hash-set or a java.util.HashSet" (s/either #{s/Any} *#?(:clj* java.util.HashSet*)*)) ; <= *This was missing the #?(:clj ...)* and caused the error On Mon, Nov 5, 2018 at 7:15 AM Alan Thompson wrote: > Copied from the Clojure mailing list >

[ClojureScript] Re: Plumatic Schema error in CLJS

2018-11-05 Thread Alan Thompson
to the offending file & line. In face, in this case it was caused by a chain of references across 4 files: tst.tupelo.core -> tupelo.core -> tupelo.impl -> tupelo.schema On Mon, Nov 5, 2018 at 7:15 AM Alan Thompson wrote: > OK, I found the cause of the error. In a dependent namespace,

Re: [ClojureScript] Clojurescript testing

2018-11-09 Thread Alan Thompson
13 directories, 12 files On Fri, Nov 9, 2018 at 2:17 PM Alan Thompson wrote: > I have a nice setup for CLJS testing using the `doo` test framework. It > can run tests either at the command line using `phantomjs` or in the > browser (eg Chrome). It has source and test dirs segregrat

Re: [ClojureScript] Clojurescript testing

2018-11-09 Thread Alan Thompson
├── css │ └── style.css ├── dino-externs.js ├── dino.js ├── index.html ├── js ├── libs │ └── wilma.js └── pebbles.js On Fri, Nov 9, 2018 at 2:18 PM Alan Thompson wrote: > You can see the source layout as follows: > > ~/expr/cljs-template > tree src t

Re: [ClojureScript] Clojurescript testing

2018-11-09 Thread Alan Thompson
I have a nice setup for CLJS testing using the `doo` test framework. It can run tests either at the command line using `phantomjs` or in the browser (eg Chrome). It has source and test dirs segregrated into `clj`, `cljc`, and `cljs` subdirs so you can get macros and dual-use code working

Re: [ClojureScript] figwheel-main vs headless chrome testing

2019-03-19 Thread Alan Thompson
Looks like the URL got garbled. Plain text: https://github.com/cloojure/cljs-template.git On Tue, Mar 19, 2019 at 8:16 PM Alan Thompson wrote: > Hi - Here is a template project that I've developed to showcase CLJS > testing and JS interop & testing. Just clone this repo:

Re: [ClojureScript] figwheel-main vs headless chrome testing

2019-03-19 Thread Alan Thompson
Hi - Here is a template project that I've developed to showcase CLJS testing and JS interop & testing. Just clone this repo: https://github.com/cloojure/cljs-template.git and follow the README to set up cljs tests (`lein test` for CLJ will work out of the box). It is based on the original

[ClojureScript] Figwheel build failure for CLJS 1.10.516: Error: Cannot find module '@cljs-oss/module-deps'

2019-02-12 Thread Alan Thompson
recated at line 13 resources/public/js/compiled/flintstones-dev/tupelo/schema.cljc ^C% Alan Thompson -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google

Re: [ClojureScript] [ANN] new Clojure(Script) Date/Time libraries based on java.time

2019-05-21 Thread Alan Thompson
Sounds great. I have often thought that something like this would be cool. Alan On Tue, May 21, 2019 at 5:24 AM Henry Widd wrote: > Hey everyone, > > > Java.time is a platform library which was introduced in Java 8 and is a > refinement of Joda Time (which the popular clj-time sits on). Now

[ClojureScript] Re: Figwheel.Main error trying to open cljs reload socket

2019-05-03 Thread Alan Thompson
Found it. Someone had left an old reference to `figwheel/watch-and-reload` lying around Doh! (figwheel/watch-and-reload ; #todo #awt needed? :websocket-url "ws://localhost:3449/figwheel-ws" :on-jsload mount-components) On Fri, May 3, 2019 at 4:00 PM Alan Thompson wrot

[ClojureScript] Figwheel.Main error trying to open cljs reload socket

2019-05-03 Thread Alan Thompson
Using figwheel-main, I am getting a strange error: Figwheel: trying to open cljs reload socket socket.cljs:71 WebSocket connection to 'ws://localhost:3449/figwheel-ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED As the error message implies, hot reloading doesn't work

[ClojureScript] Re: Figwheel.Main error trying to open cljs reload socket

2019-05-03 Thread Alan Thompson
@ eventtarget.js:284 goog.events.EventTarget.dispatchEventInternal_ @ eventtarget.js:381 goog.events.EventTarget.dispatchEvent @ eventtarget.js:196 goog.net.WebSocket.onMessage_ @ websocket.js:426 On Fri, May 3, 2019 at 3:49 PM Alan Thompson wrote: > Using figwheel-main, I am getting a strange er

[ClojureScript] Good Clojure article by Uncle Bob

2019-08-23 Thread Alan Thompson
Nicely sums up the advantages of Clojure: http://blog.cleancoder.com/uncle-bob/2019/08/22/WhyClojure.html -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript"

[ClojureScript] Love Letter to Clojure (by Gene Kim)

2019-10-11 Thread Alan Thompson
Thought this would be of interest: https://itrevolution.com/love-letter-to-clojure-part-1/ -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To

[ClojureScript] Excellent series of videos by Uncle Bob Martin

2020-04-28 Thread Alan Thompson
I think everyone can benefit from viewing this material: - Clean Code - pt 1 - Clean Code - pt 2 - Clean Code - pt 3 - Clean Code - pt 4 - Clean Code - pt 5

[ClojureScript] Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-10 Thread Alan Thompson
Hi. Just helped a colleague debug a vexing problem on a CLJS project using Figwheel.Main. If we do *`brew install clojure/tools/clojure`*, it works: ~/work/tmp810/xanadu > clj --help Version: *1.10.1.561* Usage: clojure [dep-opt*] [--] [init-opt*] [main-opt] [arg*] clj [dep-opt*]

[ClojureScript] Re: Classpath bug re Clojure 1.10.1.645 when using Figwheel.Main

2020-08-10 Thread Alan Thompson
P.S. There seems to be no *`clojure --version`* flag. Should this be added to the command line tool? On Mon, Aug 10, 2020 at 4:58 PM Alan Thompson wrote: > Hi. Just helped a colleague debug a vexing problem on a CLJS project > using Figwheel.Main. > > If we do *`brew install c