leiningen

Installation of Leiningen 2.X in Mac OS X

与世无争的帅哥 提交于 2019-12-23 18:27:31
问题 I'm using leiningen ver 1.X, and I'm trying to update it to ver 2.X. As is written in this site, I downloaded the script as "lein2", but when I tried to run the "lein2" command, I get this error message. Could not find artifact lein-newnew:lein-newnew:pom:0.3.4 in central (http://repo1.maven.org/maven2) Could not transfer artifact lein-newnew:lein-newnew:pom:0.3.4 from/to clojars (https://clojars.org/repo/): Specified destination directory cannot be created: /Users/smcho/.m2/repository/lein

Getting an exception when trying to run lein

爷,独闯天下 提交于 2019-12-23 13:08:23
问题 I get the following exception when trying to run lein in linux. Exception in thread "main" java.lang.NoClassDefFoundError: clojure.core.protocols$fn__5393 at java.lang.Class.initializeClass(libgcj.so.10) at clojure.core.protocols__init.load(Unknown Source:16) at clojure.core.protocols__init.<clinit>(Unknown Source) at java.lang.Class.initializeClass(libgcj.so.10) at java.lang.Class.forName(libgcj.so.10) at clojure.lang.RT.loadClassForName(RT.java:1578) at clojure.lang.RT.load(RT.java:399) at

'leiningen' related commands too slow with Mac OS X

邮差的信 提交于 2019-12-23 12:23:07
问题 I installed and run lein, but it seems to slow on My Mac (10.6.4). Running 'time lein help' gives me real 11m8.674s user 0m54.297s sys 1m32.621s I tried once more. real 15m25.560s user 1m36.087s sys 2m52.745s What's wrong with this? Is anyone experiencing similar problem? Is there anyway to check what's the problem? Added When I install, I used 'sudo lein deps', as I got some errors using 'lein deps'. I guess it caused some problem accessing files. When I run ' sudo lein SOMETHING', it works

How to hide TieredCompilation warning?

末鹿安然 提交于 2019-12-23 09:25:57
问题 I'm using Linux Mint and OpenJDK. java -version shows this: java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1) OpenJDK Client VM (build 24.79-b02, mixed mode, sharing) Whenever I run a Java-based app like lein , I get this warning: OpenJDK Client VM warning: TieredCompilation is disabled in this release. It's irrelevant to my interests, so I'd rather not see it in the command output. How can I hide or disable it? 回答1: The problem is in Leiningen.

Compojure: access filesystem

丶灬走出姿态 提交于 2019-12-22 10:30:03
问题 this is my project.clj file: (defproject org.github.pistacchio.deviantchecker "0.9.0" :description "A one page application for keeping track of changes on deviantart.com gallieries" :dependencies [[org.clojure/clojure "1.2.1"] [org.clojure/clojure-contrib "1.2.0"] [enlive "1.0.0"] [compojure "0.6.4"] [ring/ring-jetty-adapter "1.0.0-beta2"]] :dev-dependencies [[lein-ring "0.4.6"]] :ring {:handler org.github.pistacchio.deviantchecker.core/app} :main org.github.pistacchio.deviantchecker.core)

How can I deploy a Leiningen template to Clojars?

大兔子大兔子 提交于 2019-12-22 08:07:41
问题 I have created a Leiningen project on my local machine which I then turn into a template by doing: lein create-template webdb : Then I install the template: cd webdb lein install : which allows me to create projects based on the template locally: lein new webdb anewproject : Everything works fine up to here. However if I try to deploy the template to clojars using: cd webdb lein deploy clojars : then whenever I try to use the clojars profile to create a template I get an error: lein new org

How to setup the classpath when running the jar made from 'lein uberjar'?

旧巷老猫 提交于 2019-12-22 06:44:41
问题 I have a hello.clj as follows. (ns hello) (defn hi [] (println "HI")) Normally, I can use this function from main.clj as follows. The hello.clj is in the same directory that contains main.clj. And the classpath includes . (current path). (use 'hello) (hi) How can I use this hello.clj for the 'lein uberjar'? I used 'lein new myproject; lein deps' to get the following structure. . |-- README |-- classes | `-- myproject |-- lib | |-- clojure-1.2.0-beta1.jar | |-- clojure-contrib-1.2.0-beta1.jar

Why can't Leiningen always use my :gen-class properly?

送分小仙女□ 提交于 2019-12-22 06:41:40
问题 Let's say I create a new Leiningen project ( lein new app example ) and add some code in example/src/example/core.clj that makes use of :gen-class : (ns example.core (:gen-class :extends javafx.application.Application)) (defn -start [this stage] (.show stage)) (defn -main [& args] (javafx.application.Application/launch example.core args)) If I then create a JAR ( lein uberjar ) and run it, everything works fine. However, if I instead try to run my app directly ( lein run ), I get a

Is there a standalone Clojure package within Leiningen?

牧云@^-^@ 提交于 2019-12-22 06:02:06
问题 After installing leiningen with this script https://raw.github.com/technomancy/leiningen/preview/bin/lein , I can use the repl by typing lein repl , so I think the clojure has already been installed by leiningen . Do I need to download the JAR of the clojure again from the offical site? If there's no need to do this, where's the JAR file of clojure that leiningten depends on? 回答1: What I've found with lein is installing it and then depending on a specific version of Clojure causes that

Is there a standalone Clojure package within Leiningen?

╄→гoц情女王★ 提交于 2019-12-22 06:01:12
问题 After installing leiningen with this script https://raw.github.com/technomancy/leiningen/preview/bin/lein , I can use the repl by typing lein repl , so I think the clojure has already been installed by leiningen . Do I need to download the JAR of the clojure again from the offical site? If there's no need to do this, where's the JAR file of clojure that leiningten depends on? 回答1: What I've found with lein is installing it and then depending on a specific version of Clojure causes that