leiningen Questions
3
On a 64-bit JVM, in Linux, whatever does the native library loading insists on trying to load the 32-bit library.
I'm asking this as a clojure and (even moreso) java n00b.
The answers I've found ...
Recuperator asked 4/2, 2013 at 23:41
5
Solved
I have a Clojure project, and I'm using leiningen. I'm also using tools.namespace to reload Clojure code while running a REPL. If I want to include Java source in the project, can I recompile and r...
2
Solved
I've seen a lot of places where some dependencies in Clojure project are marked with :scope "provided" (example).
What does it mean?
3
Solved
I'd like to have two main classes (or more) with leiningen, and then be able to choose which one at the java command line. For example I have:
(ns abc (:gen-class))
(defn -main [] (println "abc"))...
2
Solved
I'm trying to make a stand alone jar from my bare-bones Clojure project using the Leiningen plugin in Intellij's Cursive.
To create the project, I just created the project.clj file, opened it, and...
Sisneros asked 12/7, 2016 at 12:54
2
Solved
I'm new to leiningen.
When I tried to execute following,
$ lein clean jar
I got
Wrong number of arguments to clean task.
Expected []
$
How can I execute multiple tasks in one command?
2
Solved
How can I specify JVM flags so that they apply only to one alias in a project.clj file?
Specifically I want to try the built in server capability in Clojure 1.8.0.
I can do this with an uberjar a...
2
I create a standalone jar using Lein uberjar. This works perfectly fine on my laptop which is running java 1.8. However the computers at my college run java 1.7.0_60.
Within my project.clj I have ...
3
Solved
I made a project named my-stuff and added to the project.clj so it looks like this
(defproject my-stuff "0.1.0-SNAPSHOT"
:description "Testing lein"
:url "http://example.com/FIXME"
:license {:...
2
So i installed Leiningen and git on windows. But git bash does not seem to find the lein command because it is based on a .bat file. It works in the windows command line. Is there any way to get th...
2
I am on Ubuntu 14.04.2 LTS.
I want to run LightTable (downloaded from the official GitHub website). When I run the script, it says that I need leiningen.
I installed leiningen using apt-get insta...
Shiloh asked 19/5, 2015 at 9:30
2
Solved
I have a question about developing a Clojure library which is not answered in the suggested workflow for Library Development and Distribution as described here: http://clojure-doc.org/articles/ecos...
3
Solved
I am trying to setup proto-repl atom-editor package and apparently it needs a file user.clj to exist somewhere - which I guess is some leiningen's init file.
Where should I create this file?
Teeters asked 26/3, 2016 at 12:17
1
Solved
What is the difference between lein run, lein trampoline run and deploying a clojure app as uberjar? Is there any performance difference?
If I do a lein run/lein trampoline run I can just ssh int...
8
Solved
What is the preferred way of reloading functions defined in a Clojure file without having to restart the REPL. Right now, in order to use the updated file I have to:
edit src/foo/bar.clj
close th...
Barnett asked 5/10, 2011 at 9:9
1
Solved
Leiningen provides a default directory for 'main' code, main resources, and test code, but nothing for test resources.
Coming from a maven background this is something I'd expect.
In that case, w...
3
Solved
We have some 3rd-party jars checked-in to our project. We'd like to add them to the classpath. That's it. We don't want to set up a local maven repo (because that would break our 'check out and run...
6
New to clojurescript, and working through the "Modern CLJS" tutorial here.
It instructs to pull in domina by adding it to the project.clj:
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure...
Lyndalynde asked 25/2, 2013 at 1:35
4
Solved
I'm using leiningen and emacs + cider for clojure development. A few days ago, after I upgrade cider through emacs package manager, I'm getting the following warning message when I run M-x cider-co...
4
Solved
I'm using lein repl to execute clojure repl in console.
When I run it, it takes over 15 seconds.
When I run java -cp clojure-1.6.0.jar clojure.main, it takes just a few seconds.
Why is lein repl...
Riggle asked 31/7, 2014 at 6:32
1
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, mi...
1
Solved
I'm trying to understand "Lieningen" behaviour when creating an uberjar. Following is the minimal example which reproduces the behaviour:
(ns my-stuff.core
(:gen-class))
(def some-var (throw (Ex...
2
Solved
I use lein uberjar to create a standalone jar of an application.
When executing
java -jar dataloader-0.1.0-SNAPSHOT-standalone.jar,
it crashes with:
Caused by: java.lang.IllegalArgumentExcep...
1
Solved
I am reading a Clojure book. I typed one of the examples into a file. How can I load it into a lein repl?
I don't have a lein project and would prefer not to create one.
1
I have some values repeated in my project.clj like below:
(defproject foo "0.1.0-SNAPSHOT"
...
:dependencies [[bar "3.4.5"]
[baz "3.4.5"]
[bat "3.4.5"]]
...)
I would like to use some sort...
© 2022 - 2024 — McMap. All rights reserved.