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 session process exited with status: exited abnormally with code 1 #665

Closed
sparkcanon opened this issue Aug 31, 2022 · 8 comments
Closed

Comments

@sparkcanon
Copy link

When I run dap-debug and select a configuration template, I see Debug session process exited with status: exited abnormally with code 1 as an echo message.

The configuration I am running:

            "type": "node",
            "request": "launch",
            "name": "Jest Current File",
            "runtimeVersion": "16.13.1",
            "program": "${workspaceFolder}/node_modules/.bin/jest",
            "args": ["${relativeFile}", "--verbose", "-i", "--no-cache", "--watch"],
            "console": "integratedTerminal",
            "internalConsoleOptions": "neverOpen",
            "disableOptimisticBPs": true
@yyoncho
Copy link
Member

yyoncho commented Aug 31, 2022

check stderrr buffer and I hope that this is not the whole json file, because it is not valid json.

@sparkcanon
Copy link
Author

Thanks for the reply and apologies for not posting the complete json file before.

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Jest All",
            "runtimeVersion": "16.13.1",
            "program": "${workspaceFolder}/node_modules/.bin/jest",
            "args": ["--runInBand"],
            "cwd": "${workspaceRoot}",
            "protocol": "inspector",
            "console": "integratedTerminal",
            "internalConsoleOptions": "neverOpen",
            "disableOptimisticBPs": true,
            "windows": {
                "program": "${workspaceFolder}/node_modules/jest/bin/jest"
            }
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Jest Current File",
            "runtimeVersion": "16.13.1",
            "program": "${workspaceFolder}/node_modules/.bin/jest",
            "args": ["${relativeFile}", "--verbose", "-i", "--no-cache", "--watch"],
            "console": "integratedTerminal",
            "internalConsoleOptions": "neverOpen",
            "disableOptimisticBPs": true
        }
    ]
}

The output from the stderr buffer,

node:internal/modules/cjs/loader:958
  throw err;
  ^

Error: Cannot find module '/Users/p.borde/.emacs.d/.local/cache/.extension/vscode/ms-vscode.node-debug2/extension/out/src/nodeDebug.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:955:15)
    at Module._load (node:internal/modules/cjs/loader:803:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:18:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.8.0

Process Jest Current File stderr finished

@sparkcanon
Copy link
Author

I am using doom emacs and i have this in my config.el

(use-package! dap-mode
  :config
  (require 'dap-node)
  (dap-node-setup))

@yyoncho
Copy link
Member

yyoncho commented Aug 31, 2022

That adapter is broken, we have to fix it. I think that there was a bug about that.

@sparkcanon
Copy link
Author

Understood, thanks having a look. For now, ive manually extracted the debug program.

@eeshugerman
Copy link

eeshugerman commented Sep 12, 2022

I'm seeing the same error when I run dap-debug. I noticed this in *Messages* after running (dap-node-setup 1):

[/var/folders/4x/k0952rkx6ys6lyn62d_xrc240000ks/T/extiEAkFa.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /var/folders/4x/k0952rkx6ys6lyn62d_xrc240000ks/T/extiEAkFa.zip or
        /var/folders/4x/k0952rkx6ys6lyn62d_xrc240000ks/T/extiEAkFa.zip.zip, and cannot find /var/folders/4x/k0952rkx6ys6lyn62d_xrc240000ks/T/extiEAkFa.zip.ZIP, period.

On further inspection, I found the "zip" is not a zip at all, but JSON indicating (at face value) some kind of rate limit failure:

$ cat /var/folders/4x/k0952rkx6ys6lyn62d_xrc240000ks/T/extiEAkFa.zip
{"$id":"1","innerException":null,"message":"Request was blocked due to exceeding usage of resource 'Count' in namespace 'AnonymousId'. For more information on why your request was blocked, see the topic \"Rate limits\" on the Microsoft Web site (https://go.microsoft.com/fwlink/?LinkId=823950).","typeName":"Microsoft.TeamFoundation.Framework.Server.RequestBlockedException, Microsoft.TeamFoundation.Framework.Server","typeKey":"RequestBlockedException","errorCode":0,"eventId":3000}

pretty printed:

{
    "eventId": 3000,
    "errorCode": 0,
    "typeKey": "RequestBlockedException",
    "typeName": "Microsoft.TeamFoundation.Framework.Server.RequestBlockedException, Microsoft.TeamFoundation.Framework.Server",
    "message": "Request was blocked due to exceeding usage of resource 'Count' in namespace 'AnonymousId'. For more information on why your request was blocked, see the topic \"Rate limits\" on the Microsoft Web site (https://go.microsoft.com/fwlink/?LinkId=823950).",
    "innerException": null,
    "$id": "1"
}

@texaco
Copy link

texaco commented Sep 13, 2022

Well it seems we are not the only one with this issue, please refer to this issue message for a workaround. It worked for me.

#554 (comment)

@eeshugerman
Copy link

Thanks for linking @texaco. @sparkcanon @yyoncho I suggest this be closed as a dupe

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

4 participants