-
Notifications
You must be signed in to change notification settings - Fork 196
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
~H sigils no longer formatted after updating to Elixir 1.15.5 #975
Comments
Thanks for the report. There were formatter plugin related changes in 1.15.5. I will investigate |
I just want to chime in that I have the exact same problem with the same environment. |
I've had the same issue but specifically within an umbrella project - @lukaszsamson @champeric are you both working in umbrella projects as well? It also seems to work sporatically, almost like it's using the wrong .formatter.exs configuration for the wrong project app. |
Thanks for reporting. This is a regression in elixir 1.15.5 |
Already fixed upstream and backported to 1.15 branch. 1.16 and 1.15.6 releases should not be affected by this bug |
Thanks! |
Environment
Current behavior
After updating to Elixir 1.15.5 ~H sigils are no longer formatted by the VSCode ElixirLS plugin. To reproduce, generate a new Phoenix project with
mix phx.new example
. The generatedExampleWeb.CoreComponents
module contains ~H sigils that can be used for testing and the generated.formatter.exs
file includesplugins: [Phoenix.LiveView.HTMLFormatter]
. Runningmix format
from the command line will result in the ~H sigils being formatted. But if the formatter is run by ElixirLS then the Elixir code is formatted but not the ~H sigils.Downgrading to Elixir 1.15.4 fixes the problem.
Expected behavior
I would expect ~H sigils to be formatted by ElixirLS as it was prior to Elixir version 1.15.5.
Thanks.
The text was updated successfully, but these errors were encountered: