You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Thanks for that lib, and hopefully I haven't missed anything in the docs, that this is an expected scenario 😄)
The text was updated successfully, but these errors were encountered:
itamm15
changed the title
Process being hung up while one of the if statements body is empty
The mix format process being hung up while one of the if statements body is empty
Sep 22, 2024
* fix infinite loop rewriting negated if with empty do body. closesadobe#196
* Remove unless from codebases (adobe#194)
* use `not` over `!` when rewriting `unless a (> >= < <= in) b`
* actually, lets only do `not` for `in`
* v1.1.0
* update version in readme
* Don't pipe into `Kernel.!` when rewriting unless with pipes
---------
Co-authored-by: Matt Enlow <enlow@adobe.com>
Versions
Example Input
Stacktrace / Current Behaviour
Without having the Styler passed in the
.formatter.exs
file (see itamm15/elixir-styler-error-repo@bb3b83c);With Styler passed in the
.formatter.exs
file (see itamm15/elixir-styler-error-repo@d37a4eb);(I waited for about 10 minutes, but nothing happened)
But when I explicitly set the
nil
in the first statement body;It works! (Styler just removed that case, and moved the comment to the
else
body), previously withnil
before Styler change;I created a repo for that https://github.com/itamm15/elixir-styler-error-repo, and there is an example test file https://github.com/itamm15/elixir-styler-error-repo/blob/master/lib/styler_error/error_case.ex
(Thanks for that lib, and hopefully I haven't missed anything in the docs, that this is an expected scenario 😄)
The text was updated successfully, but these errors were encountered: