Fork me on GitHub
#om
<
2015-10-10
>
felixflores07:10:31

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.

felixflores07:10:10

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})))

felixflores07:10:15

oh wait… why does that have :else there

felixflores07:10:34

switching back to 0.9.0-SNAPSHOT for now

bensu11:10:44

@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.

bensu11:10:33

Stay in 0.9.0 and use om.core and om.dom to get a functional library. Everything else is pre-alpha software.

dnolen14:10:15

@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

dnolen14:10:59

but also I would just wait, there’s still some stuff for me sort through before I can cut a release

felixflores15:10:20

ah ok thanks @dnolen and @bensu. I was confused

bostonaholic18:10:31

weird that 0.9.0-SNAPSHOT -> 0.9.0 is a downgrade

bostonaholic18:10:44

that would have confused me, too

minimal18:10:22

> If a version number is followed by -SNAPSHOT, then Maven considers it the "as-yet-unreleased" version of the associated MajorVersion, MinorVersion, or IncrementalVersion

dnolen18:10:55

it will all get sorted out when it’s ready … it isn’t ready

dnolen18:10:04

working through a giant pile of edge cases right now

minimal18:10:17

yeah no worries

dnolen18:10:37

if people can’t figure out how to do the Quick Start … at this point it’s a good thing

dnolen18:10:52

there’s a lot things that won’t work once you get pass tutorial trivialities

monjohn19:10:02

@dnolen: your patience with all of our impatience is admirable

dnolen19:10:08

@monjohn heh I understand the impatience simple_smile

dnolen19:10:33

the tutorials are correct wrt. the value propositions - which it seems people understand

dnolen19:10:45

things have slowed a bit because the devil is in the details

dnolen19:10:13

Relay & Falcor have sorted through a bunch of complications that need to be addressed somehow in the Om Next internals

dnolen19:10:34

as soon as I’m confident there aren’t mines lurking in the current implementation, there’ll be an alpha

dnolen19:10:38

and everyone will know about it simple_smile