-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hurlfmt producing repeated content #2533
Comments
In case I did something strange while creating my input file, here's a binary dump:
|
Hi @CodeMan99 Thanks for the detailed issue, it looks like a bug! Nice catch! |
Best I tell it seems to be triggered by having any text after the variable placeholder. |
Thanks again for the report @CodeMan99 , this was more than a format issue. The parsing logic for filename with variables was buggy and should be fixed by #2545. |
Very nice! Code changes look sane to me. That said I have zero context as I've really only glanced at the format code. I'm alright with Rust, but it takes more than a once-over to grasp :) |
What is the current bug behavior? 🪲
When using
hurlfmt
sometimes a variable placeholder is repeated in the output.Applies only to
--out hurl
formatting. Using--out json
or--out html
do not produce the incorrect behavior.Steps to reproduce 🔗
Source file, called get_hurl.hurl:
I then called
cargo run --package hurlfmt get_hurl.hurl
, which produced:Noticed the last
output
line where./hurl_{{version}}
is stated twice.What is the expected correct behavior? ✔️
The input file seems to be mostly formatted correctly. I would only expect colors to be applied. That said, I'm new here! 👋
Execution context 🖥️
hurlfmt --version
):hurlfmt 4.3.0-SNAPSHOT
@ 0931c32Possible fixes
❔
The text was updated successfully, but these errors were encountered: