News for hackers. Stuff that matters.
Re:Phoenix LiveView 1.0.0 is here by hiisukun on Tuesday December 03, 2024 @10:25PM (#42314237)
Maybe this isn't the best place for feedback, but I was inspired to give this a go. Sadly it didn't work out. First error was:

  sh: line 1: Application: command not found
By visiting https://new.phoenixframework.org/test-elixir-app, I could see the proper output:

  Application name must start with a letter and have only lowercase letters, numbers and underscore
So I changed to test_elixir_app, and got this output:

  downloading https://github.com/elixir-lang/elixir/releases/download/v1.17.3/elixir-otp-27.zip
  fedora is not supported
This was a spur of the moment thing, so maybe I'll try from an Ubuntu machine or something another time, but the friction was unfortunate. Grats on the launch though, the demo gif of using the project installer looked great.
Re:Phoenix LiveView 1.0.0 is here by chrismccord on Tuesday December 03, 2024 @11:55PM (#42314586)
I will see if we can do something about fedora, but we now convert hyphens to underscores because I'm sure that will trip more folks up – thanks!

For fedora, Elixir has instructions on their site:

    sudo dnf install elixir erlang
https://elixir-lang.org/install.html

I'd love to make it work for elixir install if we can though :)

Re:Phoenix LiveView 1.0.0 is here by cess11 on Wednesday December 04, 2024 @05:29AM (#42316183)
I generally recommend using ASDF to install Erlang/Elixir, it has support for Fedora.

https://asdf-vm.com/guide/getting-started.html https://github.com/asdf-vm/asdf-erlang https://github.com/asdf-vm/asdf-elixir

Slightly more ceremony than curl | sh, but a good tool to have.

Re:Phoenix LiveView 1.0.0 is here by cassepipe on Wednesday December 04, 2024 @11:16AM (#42318945)
What does "support for Fedora" means in this context ?
Re:Phoenix LiveView 1.0.0 is here by xelamonster on Wednesday December 04, 2024 @12:12PM (#42319543)
It supports most OSes rather nicely, check the docs for a long list of config options. It creates a local package store and configures your user's path for it, each tool is managed with a custom plugin that IME works flawlessly and versions are handled better than anything else I've ever used. It's the only way I'll install Golang or NodeJS lately, and I had good luck with it for Java too.
Re:Phoenix LiveView 1.0.0 is here by cess11 on Thursday December 05, 2024 @02:51AM (#42325949)
I prefer sdkman.io for the JVM, has most of the things for stuff that runs on it in one place, including Clojure tooling and Quarkus and whatnot.
Re:Phoenix LiveView 1.0.0 is here by xelamonster on Thursday December 05, 2024 @08:44PM (#42335208)
Ah cool, maybe I'll check it out someday. JVM isn't a huge part of my daily work though so I'm pretty happy having it managed the same way as everything else for now. I like the intuitive simplicity of a .tool-versions file in a repo that supports a huge variety of tools.
Re:Phoenix LiveView 1.0.0 is here by cess11 on Thursday December 05, 2024 @02:42AM (#42325912)
Dependencies are in dnf, should just work with the common shells.
Re:Phoenix LiveView 1.0.0 is here by ashconnor on Wednesday December 04, 2024 @12:22PM (#42319651)
Mise also has support

https://mise.jdx.dev/

Re:Phoenix LiveView 1.0.0 is here by jdxcode on Wednesday December 04, 2024 @12:30PM (#42319737)
mise should get precompiled erlang on macos today too
Re:Phoenix LiveView 1.0.0 is here by abrookewood on Wednesday December 04, 2024 @11:26PM (#42324966)
I think Mise is better than ASDF - they have a whole document on why their approach is better than the shims used by ASDF. Both seem fine though.
Re:Phoenix LiveView 1.0.0 is here by cess11 on Thursday December 05, 2024 @02:57AM (#42325973)
How does it handle the wx stuff and whatnot that's required for Observer?

Seems to have more project management and make-like capabilities, I can see why someone might find that attractive but it's not for me.