4 ms·
I 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 excep
by matthewsinclair 3y ago
I 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 :)
- roblh 3y agoI had this problem too when I started, for me it was an incorrect Erlang version. Using asdf to install both of them fixed it for me completely, and was pretty much a good enough experience all around that I use it to manage Nodejs installs too now.
- freedomben 3y agoYes, protip: Use asdf to manage erlang and elixir versions. The only exception might be if you're on Fedora the packages tend to stay pretty new, but anywhere else (and even there if you need a specific version) asdf is a godsend. I use it to manage go, node, python, and ruby as well.
- freedomben 3y agoGetting set up a dev environment for me was painless, with ElixirLS being a big exception. For me the wrong version of erlang/OTP was causing crashes that weren't getting surfaced well. Fortunately I have enough Elixir experience that once I got the error message surfaced I was able to figure it out pretty readily, but yeah that experience can definitely be improved.
- thibaut_barrere 3y agoI am a long time Elixir user and I also find the VSCode experience a bit frustrating ; sometimes the completion did not work, for hard-to-tell reasons (I'm switching computers often). I have seen a couple of issues that have been worked-out. In particular, it's nice to have completion in ".exs" files!
- epiccoleman 3y agoOne thing that's been bugging me recently is completions in eex/heex template files. It seems like a tough problem to solve, since you need reasonable completion for html, heex syntax, and arguably also completion on things like schema fields for forms and then components that the project defines. But man, if I could have a smart editor for those templates I would be like... three times as productive on my little side projects.
- rob 3y ago> 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. On Mac: brew install node node -e "console.log('hello, world');" Seems pretty easy?
- thibaut_barrere 3y agoYou can also do "brew install elixir". But for any serious work I will more likely use asdf or nvm/rbenv/rvm.
- karmajunkie 3y agoi basically never recommend the brew version. on the occasion it gets installed i’ve had no end of problems from mismatched erlang version requirements and path management. asdf is just easier.
- matthewsinclair 3y agoYou left out what I said next in the comment you pull-quoted. :)