fn-fx / fn-fx

A Functional API around JavaFX / OpenJFX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem with clojars package?

ehartford opened this issue · comments

seems like a problem with clojars package?

my project.clj:

(defproject func "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.8.0"]
                 [fn-fx "0.1.0-SNAPSHOT"]]
  :main func.core)

my core.clj:

(ns func.core
  (:require [fn-fx.fx-dom :as dom]            
            [fn-fx.diff :refer [component defui render should-update?]]            
            [fn-fx.render :refer [ui]]))


(defn -main []  
  (let [u (ui :stage            
            :title "Hello World!"            
            :shown true            
            :scene (ui :scene                     
                     :width 300                     
                     :height 250                     
                     :root (ui :stack-pane                             
                             :children [(ui :button                                          
                                          :text "Say 'Hello World'"                                          
                                          :on-action {:say "Hello World!"})])))        
        handler-fn (fn [evt]                     
                     (println "Received Event: " evt))]    
    (dom/app u handler-fn)))

the error message:

java.io.FileNotFoundException: Could not locate fn_fx/fx_dom__init.class or fn_fx/fx_dom.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name., compiling:(core.clj:1:1)

Whoever put this in Clojars didn't use the current version. The version they used was from before fx_dom.clj existed (February 2015, almost a year before fx_dom was added in December 2015).

Pushed by
pauld on Jun 16, 2015

https://clojars.org/fn-fx

commented

Funny I probably didn't mean to push this to clojars (espacially not under my own username group). I think I was testing leiningen uberjar compilation issue #1.

I'll make another issue requesting implementation of a clojars release process