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
I'm not sure which of the behaviors is the intended one, but since this isn't documented in the 1.16 release changelog I think the expected behavior is the one prior to that version: that :column sets the starting column and then get reset, instead of behaving as an indentation value.
The text was updated successfully, but these errors were encountered:
I will do some digging on the root cause here. It may have been an intentional change as I can see both approaches being useful. I assume you need the original approach? Because you are parsing regular code, just starting later?
Elixir and Erlang/OTP versions
Erlang/OTP 26 [erts-14.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
Elixir 1.15.8 (compiled with Erlang/OTP 24)
Erlang/OTP 26 [erts-14.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
Elixir 1.16.0 (compiled with Erlang/OTP 24)
Operating system
macOs Sequoia 15.3.2
Current behavior
I think there is a bug introduced in elixir 1.16 when passing
:column
toCode.string_to_quoted
In elixir 1.15 it would change the starting column of the code, and then it would reset on subsequent newlines:
But since elixir 1.16 it treats
column
as an indentation value, notice that now theend
metadata column is shifted too:Expected behavior
I'm not sure which of the behaviors is the intended one, but since this isn't documented in the 1.16 release changelog I think the expected behavior is the one prior to that version: that
:column
sets the starting column and then get reset, instead of behaving as an indentation value.The text was updated successfully, but these errors were encountered: