plutus icon indicating copy to clipboard operation
plutus copied to clipboard

`uplc convert` command sometimes generates an empty file on failure.

Open carloskiki opened this issue 5 months ago • 1 comments

Summary

uplc convert command sometimes generates an empty file on failure, instead of not generating anything.

Steps to reproduce the behavior

in this repository:

cabal run uplc -- convert -i plutus-conformance/test-cases/uplc/evaluation/builtin/constant/bls12-381/G1/on-curve-bit3-clear/on-curve-bit3-clear.uplc -o bug-reproduction.flat --of flat

Actual Result

an empty bug-reproduction.flat file is generated.

Expected Result

No file should be generated.

Describe the approach you would take to fix this

Make the command consistent by never generating any files on failure.

System info

N/A

carloskiki avatar Nov 15 '25 14:11 carloskiki

Thanks for reporting this and I was able to reproduce it. I'm labeling it low priority because it does not directly affect the correct behaviour of the convert subcommand.

basetunnel avatar Nov 17 '25 10:11 basetunnel