Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug adapter process has terminated unexpectedly #128

Open
jink opened this issue May 1, 2017 · 9 comments
Open

Debug adapter process has terminated unexpectedly #128

jink opened this issue May 1, 2017 · 9 comments

Comments

@jink
Copy link

jink commented May 1, 2017

Environment

  • VSCode Version: 1.11.12
  • OS Version: Windows 10
  • Clojure Extension Version: 0.2.0

Description

Debug adapter process has terminated unexpectedly

Steps to Reproduce

  1. Clicks start debugger

  2. profiles.clj
    {:debug-repl {:resource-paths ["C:\Program Files\Java\jdk1.8.0_60\lib\tools.jar"]
    :repl-options {:nrepl-middleware [debug-middleware.core/debug-middleware]}
    :dependencies [[debug-middleware "0.4.5"]]}}

  3. launch.json
    {
    "version": "0.2.0",
    "configurations": [

     {
         "commandLine": [
             "lein",
             "with-profile",
             "+debug-repl",
             "repl",
             ":start",
             ":port",
             "5555"
         ],
         "name": "Clojure-Debug",
         "type": "clojure",
         "request": "launch",
         "env": {}
     }
    

    ]
    }

  4. settings.json
    // Absolute path to the lein command
    "clojure.leinPath": "C:\Users\John\.lein\bin\lein",

    // Absolute path to the tools.jar file (JAVA JDI jar file)
    "clojure.toolsJar": "C:\Program Files\Java\jdk1.8.0_60\lib\tools.jar",

@indiejames
Copy link
Owner

Can you replace "lein" with "C:\Users\John.lein\bin\lein" in launch.json and give it another try?

@Nadejde
Copy link

Nadejde commented May 6, 2017

@indiejames thank you.
Adding the full path to lein in the commandLine helped in my case.

@jink
Copy link
Author

jink commented May 8, 2017

@indiejames thank you.
Adding "C:\Users\John.lein\bin\lein.bat" worked for me.

@johnjelinek
Copy link

The absolute path helped (with double \ in the path). I get a follow-up error in the debug console:

Launch requestListening for transport dt_socket at address: 8030
REPL server launch timed out.
Error encountered performing task 'repl' with profile(s): 'base,system,user,provided,dev,debug-repl'
REPL server launch timed out.

@johnjelinek
Copy link

Is there any way to alter the timeout time?

@johnjelinek
Copy link

I increased the timeout in project.clj, but after the nREPL loaded, vscode stated: Debug adapter process has terminated unexpectedly again.

@johnjelinek
Copy link

Turns out I had a typo: I was missing an extra \ in my lein path in VS Code's settings.

@4mitch
Copy link

4mitch commented Sep 26, 2017

Hello! Well, I've just installed Leiningen for the first time. And got the same subj error and "Starting RELP" in VS Code status line with demo project.
But I don't have "C\Users\[username]\.lein\bin " directory. I only see "c:\Users\[username]\.lein\self-installs" with leiningen-2.7.1-standalone.jar inside.
What does it mean?
I have lein.bat file in other directory. Should "clojure.leinPath" show this way?

@4mitch
Copy link

4mitch commented Sep 27, 2017

Well, I made a value of $lein-path as a directory of lein.bat and subj error has gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants