vscode-clojure-debug icon indicating copy to clipboard operation
vscode-clojure-debug copied to clipboard

Extension not working anymore

Open AhmedAzzabi opened this issue 7 years ago • 5 comments

Environment

  • VSCode Version: 1.18.1
  • OS Version: Windows 10
  • Clojure Extension Version: 1.2.0

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

AhmedAzzabi avatar Nov 23 '17 21:11 AhmedAzzabi

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) ...

Eskotus avatar Feb 01 '18 19:02 Eskotus

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.

Eskotus avatar Feb 01 '18 20:02 Eskotus

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.

haus avatar Mar 26 '18 05:03 haus

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

  • VSCode Version: 1.25.1
  • ArchLinux 4.17.12 x86_64
  • Clojure Code Extension Version: 1.2.0

andrey-pavlenko avatar Aug 09 '18 08:08 andrey-pavlenko

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.

holtalanm avatar Mar 09 '19 22:03 holtalanm