Open koliyo opened 6 years ago
I got literally the exact same thing... not much to go on unfortunately...
Same issue here, no clue about what's going on
As for the NullPointerException (manual start), you can get rid of it by hard coding the two values that should come from env vars in profiles.clj, such as:
{:debug-repl {:resource-paths ["/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/tools.jar"] :repl-options {:nrepl-middleware [debug-middleware.core/debug-middleware]} :dependencies [[org.clojure/clojure "1.8.0"] [debug-middleware "0.4.5"] [javax.servlet/servlet-api "2.5"] [ring/ring-mock "0.3.0"]] :source-paths ["src" "dev" "test"]}}
With this, the repl can be started manually. The issue with starting from VS Code through the launch config is that the command is started from the root directory ( / ), not from the workspace root, thus lein can not find profiles.clj . Next step is to figure out:
If you explicitly set the working directory in the launch config (see the line with cwd below), the repl launches fine, but the debugger doesn't seem to connect.
{ "version": "0.2.0", "configurations": [ { "commandLine": [ "/usr/local/bin/lein", "with-profile", "+debug-repl", "repl", ":start", ":port", "5555" ], "name": "Clojure-Debug", "cwd": "${workspaceRoot}", "type": "clojure", "request": "launch", "env": {} }, { "commandLine": [ "/usr/local/bin/lein", "with-profile", "+debug-repl", "repl", ":start", ":port", "5555" ], "debug": false, "name": "Clojure-REPL", "type": "clojure", "request": "launch", "env": {} } ] }
I'm also getting the same error. Hate to say this - but I'm switching to LightTable for now, and will get back if anyone comes up with a solution for this.
I ended up with Atom + ProtoRepl and am very happy with it - see https://git.io/atom_clojure_setup
me too same issue, did any find the solution here?
Also encountering this issue.
See this tutorial about this extension. This will help you solve these issues.
Environment
Description
Unable to start repl debugger. I tried using the example project here but was unable to get it running. I'm getting
If I try and run
lein with-profile +debug-repl repl
from the command line I instead getAny clue what is going on?
Steps to Reproduce
See https://github.com/indiejames/clojure-code-demo/issues/2