Luyten icon indicating copy to clipboard operation
Luyten copied to clipboard

Empty files on export. / Save as .zip/.jar fails if procyon can't decompile a class file

Open jyapayne opened this issue 10 years ago • 6 comments

When exporting (Save all...) a large project, most of the files produced in the zip file are 0 bytes in size. empty files

jyapayne avatar Jul 25 '13 14:07 jyapayne

Thanks for the report. I believe that if the decompiler has an issue it aborts the operation. I'll try to gracefully handle exceptions.

deathmarine avatar Jul 27 '13 19:07 deathmarine

as workaround you can use java -jar procyon-decompiler-0.5.24.jar --jar-file jarnametobeprocessed.jar -o youOutputDirectory

1volt avatar Jan 23 '14 15:01 1volt

Merged #15 to #11. Now before if there was an issue with the decompilation the program would continue to iterate. This is not the case now however after many changes have yet to reproduce.

deathmarine avatar Oct 03 '14 03:10 deathmarine

Merged #42 to #11 as it seems that there is still an issue. This is difficult to test as Procyon becomes better at decompiling and handling it's exceptions.

deathmarine avatar Jan 08 '16 13:01 deathmarine

Same issue right now. Output .zip file is 22 bytes, which is an empty zip file. EDIT: Sorry, I was using the 0.4.4 version, 0.4.7 seems to work right now.

z3ntu avatar May 06 '16 09:05 z3ntu

Still an issue on released build for Windows 0.5.4 procyon 0.5.36 Workaround posted by 1volt works thanks.

java -jar procyon-decompiler-0.5.36.jar --jar-file %1 -o ./output

LiamKarlMitchell avatar Jun 12 '20 12:06 LiamKarlMitchell