Comments (8)
You'll have to give some more details; there's no way anyone could figure out the cause of the problem with just this.
from leiningen.
I have a bare-bones example of the symptom. But there no way to attach a file to this issue!?!? Email me directly ([email protected]) and I'll send you my example.
from leiningen.
Could you link to a gist with project.clj along with the commands you use to reproduce?
from leiningen.
Sure. Create a new lein project named "lein_issue" and use the following project.clj: http://gist.github.com/367386
Then in src/lein_issue/core.clj: http://gist.github.com/367391
from leiningen.
I've just encountered this as well when playing with a minimal compojure example, very similar to slagyr's. The server gets started during compilation with either lein compile or lein uberjar, and so the leiningen task never returns.
Leiningen 1.1.0 on Java 1.6.0_16 Java HotSpot(TM) 64-Bit Server VM
from leiningen.
You shouldn't start threads or servers in the top-level of the :main namespace. The intended use of the :main namespace is to provide a -main function (with gen-class) which is run when you execute the jar from the command-line. See the mire project for an example.
from leiningen.
That makes sense.
from leiningen.
That last comment was actually from me. I was logged into the wrong account. I'll make the change to my project. Still, there seems to be a documentation issue. New users are bound to make the same mistake.
from leiningen.
Related Issues (20)
- Hitting a wall trying to package lein HOT 4
- Documentation "lein help new" does not list templates HOT 3
- (Uber)jar name from environment variable HOT 2
- Trouble starting REPL on ubuntu 18.04 HOT 9
- Discrepancy in pom.xml dependencies and uberjar included dependencies HOT 12
- mktemp failed because it makes assumptions about /tmp HOT 9
- Bump Clojure to 1.11 HOT 1
- Looking to Build Leiningen from Source HOT 6
- lein deps hangs and exits due to StackOverflowError HOT 2
- Moving the repository to a new host HOT 13
- Lein uberjar producing different results to jar in different environments ( Ubuntu vs. OS X ) HOT 5
- Leiningen Homebrew 2.9.10 Upgrade Failing HOT 1
- Use :check-paths in check task if specified HOT 4
- CVE-2022-36033: Upgrade jsoup to version 1.15.3 HOT 3
- Leiningen 2.9.1 with java 7 HOT 2
- Add more versatile dependency/plugin resolution options (issue with plugin resolution order) HOT 1
- test-paths are included on classpath when building uberjar HOT 4
- changing the error message if a parent pom file is missing HOT 1
- Global :exclusions in profile do not apply to root :dependencies HOT 6
- A way to pass a profile to generated jar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leiningen.