comby-tools/comby

Discrepancy between Comby.live and CLI

d4hines opened this issue · 3 comments

Describe the bug
I'm trying to strip out all comments in OCaml files. I have the a working example on comby.live which is typically what I use to prototype a script.

However, when I run the script output by Run in Terminal button in Comby.live, it fails to strip the comments. For reference, i've uploaded a replica of my local files in this gist: https://gist.github.com/d4hines/2a61fe88c2a8a555157a25ae57dfce69

Thanks for any help you can provide with this!

Reproducing
See above links.

Expected behavior
Comby.live and the CLI should produce the same outputs.

Additional context
Add any other context about the problem here.

Hey thanks for the note and sorry about this. I've updated comby.live to stop this discrepancy from happening. With more recent CLI versions a flag is needed -match-newline-at-toplevel to get the same behavior (which is what the terminal button will show now). At some point the need for this flag will go away, I've been experimenting with different match behaviors to make this sort of thing less of an issue.

Also thanks for the files, I did check that the copy command works as expected

Screen Shot 2021-05-22 at 2 39 17 PM

Cool, thanks!