Updating to the latest release should happen automatically
Major improvement: Support workspaces with multiple elixir projects (especially those where the Elixir project is not part in the root) (thanks Alessandro Tagliapietra) #70
Support per-folder configuration for many settings (makes the multi-workspace support more powerful) (thanks AJ Foster) #110
Major improvement: Improved support for phoenix templates (thanks Marlus Saraiva) #93
Shows errors in .eex and .leex files (instead of associated .ex file)
Improve syntax highlighting following pipes (thanks Dusty Pomerleau) #81
Would love it if someone could upload the VSCode package to https://open-vsx.org/ so that users of the latest version of VSCodium – the fully open source binary of VSCode – can access ElixirLS via that marketplace without having to hack around to the Microsoft marketplace (as newer versions of VSCodium now require).
Yeah, turns out there were a couple issues with the packaging for the VSCode extension for 0.6.0. I’ve released a new version of the VSCode extension (0.6.1) that resolves them.
Apologies if I am just barging in to ask – what is the status of an Emacs LSP-mode integrated server? I am looking for something like in Rust where you can automatically call format on save, jump to definitions, run various mix sub-commands.
ElixirLS can do all of those except running arbitrary mix commands.
There’s two main LSP packages to use with Emacs, lsp-mode and eglot. lsp-mode is more featureful and what I would generally recommend (and is what I personally use). This wiki is generally up to date and a good overview: Emacs - Elixir Setup Configuration Wiki
Thanks. I’m using Spacemacs casually for several months and still haven’t learned to properly customize it. Any idea where exactly in its init file should I put this block?
You do not need the full block, I just posted the full area because it was simpler for me And sadly I can not tell where to put that in spacemacs.
Its basically the reason why I dropped spacemacs. All packages READMEs assumed vanilla emacs + use-package. It usually took me hours to find out where to put stuff.
After I dropped spacemacs and did a free form emacs config, which I later split into many files, organized similar to how Steve Purcell did, it became a lot easier. Eventually I got to the point where I had everything I need in my emacs config, and even though I did not leverage lazy loading, the config loaded within 5 to 7 seconds, while spacemacs never really got below 20, despite the fact that it advertised itself as “fast”.
Also, perhaps its time that someone opens an issue at spacemacs and tells them that Alchemist is not state of the art anymore but anyone uses lsp-mode/eglot + the LS.
PS: The important part is actually this:
(add-hook 'elixir-mode-hook ;; when we enter elixir mode
(lambda () ;; call this function
;; Format on save, this buffer only.
(add-hook 'before-save-hook #'lsp-format-buffer nil t)))
If you use eglot rather than lsp-mode you need to figure out what function you have to put there in the hook.
Did a git pull the other day and then git checkout v0.6.2. Both Elixir and Rust language servers fail with reasons I can’t find. Where should I look?
With Elixir I get “Server <…> status:starting exited with status exit. Do you want to restart it?”-- even if I press Y the same things happens until I press N.
Can anyone help?
EDIT: Sorry, had a bad day. It was as simple as asdf local erlang 23.1.5 because my project used an older version that I’ve since deleted. Apologies for polluting the thread.