I’ve noticed that the emacs support is starting to get behind other editors. Actually, alchemist and elixir-mode are really nice, but they are lagging behind in terms of evolution. Several issues without answer and no new releases for a while.
I started to take a look at alternatives and I really like the idea of a Language Server for Elixir (and Erlang). Elixir-ls works nicely with Visual Studio Code and I wonder if it would work with emacs-lsp but Haven found the time to try it yet.
So, has anyone tried this combination with luck? I really think all efforts on IDE/text editors support should focus on language server now. We would all have a very similar experience with our prefered keybindings and plugins…
Definitely agree—I use spacemacs daily but know just enough elisp to be dangerous… literally. Trying get mix format to format my code on save i managed to get my emacs into a situation where I literally could not close it short of a force kill. Don’t ask me how, I have no idea.
So the moral of the story is that I’m at the tender mercies of those brave souls who forge a path for us mortals to tread. I wish I could help move integrations like alchemist forward, but seriously, I’m a danger to others. I’m going to check out this lsp-mode and pray I don’t manage set off a WarGames situation. Will report back if I’m successful, but don’t wait too long to send out search parties.
My elisp is also potentially dangerous heheh, I’ve been using emacs for a couple of months only, so I can only do the basic stuff… but gonna play a bit with it, at least take a look at what they did for the other languages
Yeah, this is not yet ready for spacemacs, unfortunately. I originally thought I could do a back-end refactor of alchemist and get rid of all the original code, using only elixir-ls, but it turns out that alchemist does a lot of things that need to be implemented in the LSP server, so I’m going to do the refactor much more incrementally.
I’m looking forward to collaborating with the community on the growth of elixir_sense (the Elixir code analyzer), elixir-ls (the Elixir LSP server) and alchemist (the emacs client).
I’ve started forks of the back-end components ( https://github.com/elixir-lsp ) because I had a very hard time getting in touch with the maintainers – and because I think this stuff should belong to the community, not a single person.
Ah, you are correct! I’ll work on getting that updated, but I was also meaning to provide configuration examples for the elixir-ls elixir-lsp fork (and other projects). So I created a wiki post on this forum: Emacs - Elixir Setup Configuration Wiki. Specifically you want the elixir-ls elixir-lsp fork configuration section. Let me know if that makes sense/works for you, or even better just edit the post directly!
Also if anyone wants to contribute to the elixir-ls elixir-lsp fork, then hang out in the #alchemist-dev channel of the Elixir Slack (and maybe the #language-server channel but that isn’t very active).
Ooops, yeah nothing there was specific to VScode. I don’t use that myself so I’m not sure how to switch the elixir-ls version that you’re using with the extension. But it looks like the “contributing” instructions in the repo may get you partway there.