Comments (9)
You can create a minimal project with lein new whatever
.
from leiningen.
Hi,
while it's probably not helpful this doesn't look like a general problem and I just tried to repro (I do have a different jdk package installed though) and can't (see below).
Can you maybe retry on another machine or via:
docker run --rm -it ubuntu:18.04 /bin/bash
λ(florian@nihil ~/tmp) $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
λ(florian@nihil ~) $ uname -a
Linux nihil 5.4.0-65-generic #73~18.04.1-Ubuntu SMP Tue Jan 19 09:02:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
λ(florian@nihil ~) $ dpkg -l |grep jdk
ii openjdk-11-jdk:amd64 11.0.14+9-0ubuntu2~18.04 amd64 OpenJDK Development Kit (JDK)
ii openjdk-11-jdk-headless:amd64 11.0.14+9-0ubuntu2~18.04 amd64 OpenJDK Development Kit (JDK) (headless)
ii openjdk-11-jre:amd64 11.0.14+9-0ubuntu2~18.04 amd64 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-11-jre-headless:amd64 11.0.14+9-0ubuntu2~18.04 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
ii openjdk-8-jdk-headless:amd64 8u312-b07-0ubuntu1~18.04 amd64 OpenJDK Development Kit (JDK) (headless)
ii openjdk-8-jre-headless:amd64 8u312-b07-0ubuntu1~18.04 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
λ(florian@nihil ~) $ cd tmp
λ(florian@nihil ~/tmp) $ wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
--2022-03-23 16:50:50-- https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13544 (13K) [text/plain]
Saving to: ‘lein’
lein 100%[========================...=====>] 13,23K --.-KB/s in 0,001s
2022-03-23 16:50:50 (10,6 MB/s) - ‘lein’ saved [13544/13544]
λ(florian@nihil ~/tmp) $ chmod +x lein
λ(florian@nihil ~/tmp) $ vi project.clj
# I cut out the original run here because I didn't have DEBUG and used Java 11...
λ(florian@nihil ~/tmp) $ /usr/lib/jvm/java-8-openjdk-amd64/bin/java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~18.04-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
λ(florian@nihil ~/tmp) $ JAVA_CMD=/usr/lib/jvm/java-8-openjdk-amd64/bin/java DEBUG=1 ./lein repl
Leiningen's classpath: /home/florian/.lein/self-installs/leiningen-2.9.8-standalone.jar
Applying task repl to []
Applying task javac to nil
Running javac with [@/tmp/.leiningen-cmdline1470219929842258305.tmp]
Applying task compile to nil
All namespaces already AOT compiled.
nREPL server started on port 40699 on host 127.0.0.1 - nrepl://127.0.0.1:40699
REPL-y 0.5.1, nREPL 0.8.3
Clojure 1.9.0-alpha17
OpenJDK 64-Bit Server VM 1.8.0_312-8u312-b07-0ubuntu1~18.04-b07
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=>
from leiningen.
Hey! Thanks for having a look.
Hmm .. I can confirm that when I ran my repro steps in a docker container with the ubuntu 18.04 image it all ran fine - no hanging :-/.
Any ideas on what I could try to help me debug this hang on my machine?
from leiningen.
What happens if you remove the overtone dependency? Are you able to launch a repl in other projects? What about outside a project?
from leiningen.
Ok, so I've downloaded the clojure command line tools and I can successfully start a REPL with the command.
> clj
I've never started a REPL via lein
on any other project file, so I don't know if the issue is particular to this project. Regarding removing the overtone dependency, I naively deleted the dependencies line from project file in my original post, but it looks like it doesn't parse correctly. This is the error I get:
> lein repl
Error: Could not find or load main class clojure.main
Subprocess failed (exit code: 1)
Could you suggest a minimal project file, without dependencies, for me to try?
from leiningen.
So, I create a blank project with lein new test_project
; I run > lein repl
from the project root and I get the same hanging behaviour:
nREPL server started on port 39721 on host 127.0.0.1 - nrepl://127.0.0.1:39721
and it hangs there. Never get a prompt.
from leiningen.
Hm; well without a way to reproduce the problem I don't think I can give much advice about how to fix it, but there is a workaround; you could try lein trampoline repl
which will bypass nrepl and just do a fully in-process repl. You won't be able to connect your editor to it, but if the problem has something to do with the port, you could possibly work around it.
from leiningen.
Interestingly > lein trampoline repl
hangs straight away. I get no output at all after running this command in a fresh project.
from leiningen.
If we can get some more details here on how to reproduce the problem we can reopen this issue, but in its present state it is not actionable.
from leiningen.
Related Issues (20)
- 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
- Leiningen 2.11.0 breaks Eastwood HOT 12
- Leiningen hangs instead of complaining about not finding JAVA_HOME HOT 1
- Bump default clojure version to fix CVE-2024-22871 HOT 3
- lein doesn't fully reify org.apache.maven.wagon.Wagon HOT 1
- `lein repl` gets stuck when adding opentelemetry agent jar as `:jvm-opts` in a project that has `:java-source-paths`
- Java installed by sdkman not being recognized on emacs+cider runs HOT 2
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.