leiningen Questions
2
Solved
Is it possible to download and install previously unspecified Maven dependencies in a running Clojure REPL?
I'm thinking of the fairly common case where you want to quickly pull in a dependency te...
Hamlen asked 10/10, 2011 at 10:21
2
Solved
I'm trying to connect to a ClojureScript browser REPL, and I'm having trouble with clojure.browser.repl/connect. My compiled JavaScript throws a TypeError trying to call appendChild on a null objec...
Detradetract asked 27/1, 2013 at 20:41
1
Solved
I have some clojure functions that I would like pre-loaded when I start the clojure REPL. The functions aren't much use unless you are using them within the context of a REPL.
If it helps, I gener...
Poucher asked 31/8, 2013 at 19:20
1
Solved
Let's say I create a new leiningen project and edit the project.clj file so it looks something like the following.
(defproject foobar "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.5.1"]...
3
I'm trying to install Leiningen in order to install Overtone.
Following the directions for installing Leiningen, I:
Installed JDK7u25
Installed leiningen 2.2.0
Can't get any further because:
W...
1
Solved
Let's say I was hacking on a clojure library I was using in my project:
/User/SCdF/Code/myproject/
/User/SCdF/Code/other-peoples-projects/clojure-library-cloned-from-github
Currently, when I ...
2
Solved
I have several additional repositories in ~/.m2/settings.xml. I tried lein search and it doesn't find the packages in my repositories. How can I tell leiningen to search repositories in maven setti...
1
Solved
4
Solved
Is there a simple way to find out what versions of dependencies are available using Leiningen?
E.g., if I have a web app which depends on Hiccup and Compojure, how can I be sure that I'm on the la...
3
Solved
I realize that this question is pretty much the exact question found here. However, seeing as that question is 1.5 years old (or so), I would like to revisit it. How does one add local dependencies...
Moravian asked 7/12, 2011 at 6:46
2
Solved
Say I'm using a library in a leiningen project, hosted on Clojars. And I run into a bug. I fork the project on Github, and fix the bug. Now what?
What's the most appropriate way to use my version ...
3
Solved
I got clojure project with ring library in it. This is project.clj:
(defproject words "1.0.0-SNAPSHOT"
:description "Websocket handler for sessions"
:dependencies [[org.clojure/clojure "1.4.0"]
[...
1
Solved
I want to compile a local jar into my clojure project, I can do this easily with the following
https://gist.github.com/stuartsierra/3062743
mkdir repo
mvn install:install-file -DgroupId=local -Da...
2
Solved
I was trying to do some simple scripting work with Clojure. For example, I would load a json which contains a map from a file, remove a given key, and save it back to the file. With leiningen, seem...
2
Solved
How do I install a leiningen plugin?
For example, leiningen-run?
I see this thing called "clojars.org", and how to "push" to it, but I don't see anything about "pulling" from it.
1
So I go to clojure.org/downloads and it says I can get clojure via leiningen. Great. I go to leiningen.org and think I'm following the instructions. It says to get their bash script and put it in y...
2
Solved
I'm trying to figure out how I can manage my log4j.properties file with leiningen. I'd like to be able to automatically include the file in the jars that lein creates as well as have the properties...
1
Solved
This piece of code returns immediately:
user=> (dorun (pmap + [1 2] [3 4]))
nil
However, when I run the same piece of code in main method using lein:
(ns practice.core)
(defn -main [& a...
1
My problem is that leiningen is not working on my computer. I get errors like these:
Could not transfer artifact lein-ring:lein-ring:pom:0.4.5 from/to central (http://repo1.maven.org/maven2): Conn...
2
Solved
What I do now is open project.clj, add dependency there, run lein deps restart repl, then use, require and so on.
The thing is that I don't really like to restart repl because the startup time is ...
1
Solved
Now what I do is:
$ lein ring server &
Then what I see is: [1]+ Stopped lein ring server. Then I'm trying to use:
$ fg 1
And also see that it's stopped. What do I do wrong and how can I r...
1
Solved
I have a project.clj file that I want to use differently depending on an argument passed in when called by leiningen. Here is my hypothetical sample project
(defproject simple "0.0.1"
:source-pat...
Rawlings asked 8/4, 2013 at 15:33
1
Solved
It seems to me that the only difference between lein run and lein trampoline is that the latter quits Leiningen's JVM to save memory.
This seems always a good idea, so why is this feature not incl...
4
Solved
I'm using nrepl.el, Emacs 24.2. My S.O version is OS X Lion 10.7.5.
Running the command [M-x] nrepl after start a REPL session through lein (:~ $ lein repl) i am able to connect to it but if i try ...
1
Solved
During a lein REPL session, I may define a number of functions. However, sometimes I would want the session to 'forget' them - for example when I execute (run-all-tests), this highlights failures f...
Pannikin asked 25/3, 2013 at 23:32
© 2022 - 2024 — McMap. All rights reserved.