indiejames / vscode-clojure-debug

A VS Code package for developing Clojure code
MIT License
84 stars 6 forks source link

Extension not working anymore #143

Open AhmedAzzabi opened 7 years ago

AhmedAzzabi commented 7 years ago

Environment

Description

Extension stopped working suddenly (maybe due to vscode update) i get

Steps to Reproduce

  1. In Any clojure project or demo project do F5 to launch debugger

I get TypeError: Cannot read property 'replace' of undefined Line 612 in file ClojureDebug.js

Note : this extension was working correctly until recently, settings are configured correctty

Eskotus commented 6 years ago

Same problem here. First time installing VSCode and Clojure Code. Just set up the extension and debugging according to instructions and got the same error when trying to launch debugger.

For me the error was almost same as above TypeError: Cannot read property 'replace' of undefined at ClojureDebugSession.createDebuggerProject (C:....\out\clojureDebug.js:617:32) ...

Eskotus commented 6 years ago

Looks like the launch.json automatically created by clicking the gear icon and selecting "Clojure Debug" is missing lots of stuff.

Here's my automatically created launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "commandLine": [ "$lein_path", "with-profile", "+debug-repl", "repl", ":start", ":port", "5555" ], "name": "Clojure-Debug", "type": "clojure", "request": "launch", "env": {} } ] }

That is pretty much the stuff that can be seen in the args variable when I tried to debug this issue. Error is caused by trying to access method replace of variable args.toolsJar.

haus commented 6 years ago

I ran into this on a fresh install of VSCode and this plugin. After adding the extra elements to launch.json (copied from the example gif in the README), I'm getting an error that the 'Debug adapter process has terminated unexpectedly' but I don't see any indication as to what has happened.

andrey-pavlenko commented 6 years ago

Default launch parameters: "Debug adapter process has terminated unexpectedly"

holtalanm commented 5 years ago

Same problem here. First time installing VSCode and Clojure Code. Just set up the extension and debugging according to instructions and got the same error when trying to launch debugger.

  • VSCode Version: 1.19.3
  • OS Version: Windows 10
  • Clojure Code Extension Version: 1.2.0

For me the error was almost same as above TypeError: Cannot read property 'replace' of undefined at ClojureDebugSession.createDebuggerProject (C:....\out\clojureDebug.js:617:32) ...

getting the same error. Replaced the generated launch.json contents with the following:

{
            "name": "Clojure-nREPL",
            "type": "clojure",
            "request": "launch",
            "commandLine": [
              "$lein_path",
              "with-profile",
              "+debug-repl",
              "repl",
              ":headless",
              ":port",
              "7777"
            ],
            "replPort": 7777,
            "debugReplPort": 7778,
            "debugPort": 9999,
            "sideChannelPort": 3030
          }

no dice. still same error. I'm at a loss for what needs to be done here to make it work. Just installed Leiningen and Clojure, decided to try this extension in VSCode and....nothing.