Skip to content
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

Piping wrapped function calls requires formatter to run multiple times for proper output #94

Closed
tomjschuster opened this issue Dec 4, 2023 · 1 comment

Comments

@tomjschuster
Copy link

Versions

  • Elixir: 1.15.7
  • Styler: 0.10.2

Example Input

    f(g(h(x))) |> j()

Stacktrace / Current Behaviour

mix format needs to be called 3 times to get the expected output:

x |> h() |> g() |> f() |> j()

Here are the results for each mix format call:

  1. g(h(x)) |> f() |> j()
  2. h(x) |> g() |> f() |> j()
  3. x |> h() |> g() |> f() |> j()
@novaugust
Copy link
Contributor

novaugust commented Dec 5, 2023

thanks tom! ❤️ will ship a new version soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants