8 ms·
I tried out Elixir a couple months back, but had no end of problems getting the tooling set up in VSCode.
by mjhay 3y ago
I tried out Elixir a couple months back, but had no end of problems getting the tooling set up in VSCode.
- pawelduda 3y agoHad no problem with neovim but I think it uses the same LSP under the hood
- freedomben 3y agoIt does. That's what I use. If you have trouble, check that the erlang version you're using is compatible.
- pawelduda 3y agoThat's a good point which also applies to tooling such as observer, etc.
- selykg 3y agoMy experience, admittedly is not one where I am a full time developer just a hobbyist and sort of dev adjacent for work, is that getting _any_ tooling setup in VSCode is a path with no end of problems. So, at least when someone says that type of thing here I go "ah, so the norm." I think saying things like that is more an indictment against VSCode. Don't get me wrong, I think getting vim/neovim setup to do the same types of things is possibly worse, but I haven't really had much of a better experience in VSCode either.
- matthewsinclair 3y agoI have to say that my experience could not have been more different. So far, everything I’ve done within the Elixir ecosystem has “just worked” (with the exception of some stuff with supervisors, the config and intuition for which are currently eluding me). For example, I managed to code a full image processing pipeline (classification, labelling, and description) using Elixir, Nx, Bumbkebee, etc on the train on the way into work the other day. Which is about a 35 min trip. If we’re talking about tooling, the last time I tried to just print “Hello, world!” in either Python or JavaScript, it took me down a hell dungeon of configuration and dependency nightmares. To be fair to both, tho, that was some time ago so I can only hope that situation has cleared up more recently.
- mjhay 3y agoI was mainly interested in working with Nx and friends, which look pretty nice. Good to hear about your experience with that. The ElixirLS server always crashed for me on init. The problem is assuredly on my end, but I was never able to fix it. https://elixirforum.com/t/elixirls-not-working-runtime-terminating-during-boot/56017 https://elixirforum.com/t/elixirls-not-working-runtime-termi...
- atonse 3y agoI just discovered elixir-tools which has an LSP and it works instantly, and seems to have a more robust architecture than ElixirLS. I used ElixirLS for a couple years now but it was the best option for a while, but elixir-tools (which I literally installed 30 mins ago) has been a delight to work with. The instant feedback actually feels like how it always should've been.
- karmajunkie 3y agoi tried it out but wasn’t really happy with it in emacs. ended up going back to elixir-ls until elixir-tools is a little further along.
- mhanberg 3y agoNext LS author here! I would love to hear about how your emacs experience went and what your setup/config is. My emacs skills are not the best (zero), so I've not been able to really work through any of the kinks. I have recently gotten it working tho with vanilla emacs with eglot, as well as doom emacs (again, with eglot). No pressure!
- karmajunkie 3y agohappy to provide feedback when i get a minute! i’m also utterly useless in elisp so not sure how useful it’ll be but ill try and make it helpful :)
- 3y ago
- sph 3y agoThat's an unrelated tangent better served by asking on elixirforum.com instead of polluting a thread with a drive by complaint.
- lawik 3y agoThe in-editor tooling definitely has rough edges. I've done a lot of Elixir and the ElixirLS stuff falls over a lot for me. There is a new effort with NextLS that seems very promising.
- sergiotapia 3y agoElixirls is finnicky and works 50% of the time in my experience. Don't know why. Try using Zed it comes with Elixir support out of the box, and uses nextls, which works always for me. Snappy as hell! Like Sublime Text 4.0 https://github.com/elixir-tools/next-ls https://github.com/elixir-tools/next-ls
- mhanberg 3y agoNext LS author here, thanks for the kind words!
- aeturnum 3y agoNextLS also has an extension for VSCode![1] I've found the ElixirLS works best with the projects I use at work, but there's a lot of exciting language server development in the space. [1] https://marketplace.visualstudio.com/items?itemName=elixir-tools.elixir-tools https://marketplace.visualstudio.com/items?itemName=elixir-t...
- sergiotapia 3y agoThis did not work for me. I installed the extension on Linux Mint, VS Code Insiders, and intellisense/autocomplete never worked no matter how many times I restarted the editor.
- aeturnum 3y agoI never got it fully working either - it kept getting stuck on one of my dependencies, which happens to ElixirLS sometimes too.
- itronitron 3y agoThat is why I don't use VSCode. While it's is a nice text editor, VSCode is lacking features that were standard in IDEs over twenty years ago.
- tokamak-teapot 3y agoWhat kind of features? With Elixir, I use the ‘click in stack trace to go to error’ feature, do some debugging, use code completion, test running - and not much else. I’d be interested to know what other kinds of features there could or should be, as I’d like to be as productive as possible and I don’t feel like I really am.
- itronitron 3y agoI'm just starting to learn Elixir, but for other languages as you type in the code editor in an IDE it will auto-suggest method names and method arguments based on the libraries/modules you have included in your project. Eclipse got this right, but the JetBrains IDEs (such as IntelliJ and CLion) are a bit heavy-handed.
- tokamak-teapot 3y agoThe Elixir add-ons for VS Code provide this too.