elixir-lsp / coc-elixir

Elixir language server extension based on elixir-ls for coc.nvim
MIT License
168 stars 11 forks source link

Duplicated Erlang binaries resulting in `:badfile` error #49

Open wulymammoth opened 3 years ago

wulymammoth commented 3 years ago

I'm unsure why, but whenever I use this particular plugin with Elixir, I always end up with several issues:

  1. it continues to create a .elixir_ls directory in my project even though"elixirLS.dialyzerEnabled": false is set in my coc-settings. According to the README this is only needed for Dialyzer
  2. when I start my Phoenix application or start the tests, I sometimes encounter duplicated binaries as if multiple versions of the project had been built and suffixed, which obviously confuses the runtime -- take notice to the 2 suffix right before the .beam file extension
    13:32:55.608 [error] Loading of ~/foo/_build/dev/lib/thinger_majigger/ebin/Elixir.Foo.LiveHelpers 2.beam failed: :badfile

    I currently just $ rm -rf _build/dev and rebuild from scratch which kinda sucks since the project must be rebuilt again

If anyone has encountered a way to address/fix this, I'd love to know. Thanks