Environment information
Describe the bug
When saving a project and re-opening it, the ghidra decompiler parser no longer works ("Failed to parse JSON from r2ghidra")
To Reproduce
Use the app image, save a project, reopen it, and try to use the decompiler.
What I think the problem is
I think I have found a cause for this problem, as well as a functioning workaround until a fixe is made. When saving the project, the rc file has the following line :
"e r2ghidra.sleighhome = /tmp/.mount_CutteryMD9MD/usr/share/radare2/plugins/r2ghidra_sleigh"
Given that the plugins seem to be temporarily mounted, when restarting cutter the path may have changed, giving my error.
Workaround
I simply remove that line from the rc project file (sed -i '/ghidra.*home/d' rc is enough)
Side note
I'd like to thank everyone who has been working on this marvelous project, which is now even better now with the implementation of ghidra's algorithms. Many hugs to y'all ! :)
Sorry for getting to the issue only now, thank you for your nice words! Appreciate it :)
CC @thestr4ng3r
I have the same problem on arch linux, but instead of "Failed to parse JSON from r2ghidra" I get "// Ghidra Decompiler Error: No sleigh specification for x86:LE:64:default".
The solution is the same as the one found by @lazytanuki:
sed -i '/ghidra.*home/d' rc
I tried from cutter version 1.10.1 to 1.10.3 and they have all this problem
Most helpful comment
I have the same problem on arch linux, but instead of "Failed to parse JSON from r2ghidra" I get "// Ghidra Decompiler Error: No sleigh specification for x86:LE:64:default".
The solution is the same as the one found by @lazytanuki:
sed -i '/ghidra.*home/d' rcI tried from cutter version 1.10.1 to 1.10.3 and they have all this problem