[ClojureScript] [ANN] konserve 0.3.0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I am happy to announce the release of version 0.3.0 of konserve, a clojuresque durable key-value/document store protocol with core.async. Most importantly serialization protocols are now factored as a protocol with implementations for Fressian, Transit and pr-str/read-string. The protocols are also now wrapped by real clojure functions. For more details have a look at: https://github.com/replikativ/konserve I have also updated the CouchDB backend: https://github.com/whilo/konserve-couch Feedback is (as always) appreciated, Christian -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBAgAGBQJWSfz6AAoJEKel+aujRZMkkkcH/2oJGiMrbEPZL1SmjEHisiBO F1vGg2QJYpUOpP/CxxtT7EC8n/BcixnlsGM/FdqcHfB3l/2Liit8aSUD9hCWJW8N Pas5+EFdOtfD73nc4B5CfDuDo+y+EIlExvktbi3ljnuKVRuZ/X6fG7FBX6+tlhBg itKDrRZYXs9UIA/N/MRoPHeTvs76XBzLsNo2k+FMRIcUe6pu6D/Chdc5klXDKbfc fyoPi9s9ZuoBCn0xfpSxum+39LODoREjgr7Wxv44vDDSXayEnMkETZLDPj61rxHb A960OMXVOXsUpSIRVaU0UJRpmZIm7IcFc3Olwu+6YJbSQhMq7BXohqAQPSoe15U= =8ZEp -END PGP SIGNATURE- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.
Re: [ClojureScript] Re: ANN: ClojureScript 1.7.170, Enhanced Build Pipeline
Can someone explain why it's necessary to manually add a dependency on clojurescript in the :plugins vector? :plugins [[lein-figwheel "0.5.0-SNAPSHOT"] [org.clojure/clojurescript "1.7.170"]] ;; Overrides broken lein-figwheel dependency. Shouldn't the version of ClojureScript specified in :dependencies always be used? On Wed, Nov 11, 2015 at 3:18 AM Andreas Liljeqvist wrote: > Works without problem with boot-cljs. > Roughly 20% decrease in compilation time. > > Great work. > > On Mon, Nov 9, 2015 at 7:24 PM Francis Avila wrote: > >> Debug dependency problems with `lein deps :plugin-tree` and `:tree`. >> These show you what your actual dependencies are and why. >> >> Sent from my iPhone >> >> On Nov 9, 2015, at 12:15 PM, David Nolen wrote: >> >> It appears one of your dependencies is pulling in an older version of >> Clojure. >> >> David >> >> On Mon, Nov 9, 2015 at 11:03 AM, David Petrovics >> wrote: >> >>> Hi Francis, >>> >>> I tried figwheel 0.5.0-SNAPSHOT, got the (No such var: ana/forms-seq*) >>> exception, then added [org.clojure/clojurescript "1.7.170"] to the plugins >>> and am now seeing: >>> >>> java.io.FileNotFoundException: Could not locate >>> cljs/analyzer__init.class or cljs/analyzer.clj on classpath: , >>> compiling:(figwheel_sidecar/utils.clj:1:1) >>> >>> I'm on [lein-cljsbuild "1.1.1"], [org.clojure/clojurescript "1.7.170"], >>> [org.clojure/clojure "1.7.0"], [org.omcljs/om >>> "0.8.8"], [lein-figwheel "0.5.0-SNAPSHOT"] >>> >>> Thanks! >>> >>> On Saturday, November 7, 2015 at 5:44:03 AM UTC-5, Francis Avila wrote: >>> > For future travelers. >>> > >>> > If you use figwheel 0.5.0-SNAPSHOT you will get this exception: >>> > >>> > >>> > clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: >>> No such var: ana/forms-seq*, compiling:(figwheel_sidecar/utils.clj:49:21) >>> > >>> > figwheel 0.5.0-SNAPSHOT has a dependency on cljs 1.7.145 even though >>> it needs 1.7.170. >>> > >>> > To resolve this error you must explicitly depend on clojurescript in >>> your plugins. Example: >>> > >>> > :plugins [[lein-figwheel "0.5.0-SNAPSHOT"] >>> > [org.clojure/clojurescript "1.7.170"]] ;; Overrides broken >>> lein-figwheel dependency. >>> > >>> > lein deps :tree shows cljs 1.7.170 is used. >>> > >>> > So, >>> > >>> > >>> > >>> > On Saturday, November 7, 2015 at 3:30:05 AM UTC-6, Maria Geller wrote: >>> > > Try using 0.5.0-SNAPSHOT for figwheel ;) >>> > > >>> > > On Saturday, November 7, 2015 at 9:59:24 PM UTC+13, Francis Avila >>> wrote:I'm getting the following exception with figwheel builds (using >>> 0.4.1): >>> > > >>> > > >>> > > >>> > > java.lang.AbstractMethodError: Method >>> clojurescript_build/core/CompilableSourcePaths._find_sources(Ljava/lang/Object;)Ljava/lang/Object; >>> is abstract >>> > > >>> > > at clojurescript_build.core.CompilableSourcePaths._find_sources >>> (core.clj:-1) >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > (cljsbuild works fine with version 1.1.1) >>> > > >>> > > >>> > > >>> > > Nolan said "All the mentioned tools [inc. figwheel] have already >>> accounted for this change." I don't see any mention in the figwheel docs >>> about cljs 1.7.170 compatibility or any commit message that mentions it. >>> Can anyone confirm this is actually true for figwheel? >>> > > >>> > > >>> > > >>> > > On Friday, November 6, 2015 at 6:05:19 AM UTC-6, David Nolen wrote: >>> > > >>> > > > ClojureScript, the Clojure compiler that emits JavaScript source >>> code. >>> > > >>> > > > >>> > > >>> > > > >>> > > >>> > > > README and source code: https://github.com/clojure/clojurescript >>> > > >>> > > > >>> > > >>> > > > >>> > > >>> > > > Leiningen dependency information: >>> > > >>> > > > >>> > > >>> > > > >>> > > >>> > > > [org.clojure/clojurescript "1.7.170"] >>> > > >>> > > > >>> > > >>> > > > >>> > > >>> > > > This release includes a major refactor of the build pipeline >>> thanks to >>> > > >>> > > > Juho Teperi. This change along with some greatly simplified >>> > > >>> > > > recompilation logic will mean much faster cold build times for >>> larger >>> > > >>> > > > projects (some users have already reported >10X). >>> > > >>> > > > >>> > > >>> > > > >>> > > >>> > > > This is a breaking change for existing tooling. You will need to >>> > > >>> > > > upgrade lein-cljsbuild, lein-figwheel, and boot-cljs if you intend >>> to >>> > > >>> > > > adopt this version of ClojureScript. All the mentioned tools have >>> > > >>> > > > already accounted for this change. Refer to the appropriate >>> > > >>> > > > documentation for your tooling to determine which version number >>> you >>> > > >>> > > > should adopt. >>> > > >>> > > > >>> > > >>> > > > >>> > > >>> > > > Other interesting changes and fixes include newer Google Closure >>> > > >>> > > > Compiler and Library dependencies, self hosting tweaks, a Google >>> > > >>> > > > Closure modules (:modules compiler option) regression, >>> > > >>> > > > improved warnings, and minor REPL
[ClojureScript] Re: [Om] Getting component owner
thanks so much for this! `(.. _ -props -children -owner)` saved my pants. in the om api docs, there's a distinction between an "Om component" and a "backing Om component" with phrasing that's subtle on a first pass. elsewhere, i've read -- and, in fact, it's true -- that "the backing Om component usually referred to as the owner" is a "real React component", and i find the latter phrase clearer. i think part of the reason that this doesn't come up as often is that it's suggested that inter-component communcation in om be done by means of channels. or more generally, although om wraps react, 1-1 translations of js with react to cljs with om don't always make sense. still, this get-owner is a very helpful utility function. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.
Re: [ClojureScript] Re: ANN: ClojureScript 1.7.170, Enhanced Build Pipeline
FYI since this was written lein-figwheel 0.5.0 (not snapshot) was released which fixes this dependency problem, so specifying cljs manually in :plugins is no longer necessary. I imagine the figwheel snapshot was somehow either running the compiler in the wrong environment (i.e. the leinigen plugin process instead of the project process), or was rewriting the project process's dependencies incorrectly before running itself in the project context. On Monday, November 16, 2015 at 3:14:46 PM UTC-6, Daniel Compton wrote: > Can someone explain why it's necessary to manually add a dependency on > clojurescript in the :plugins vector? > > > :plugins [[lein-figwheel "0.5.0-SNAPSHOT"] > [org.clojure/clojurescript "1.7.170"]] ;; Overrides broken > lein-figwheel dependency. > > > Shouldn't the version of ClojureScript specified in :dependencies always be > used? > > > On Wed, Nov 11, 2015 at 3:18 AM Andreas Liljeqvist wrote: > > Works without problem with boot-cljs. > Roughly 20% decrease in compilation time. > > > Great work. > > > On Mon, Nov 9, 2015 at 7:24 PM Francis Avila wrote: > > > Debug dependency problems with `lein deps :plugin-tree` and `:tree`. These > show you what your actual dependencies are and why. > > Sent from my iPhone > > > On Nov 9, 2015, at 12:15 PM, David Nolen wrote: > > > > > It appears one of your dependencies is pulling in an older version of Clojure. > > > David > > > On Mon, Nov 9, 2015 at 11:03 AM, David Petrovics wrote: > Hi Francis, > > > > I tried figwheel 0.5.0-SNAPSHOT, got the (No such var: ana/forms-seq*) > exception, then added [org.clojure/clojurescript "1.7.170"] to the plugins > and am now seeing: > > > > java.io.FileNotFoundException: Could not locate cljs/analyzer__init.class or > cljs/analyzer.clj on classpath: , compiling:(figwheel_sidecar/utils.clj:1:1) > > > > I'm on [lein-cljsbuild "1.1.1"], [org.clojure/clojurescript "1.7.170"], > [org.clojure/clojure "1.7.0"], [org.omcljs/om "0.8.8"], > [lein-figwheel "0.5.0-SNAPSHOT"] > > > > Thanks! > > > > > > On Saturday, November 7, 2015 at 5:44:03 AM UTC-5, Francis Avila wrote: > > > For future travelers. > > > > > > If you use figwheel 0.5.0-SNAPSHOT you will get this exception: > > > > > > > > > clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: No > > such var: ana/forms-seq*, compiling:(figwheel_sidecar/utils.clj:49:21) > > > > > > figwheel 0.5.0-SNAPSHOT has a dependency on cljs 1.7.145 even though it > > needs 1.7.170. > > > > > > To resolve this error you must explicitly depend on clojurescript in your > > plugins. Example: > > > > > > :plugins [[lein-figwheel "0.5.0-SNAPSHOT"] > > > [org.clojure/clojurescript "1.7.170"]] ;; Overrides broken > >lein-figwheel dependency. > > > > > > lein deps :tree shows cljs 1.7.170 is used. > > > > > > So, > > > > > > > > > > > > On Saturday, November 7, 2015 at 3:30:05 AM UTC-6, Maria Geller wrote: > > > > Try using 0.5.0-SNAPSHOT for figwheel ;) > > > > > > > > On Saturday, November 7, 2015 at 9:59:24 PM UTC+13, Francis Avila > > > wrote:I'm getting the following exception with figwheel builds (using > > > 0.4.1): > > > > > > > > > > > > > > > > java.lang.AbstractMethodError: Method > > > clojurescript_build/core/CompilableSourcePaths._find_sources(Ljava/lang/Object;)Ljava/lang/Object; > > > is abstract > > > > > > > > at clojurescript_build.core.CompilableSourcePaths._find_sources > > > (core.clj:-1) > > > > > > > > > > > > > > > > > > > > > > > > (cljsbuild works fine with version 1.1.1) > > > > > > > > > > > > > > > > Nolan said "All the mentioned tools [inc. figwheel] have already > > > accounted for this change." I don't see any mention in the figwheel docs > > > about cljs 1.7.170 compatibility or any commit message that mentions it. > > > Can anyone confirm this is actually true for figwheel? > > > > > > > > > > > > > > > > On Friday, November 6, 2015 at 6:05:19 AM UTC-6, David Nolen wrote: > > > > > > > > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > > > > > > > > > > > > > > > > > > > > > > > > > README and source code: https://github.com/clojure/clojurescript > > > > > > > > > > > > > > > > > > > > > > > > > > > Leiningen dependency information: > > > > > > > > > > > > > > > > > > > > > > > > > > > [org.clojure/clojurescript "1.7.170"] > > > > > > > > > > > > > > > > > > > > > > > > > > > This release includes a major refactor of the build pipeline thanks to > > > > > > > > > Juho Teperi. This change along with some greatly simplified > > > > > > > > > recompilation logic will mean much faster cold build times for larger > > > > > > > > > projects (some users have already reported >10X). > > > > > > > > > > > > > > > > > > > > > > > > > > > This is a breaking change for existing tooling. You will need to > > > > > > >
Re: [ClojureScript] Re: ANN: ClojureScript 1.7.170, Enhanced Build Pipeline
FWIW I encoountered same "Could not locate cljs/analyzer__init.class or cljs/analyzer.clj on classpath" issue when using lein version 2.5.1. Upgrading to lein 2.5.3 fixed the issue for me. On Monday, November 16, 2015 at 4:51:23 PM UTC-5, Francis Avila wrote: > FYI since this was written lein-figwheel 0.5.0 (not snapshot) was released > which fixes this dependency problem, so specifying cljs manually in :plugins > is no longer necessary. > > I imagine the figwheel snapshot was somehow either running the compiler in > the wrong environment (i.e. the leinigen plugin process instead of the > project process), or was rewriting the project process's dependencies > incorrectly before running itself in the project context. > > On Monday, November 16, 2015 at 3:14:46 PM UTC-6, Daniel Compton wrote: > > Can someone explain why it's necessary to manually add a dependency on > > clojurescript in the :plugins vector? > > > > > > :plugins [[lein-figwheel "0.5.0-SNAPSHOT"] > > [org.clojure/clojurescript "1.7.170"]] ;; Overrides broken > > lein-figwheel dependency. > > > > > > Shouldn't the version of ClojureScript specified in :dependencies always be > > used? > > > > > > On Wed, Nov 11, 2015 at 3:18 AM Andreas Liljeqvist wrote: > > > > Works without problem with boot-cljs. > > Roughly 20% decrease in compilation time. > > > > > > Great work. > > > > > > On Mon, Nov 9, 2015 at 7:24 PM Francis Avila wrote: > > > > > > Debug dependency problems with `lein deps :plugin-tree` and `:tree`. These > > show you what your actual dependencies are and why. > > > > Sent from my iPhone > > > > > > On Nov 9, 2015, at 12:15 PM, David Nolen wrote: > > > > > > > > > > It appears one of your dependencies is pulling in an older version of > > Clojure. > > > > > > David > > > > > > On Mon, Nov 9, 2015 at 11:03 AM, David Petrovics wrote: > > Hi Francis, > > > > > > > > I tried figwheel 0.5.0-SNAPSHOT, got the (No such var: ana/forms-seq*) > > exception, then added [org.clojure/clojurescript "1.7.170"] to the plugins > > and am now seeing: > > > > > > > > java.io.FileNotFoundException: Could not locate cljs/analyzer__init.class > > or cljs/analyzer.clj on classpath: , > > compiling:(figwheel_sidecar/utils.clj:1:1) > > > > > > > > I'm on [lein-cljsbuild "1.1.1"], [org.clojure/clojurescript "1.7.170"], > > [org.clojure/clojure "1.7.0"], [org.omcljs/om > > "0.8.8"], [lein-figwheel "0.5.0-SNAPSHOT"] > > > > > > > > Thanks! > > > > > > > > > > > > On Saturday, November 7, 2015 at 5:44:03 AM UTC-5, Francis Avila wrote: > > > > > For future travelers. > > > > > > > > > > If you use figwheel 0.5.0-SNAPSHOT you will get this exception: > > > > > > > > > > > > > > > clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: No > > > such var: ana/forms-seq*, compiling:(figwheel_sidecar/utils.clj:49:21) > > > > > > > > > > figwheel 0.5.0-SNAPSHOT has a dependency on cljs 1.7.145 even though it > > > needs 1.7.170. > > > > > > > > > > To resolve this error you must explicitly depend on clojurescript in your > > > plugins. Example: > > > > > > > > > > :plugins [[lein-figwheel "0.5.0-SNAPSHOT"] > > > > > [org.clojure/clojurescript "1.7.170"]] ;; Overrides broken > > >lein-figwheel dependency. > > > > > > > > > > lein deps :tree shows cljs 1.7.170 is used. > > > > > > > > > > So, > > > > > > > > > > > > > > > > > > > > On Saturday, November 7, 2015 at 3:30:05 AM UTC-6, Maria Geller wrote: > > > > > > Try using 0.5.0-SNAPSHOT for figwheel ;) > > > > > > > > > > > > On Saturday, November 7, 2015 at 9:59:24 PM UTC+13, Francis Avila > > > > wrote:I'm getting the following exception with figwheel builds (using > > > > 0.4.1): > > > > > > > > > > > > > > > > > > > > > > > > java.lang.AbstractMethodError: Method > > > > clojurescript_build/core/CompilableSourcePaths._find_sources(Ljava/lang/Object;)Ljava/lang/Object; > > > > is abstract > > > > > > > > > > > > at clojurescript_build.core.CompilableSourcePaths._find_sources > > > > (core.clj:-1) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > (cljsbuild works fine with version 1.1.1) > > > > > > > > > > > > > > > > > > > > > > > > Nolan said "All the mentioned tools [inc. figwheel] have already > > > > accounted for this change." I don't see any mention in the figwheel > > > > docs about cljs 1.7.170 compatibility or any commit message that > > > > mentions it. Can anyone confirm this is actually true for figwheel? > > > > > > > > > > > > > > > > > > > > > > > > On Friday, November 6, 2015 at 6:05:19 AM UTC-6, David Nolen wrote: > > > > > > > > > > > > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > README and source code: https://github.com/clojure/clojurescript > > > > > > > > > > > > > > > > > > >