This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
I just upgraded from 0.9.0-SNAPSHOT
to 0.9.0
and when I try to run: rlwrap lein run -m clojure.main script/figwheel.clj
for this file:
(require '[figwheel-sidecar.repl :as r]
'[figwheel-sidecar.repl-api :as ra])
(ra/start-figwheel!
{:figwheel-options {:ring-handler 'reflection.clj.server/handler}
:build-ids ["dev"]
:all-builds
[{:id "dev"
:figwheel true
:source-paths ["src"]
:compiler {:main 'reflection.cljs.core
:asset-path "js"
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js"
:verbose true}}]})
(ra/cljs-repl)
I get the following error: Compiling "resources/public/js/main.js" failed.
clojure.lang.ExceptionInfo: failed compiling file:target/figwheel_temp/dev/figwheel/connect.cljs
at clojure.core$ex_info.invoke (core.clj:4593)
Caused by: clojure.lang.ExceptionInfo: Too many arguments to if at line 22 file:/Users/felixflores/.m2/repository/org/omcljs/om/0.9.0/om-0.9.0.jar!/om/next/stores.cljs
at clojure.core$ex_info.invoke (core.clj:4593)
I’ve literally been racking my brain over this issue but cannot find a solution. I’ve search the github issues and no one seems to be having the same issue. Anyone down to assists?
I’ve even lein clean
cleared the ~/.m2/
dir just to make sure it wasn’t a lein install
of om
. The s-expression at line 22 file:/Users/felixflores/.m2/repository/org/omcljs/om/0.9.0/om-0.9.0.jar!/om/next/stores.cljs, looks fine to me:
(if (contains? m k)
(let [v (get m k)
pv (cond
(vector? v) (into [] (map #(tree-pull % sel)) v)
(map? v) (tree-pull v sel)
:else (throw
(ex-info (str "Cannot pull " v)
{:type :error/invalid-tree-pull-value})))]
(assoc ret k pv))
:else
(throw
(ex-info (str "Invalid key " k)
{:type :error/invalid-key})))
oh wait… why does that have :else
there
switching back to 0.9.0-SNAPSHOT
for now
@felixflores: 0.9.0
is the last stable release before om.next. 0.9.0-SNAPSHOT
has not been released and the code that you see under that label in github comes after 0.9.0
. So when you go from 0.9.0-SNAPSHOT
to 0.9.0
you are not upgrading, you are regressing.
Stay in 0.9.0
and use om.core
and om.dom
to get a functional library. Everything else is pre-alpha software.
@felixflores: you somehow have a version of Om Next from a couple of months ago, I would delete that from you .m2
Maven cache and re-install
but also I would just wait, there’s still some stuff for me sort through before I can cut a release
weird that 0.9.0-SNAPSHOT
-> 0.9.0
is a downgrade
that would have confused me, too
> If a version number is followed by -SNAPSHOT, then Maven considers it the "as-yet-unreleased" version of the associated MajorVersion, MinorVersion, or IncrementalVersion
if people can’t figure out how to do the Quick Start … at this point it’s a good thing
the tutorials are correct wrt. the value propositions - which it seems people understand
Relay & Falcor have sorted through a bunch of complications that need to be addressed somehow in the Om Next internals