vscode-decompiler icon indicating copy to clipboard operation
vscode-decompiler copied to clipboard

[Ghidra]Failed to run decompliation command.

Open yixinBC opened this issue 2 years ago • 1 comments

I think I have installed everything as guided.But all I had was the mercyless error.

Failed to run decompiliation command. Check your configuration. 
{
  "code": {
    "errno": -4058,
    "code": "ENOENT",
    "syscall": "spawn \"C:\\Program Files\\ghidra_10.1.5_PUBLIC\\support\\analyzeHeadless.bat\"",
    "path": "\"C:\\Program Files\\ghidra_10.1.5_PUBLIC\\support\\analyzeHeadless.bat\"",
    "spawnargs": [
      "C:\\Users\\yixin\\AppData\\Local\\Temp\\tmp-56784-WSVeXLwz8yco",
      "vscode-decompiler",
      "-import",
      "c:\\Users\\yixin\\code\\C\\220907\\sumof1to100.exe",
      "-scriptPath",
      "c:\\Users\\yixin\\.vscode\\extensions\\tintinweb.vscode-decompiler-0.1.0\\scripts",
      "-postScript",
      "c:\\Users\\yixin\\.vscode\\extensions\\tintinweb.vscode-decompiler-0.1.0\\scripts\\ghidra_decompile.py",
      "C:\\Users\\yixin\\AppData\\Local\\Temp\\tmp-56784-u23w3HbLeEDi"
    ]
  },
  "type": "single",
  "err": "tool returned non-zero exit code"
}

Thanks for any assistance you can provide

yixinBC avatar Sep 07 '22 12:09 yixinBC

Two things to double-check:

  1. You need Python3 installed system-wide and in the path (a user install in the user path might work - haven't tried)
  2. It is my experience that it cannot handle spaces or parentheses in the file paths

JMPZ11 avatar Jan 09 '23 01:01 JMPZ11