News for hackers. Stuff that matters.
Re:Validating Data in Elixir: Using Ecto and NimbleOptions by mjhay on Tuesday November 07, 2023 @08:26AM (#38176447)
I 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-termi...

Re:Validating Data in Elixir: Using Ecto and NimbleOptions by atonse on Tuesday November 07, 2023 @09:34AM (#38177182)
I 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.

Re:Validating Data in Elixir: Using Ecto and NimbleOptions by karmajunkie on Tuesday November 07, 2023 @11:08AM (#38178527)
i 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.
Re:Validating Data in Elixir: Using Ecto and NimbleOptions by mhanberg on Tuesday November 07, 2023 @12:18PM (#38179682)
Next 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!

Re:Validating Data in Elixir: Using Ecto and NimbleOptions by karmajunkie on Tuesday November 07, 2023 @02:31PM (#38181622)
happy 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 :)
Re:Validating Data in Elixir: Using Ecto and NimbleOptions by roblh on Tuesday November 07, 2023 @09:39AM (#38177238)
I 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.
Re:Validating Data in Elixir: Using Ecto and NimbleOptions by freedomben on Tuesday November 07, 2023 @10:12AM (#38177674)
Yes, 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.
Re:Validating Data in Elixir: Using Ecto and NimbleOptions by freedomben on Tuesday November 07, 2023 @10:11AM (#38177657)
Getting 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.
Re:Validating Data in Elixir: Using Ecto and NimbleOptions by thibaut_barrere on Tuesday November 07, 2023 @10:15AM (#38177707)
I 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!

Re:Validating Data in Elixir: Using Ecto and NimbleOptions by epiccoleman on Tuesday November 07, 2023 @12:36PM (#38179967)
One 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.