Skip to content

v0.22.1 can not logger format liveview projects #1110

Open
@NoBrainSkull

Description

@NoBrainSkull

Environment

  • Elixir & Erlang versions (elixir --version):
    Tested with both :
Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1] [jit:ns]

Elixir 1.17.2 (compiled with Erlang/OTP 27)

and

Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1] [jit:ns]

Elixir 1.16.3 (compiled with Erlang/OTP 26)
  • Elixir Language Server version: v0.22.1
  • Operating system: Archlinux
  • Editor or IDE name (e.g. Emacs/VSCode): Neovim
  • Editor Plugin/LSP Client name and version: nvim-lsp

Current behavior

Calling the LSP format function will fail with the following :

(Mix.Error) Formatter plugin Phoenix.LiveView.HTMLFormatter cannot be found

For some reason, the &Code.ensure_loaded?/1 call in the &load_plugins function returns false for the LiveView.HTMLFormatter in this version

Expected behavior

Reverting elixir-ls to v0.22.0 fixes the problem entirely, with no observed impact from Elixir/OTP version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions