formatting suddenly stopped working
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 220
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I added the plugin using Plug and it was working swimmingly! Until yesterday it just stopped working and starting giving me a 'formatting failed' error every time I save a file (I had set the format on save option).
I don't know how to troubleshoot this. The one thing that comes to mind is that maybe I updated my global elixir and erlang versions (installed through asdf). I read in the README that "If you're not using Elixir 1.6 in your project, but want to use the formatter anyway, you can specify the bin directory of an alternative Elixir installation." Does that mean I should add the path to the specific version I'm using in the project installed with elixir with asdf? But, does this mean that when I change projects I have to change lines in the `vimrc`? Something like adding this to my `vimrc`:
`let g:mix_format_elixir_bin_path = '~/.asdf/installs/elixir/1.14.3-otp-25`
Or is the idea that I should be pointing the mix_format_elixir_bin_path to the installation of elixir 1.6? And yet
`let g:mix_format_elixir_bin_path = '~/.asdf/installs/elixir/1.6`
does not solve anything.
I'm really frustrated because I loved this plugin. Any help would be super appreciated! Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README guidance for mix_format_elixir_bin_path and the reported vimrc setting, then reproduce format-on-save with the project's asdf-managed Elixir and Erlang versions. Done means the cause of the formatting failure is identified and a documented configuration reliably formats files across projects.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir, erlang, vim
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100