- Notifications
You must be signed in to change notification settings - Fork 221
Closed
Description
Environment
- Elixir & Erlang versions (elixir --version): Erlang/OTP 23 [erts-11.1.7] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
Elixir 1.11.3 (compiled with Erlang/OTP 21)
- VSCode ElixirLS version: 0.7.0
- Operating System Version: darwin 20.3.0
Troubleshooting
- Restart your editor (which will restart ElixirLS) sometimes fixes issues
- Stop your editor, remove the entire
.elixir_ls
directory, then restart your editor- NOTE: This will cause you to have to re-run the dialyzer build for your project
You can reproduce this by deleting the .elixir_ls
directory, and then saving a file to trigger the LS to start recompiling, then run the formatter. You observe that it is not respecting the formatter configuration because it is adding parens to Ecto functions/macros that shouldn't have parens.
The screen recording I added above using VSCode, but I have also reproduced it with Neovim builtin language client.
I personally have never run into this race condition, but my coworkers constantly are pushing up code that is clearly formatted incorrectly, and I traced it down to this issue.
Thanks!
nifoc, brettwise, MrGrinst, andersonmcook, miros and 43 more
Metadata
Metadata
Assignees
Labels
No labels