leiningen

Is conjure-contrib.jar not standardized now?

一个人想着一个人 提交于 2019-12-07 13:40:01
问题 This page introduces a lot of clojure libraries. And this page also comments to consider using the clojure-contrib. Why the clojure-contrib.jar is different in size? The leiningen's clojure-contrib-1.2.0-beta1.jar is 479.2KB in size, but the conjure-contrib.jar that I downloaded from Programming Clojure is 2.9MB. As I explained in here. Does the clojure-contrib.jar is not standardized as of today? Should the libs in the page be a part of clojure-contrib? If so, why leiningen's clojure-contrib

How can I add a build step to leiningen?

岁酱吖の 提交于 2019-12-07 11:20:51
问题 So I've got an application built using Foundation and Ring, and I want to be able to compile my custom Foundation CSS whenever I run lein ring server or the like. Specifically, I'd like to be able to add a step the runs compass compile [path] . What's the idiomatic way to do this? 回答1: I would say, Leiningen Hooks are the proper and idiomatic way to do so: Hooks. You can modify the behaviour of built-in tasks to a degree using hooks. Hook functionality is provided by the Robert Hooke library,

Syntax highlighting in Lein REPL?

末鹿安然 提交于 2019-12-07 10:31:31
问题 I want to configure Lein so that I see a colored REPL, like Emacs' nREPL. How can I do this? I couldn't find any help on Google. Do I need to learn Bash scripting first? 回答1: Ultra, “a Leiningen plugin for a superior development environment”, highlights syntax well for REPL output, among other useful things. At the moment, there are no plugins or stand-alone REPLs that highlight syntax for input. 回答2: Whidbey “pretty-prints colored REPL values by default”, using Puget to do the actual pretty

how to package resources in a leiningen project

不羁岁月 提交于 2019-12-07 04:56:37
问题 in the sample project, https://github.com/technomancy/leiningen/blob/master/sample.project.clj on line 217 , there is a directive for including non-code files : :resource-paths ["src/main/resource"] ; non-code files included in classpath/jar I have a resources folder in my project and this line in my project.clj :resource-paths ["resources"] ; non-code files included in classpath/jar however, when I run lein jar to generate the .jar file, it does not package up the resources folder. Is there

How do you use a type outside of its own namespace in clojure?

隐身守侯 提交于 2019-12-06 18:50:19
问题 I have a project set up with leiningen called techne. I created a module called scrub with a type in it called Scrub and a function called foo. techne/scrub.clj: (ns techne.scrub) (deftype Scrub [state] Object (toString [this] (str "SCRUB: " state))) (defn foo [item] (Scrub. "foo") "bar") techne/scrub_test.clj: (ns techne.scrub-test (:use [techne.scrub] :reload-all) (:use [clojure.test])) (deftest test-foo (is (= "bar" (foo "foo")))) (deftest test-scrub (is (= (Scrub. :a) (Scrub. :a)))) When

Issues with Clojure inter-dependency with different major versions of the same library

帅比萌擦擦* 提交于 2019-12-06 05:44:16
Disclojure: I am not a Java developer and I have little knowledge in Maven . I am facing a problem with Clojure / Lein . I am developing a project that uses two external libraries/projects that are un-related. Both of the uses the Sesame RDF library. One of them is Any23 which uses Sesame 2.x but the other uses the version 4.x . The problem is that Any23 won't work with Sesame 4.x and the other library won't work with Sesame 2.x . This means that :exclusions one or the other in my project.clj file won't work. Do any solution exists to fix such dependencies issues or am I stuck? Daniel Compton

Why does Java complain that namespace is not found?

China☆狼群 提交于 2019-12-06 03:34:20
问题 I am trying to set up a lein build environment on Windows 7 haven copied files from a successful build environment on Linux. I have maven and the jdk installed along with lein. HOME points to c:\Users\cnorton where the maven directories are located. I get this error when trying to run lein repl or lein compile, and cannot figure out what I am doing wrong. Caused by: java.lang.Exception: namespace 'repl-test.core' not found after loading '/repl_test/core' Here is project.clj (defproject repl

Getting Leiningen & Cygwin Working

喜欢而已 提交于 2019-12-06 03:17:29
问题 I am trying to get Leiningen and Cygwin working together. One of the problems I think I have is that I have Java installed in "C:\Program Files\Java..." directory. The space appears to be causing issues. When I try to run the lein script in Cygwin, I am getting the following error: ./lein: line 325: C:\Program Files\Java\jdk1.8.0_05\bin\java.exe : command not found Then I thought the issue was the space. So I changed line 325 from: "$LEIN_JAVA_CMD" \ to (for testing purposes): "$'C:\\\Program

lein ring server with nrepl doesn't honour cider-nrepl

时光怂恿深爱的人放手 提交于 2019-12-06 02:12:00
问题 When I start up my current project with lein ring server and try to connect to it from Emacs via cider, I get the following warning: ; CIDER 0.8.2 (Java 1.7.0_51, Clojure 1.6.0, nREPL 0.2.6) WARNING: The following required nREPL ops are not supported: apropos classpath complete eldoc info inspect-start inspect-refresh inspect-pop inspect-push inspect-reset macroexpand ns-list ns-vars resource stacktrace toggle-trace-var toggle-trace-ns undef Please, install (or update) cider-nrepl 0.8.2 and

Is conjure-contrib.jar not standardized now?

主宰稳场 提交于 2019-12-06 00:35:34
This page introduces a lot of clojure libraries. And this page also comments to consider using the clojure-contrib. Why the clojure-contrib.jar is different in size? The leiningen's clojure-contrib-1.2.0-beta1.jar is 479.2KB in size, but the conjure-contrib.jar that I downloaded from Programming Clojure is 2.9MB. As I explained in here . Does the clojure-contrib.jar is not standardized as of today? Should the libs in the page be a part of clojure-contrib? If so, why leiningen's clojure-contrib.jar doesn't have the str-utils or repl-utils? As a result, I can't run (use 'clojure.contrib.str