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

Elixir LSP not formatting #7864

Open
4 tasks done
ankhers opened this issue May 17, 2024 · 0 comments
Open
4 tasks done

Elixir LSP not formatting #7864

ankhers opened this issue May 17, 2024 · 0 comments
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet

Comments

@ankhers
Copy link

ankhers commented May 17, 2024

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.

  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.

  • The issue can be reproduced on the latest available commit of Doom.

  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

When I save an Elixir file, I expect elixir ls to format the file

Current behavior

When I save the Elixir file, apheleia-mode ends up being used to format the buffer instead.

If I remove elixir-mode from apheleia-mode-alist and try to save a file, no formatting happens.

When I manually run +format/buffer, it does use the configured LSP in order to format the buffer. +format-with-lsp is also set to t.

Steps to reproduce

  1. With (elixir +lsp) and lsp enabled in general
  2. Open an Elixir file (.ex)
  3. make some modifications
  4. save the file

System Information

https://paste.sr.ht/~ankhers/53edc4aa233207d9ca989bc76617b32f739f18f0

@ankhers ankhers added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet
Projects
Status: No status
Development

No branches or pull requests

1 participant