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

Extension not working anymore #143

Open
AhmedAzzabi opened this issue Nov 23, 2017 · 5 comments
Open

Extension not working anymore #143

AhmedAzzabi opened this issue Nov 23, 2017 · 5 comments

Comments

@AhmedAzzabi
Copy link

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

@Eskotus
Copy link

Eskotus commented Feb 1, 2018

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
Copy link

Eskotus commented Feb 1, 2018

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
Copy link

haus commented Mar 26, 2018

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
Copy link

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

@holtalanm
Copy link

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.

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