leiningen Questions

6

Solved

I have project com.samedhi/base that has a logback.xml file and project com.samedhi/derive that also has a logback.xml file. Project 'derive' has a dependency on 'base'. When I "lein trampoline rep...
Hennahane asked 15/8, 2013 at 22:46

4

Solved

As a newbie to clojure, I have used leiningen to create a sample project with lein new app first-project which gave me this directory . ├── doc │   └── intro.md ├── LICENSE ├── project.clj ├── ...
Amblyoscope asked 22/1, 2014 at 21:25

2

Solved

I'm building a Compojure web application, and I'd like it to use functions from another Clojure project I wrote. I'm not at all familiar with Maven, and from what I've heard, it has a very steep le...
Patrinapatriot asked 5/8, 2014 at 18:6

2

Solved

If I create a new clojure project with leiningen, it makes a directory tree like so: . |-- doc | `-- intro.md |-- project.clj |-- README.md |-- src | `-- hello_friend | `-- core.clj `-- test `-- ...
Diantha asked 25/11, 2012 at 12:43

1

I have the following code in a cljc file: (ns proj #?(:cljs (:require-macros [proj :refer [define-project-version]]))) (declare project-version) #?(:clj (defmacro define-project-version [] ...
Tilley asked 12/1, 2017 at 12:8

7

I'm trying to install Leiningen on my local machine to get Clojure running, but I can't seem to get the latest version. I'm following the instructions on github here: https://github.com/technoman...
Falito asked 18/11, 2012 at 0:30

1

Solved

I have a Clojure Leiningen project that has two dependencies A and B and a transitive dependency X which A and B depend on. A → X [version 1.0] B → X [version 2.0] Both A and B are external depend...
Stutsman asked 18/6, 2021 at 11:25

5

I'm actually using git bash instead of default windows command shell (cmd).But I cannot run 'lein repl' in git bash. It doesn't show anything and I must press crtl + c to regain control. Any sugge...
Linguistician asked 29/9, 2016 at 4:7

5

Solved

I am writing a text game in Clojure. I want the player to type lines at the console, and the game to respond on a line-by-line basis. Research showed me that (read-line) is the way one is meant to...
Bekha asked 10/10, 2011 at 0:35

4

Solved

Is it possible to have leiningen pull a project directly from a git repository (on github) as a dependency? Using Bundler with Ruby, it is possible to map a gem to a git repo, allowing for rapid d...
Trillbee asked 29/1, 2012 at 6:56

6

Solved

How can I connect to a REPL session running on a remote server that I can access, for example via SSH?
Bimetallic asked 22/9, 2018 at 18:30

2

Solved

I recently--as in, today--became interested in learning to program with clojure. Now after having installed the latest version of java's jdk and downloading the leiningen script, I followed the ins...
Plastered asked 30/9, 2017 at 1:54

4

Solved

This is the second question after Is there a standalone Clojure package within Leiningen? For example, I have a file hello_world.clj, and I can run it using java -cp clojure.jar clojure.main hell...
Frontolysis asked 21/8, 2012 at 23:10

4

There's plenty of closely related questions on SO, just to name some of them: Java and Clojure with Leiningen What is the best way to do Java development in Emacs? Best java tools for emacs Th...
Pollerd asked 19/2, 2012 at 14:38

8

Solved

Is it possible to grab the project information within the clojure repl? For example, if there was a project defined: (defproject blahproject "0.1.2" ....) When running a repl in the project dir...
Mcarthur asked 29/4, 2013 at 3:30

3

I have a project that works fine using lein run. Now I want to compile it into a standalone jar using lein uberjar. However, there are a couple of source files in my src/projectname/ directory call...
Emblematize asked 2/12, 2014 at 10:10

5

I am learning Clojure and coming from a Ruby background. I am looking for something analogous to gem install <library>. The various incantations of lein install do not seem to fit this bill....
Faveolate asked 6/5, 2013 at 7:26

2

The current set of active profiles is not clear when your IDE has started the REPL for you. In this case, can you query Leiningen somehow to figure out what they may be?
Starkey asked 16/6, 2016 at 20:46

8

Solved

I am using Leiningen in my Clojure project (a GUI application) and created a "resources" directory under the project root to hold images that my app uses. When I am running my app locally during t...
Catachresis asked 4/11, 2011 at 13:22

3

When using the leiningen REPL, is there a way to make a file or ns automatically reload in the repl on file save. Currently I reload the ns by typing the following in the repl - (use 'sample.ns :re...
Daub asked 9/9, 2012 at 16:46

3

Solved

I understand that lein deps :tree displays a dependency tree of all the project dependencies (implicit and explicit). However, "each dependency is only shown once within a tree." I'd really like to...
Rondo asked 13/10, 2015 at 3:53

3

Starting a lein task (actually test, which runs by default with the :test profile). What I'd like to do is start with the equivalent of java -Dproperty1=value -Dproperty2=value2 task There ar...
Lettering asked 1/9, 2015 at 4:31

2

Solved

I am trying to implement a Java interface that is required by a legacy runtime I am using and instantiate an instance of this implementation to pass it to the runtime. But when I run lein uberjar I...
Bilious asked 13/2, 2017 at 10:46

3

Solved

in a liberator based clojure project we are using datomic as DB. After migrating our local dev DB to a S3 hosted one and adding the needed dependencies on our project.clj we cannot launch the REPL ...
Summand asked 29/3, 2014 at 21:10

0

First, the code makes an HTTP request with the GraphQL query to get the MQTT subscription URL, the client ID and the topic to subscribe. The project uses Paho 1.1.0, then with those data, It tries...
Honk asked 31/5, 2019 at 20:33

© 2022 - 2024 — McMap. All rights reserved.