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 #35

Closed
tekord opened this issue May 13, 2018 · 5 comments
Closed

Debug adapter process has terminated unexpectedly #35

tekord opened this issue May 13, 2018 · 5 comments

Comments

@tekord
Copy link

tekord commented May 13, 2018

Hi! Thanks for nice extension. But I have some issues with it. The most important for me now is not working debugger. It worked earlier, but I edited launch configuration and VS showed me the error: "Debug adapter process has terminated unexpectedly". I returned my launch configuration back, but it didn't help. My current launch configuration is:

        {
            "name": "ANTLR",
            "type": "antlr-debug",
            "request": "launch",
            //"input": "${workspaceFolder}/${command:AskForTestInput}",
            "input": "tests/input.qs",
            "grammar": "QaterParser.g4",
            "startRule": "program",
            "printParseTree": true, // I removed this line when I got the error in first time
            "visualParseTree": true
        },

My workspace config is the following:

    "antlr4.generation": {
        "mode": "internal",
        "outputDir": "generated",
        "language": "Cpp", // I know this is not used when mode is 'internal'
        "listeners": false,
        "visitors": true
    },
@tekord
Copy link
Author

tekord commented May 13, 2018

Oh, i disabled all C++ and C# extensions, restarted VS and the error is gone.

@mike-lischke
Copy link
Owner

Hmm, so it seems some other extension has side effects? You could try to enable them back, one by one, to find out what the real culprit is. In any case I guess we can close this issue, right?

@mike-lischke
Copy link
Owner

Has this issue been resolved?

@linonetwo
Copy link

linonetwo commented Aug 21, 2018

Same on me, my launch.json:

{
  "version": "2.0.0",
  "configurations": [
    {
      "name": "antlr4-tokenRegexIt",
      "type": "antlr-debug",
      "request": "launch",
      "input": "examples/literal.txt",
      "grammar": "TokenRegexIt.g4",
      "startRule": "query",
      "printParseTree": true,
      "visualParseTree": true
    }
  ]
}

setting.json

{
  "antlr4.generation": {
    "mode": "external",
    "language": "JavaScript",
    "outputDir": "./src/antlrGeneratedParser",
    "listeners": true,
    "visitors": true
  },
  "antlr4.referencesCodeLens.enabled": true
}

Should I change something on "antlr4.debug": {},?

@linonetwo
Copy link

linonetwo commented Aug 21, 2018

Solved, my fault, I didn't notice that "startRule" means the rule in .g4 file. I thought It was a vscode task setting.

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

3 participants