Closed lexidor closed 4 years ago
That's weird, I'm not sure what's going on, because the option exists in the latest HHVM version and I don't remember it failing on any other versions recently. Can you provide the exact commands to reproduce it + exact output? Do you have multiple HHVM versions installed so it could be running hackfmt
from a different version accidentally?
Indeed, there was something wrong with my local install.
After apt get purge hhvm
hackfmt was still there.
which hackfmt
returned /usr/local/bin/hackfmt
.
I have sudo rm
'ed /usr/local/bin/hackfmt
and reinstalled hhvm.
which hackfmt
now returns /usr/bin/hackfmt
.
This now formats the code as expected.
Thanks for the help, I didn't know my install was dirty. :thinking: how this got to be, I don't know.
When running on hhvm 4.68 (and others), this code throws.
Hackfmt emits this message:
hackfmt: unknown option '--format-generated-code'
. Can this be removed safely, without breaking someone's build on some version?