RyanFleck
Hello everyone,
I need help setting up a development environment to work on a Phoenix 1.2 project. No, I don’t care if it’s out of date and insecure.
I’m taking “The Complete Elixir and Phoenix Bootcamp” and have really been enjoying it so far. Elixir is ludicrously batteries-included and intuitive enough that for most of the tutorial I was able to guess ahead and beat the instructor to solutions. Pattern matching is wicked.
The second half of the course is taught with Phoenix 1.2 and I don’t really know where to start. Elixir web-setup for Windows only lets me install back to version 1.10.0, and I can’t really find a clear answer on which OTP/Elixir version Phoenix 1.2.5 needs.
Suggestions? Help?
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #elixirconf-us
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
benwilson512
That’s wonderful to hear, welcome to the community!
This much at least I can help with. If you go to the Phoenix project on github the 1.2.5 was made on July 27, 2017. That gives us a rough time frame to go look for Elixir tags: Release v1.5.0 · elixir-lang/elixir · GitHub
It looks like Elixir 1.5.0 was released 2 days prior, so that’s probably the version to use.
Compatibility and Deprecations — Elixir v1.12.3 lists Elixir and OTP compatibility: For you it looks like OTP 18-20 should work.
Fair enough, but understand that trying to get specific, 5.5 year old versions of software running on a platform that is relatively niche in the community (windows) may present a lot of trouble. We haven’t even started on getting whatever the javascript build toolchain from 5.5 years ago looked like going :D. WSL2 might help? Not sure.
RyanFleck
Hey Ben, thanks for the friendly, detailed, and fast reply!
The Windows machine is just my gaming box, I’ve got Debian/Fedora laptops lying around. I’ll try on those if I have too much trouble. Worst case scenario I’ll just muddle through the tutorial with the latest version of Phoenix.
Checked the Node releases and saw Node.js 8.11.3 released on 2018-06-12. Luckily this is super easy to install with NVM, but getting the rest of the Phoenix build toolchain may be tricky for sure.
Hopefully the following will be enough, will try and tag this question with Windows and report back if things go well. Things seemed to install just fine after running:
Checking versions:
Running
mix archive.install hex phoenix 1.2.5failed, but this worked:In the project I had some weirdness getting the npm dependencies installed but this was fixed with
npm i -g brunch@2and runningnpm installagain.Needed to use Postgres 9, otherwise ecto was throwing errors I couldn’t figure out:
…can’t believe it works lol. Installing things like this on Windows is usually a nightmare, I’ll post back if I have any further issues.
Cheers!
AayushPokharel
I am running a dev container with Elixir 1.3.1 (the version used in the course). I got the Phoenix 1.2.5 installed properly by using a Dockerfile.
But I got a dependency issue with expo. When I try to create a DB connection with
ectoWhen I enter
mix ecto.create, I get an error withwarning: the dependency :expo requires Elixir "~> 1.11" but you are running on v1.3.1could not compile dependency :expo, "mix compile" failed. You can recompile this dependency with "mix deps.compile expo", update it with "mix deps.update expo" or clean it with "mix deps.clean expo" ** (Mix) Encountered compilation errorsDid anyone solve this? How can I get the correct version of
expoto compile?My Dockerfile is as follows.
benwilson512
Which course? I think I would not use a course that is this old.
As far as your specific error goes: You need to add dependences that are compatible with the (incredibly old) version of Elixir that you are using. This is going to be very hard.
AayushPokharel
This Course by Stephen Grinder.
It’s a best seller on Udemy and shows that it’s recently updated but under the hood, it still uses old Phoenix 1.2 to teach the framework. I didn’t have a problem with the first part of the tutorial. Guy, taught it in an easy-to-understand and hands-on manner but the phoenix part made me pull out my hair.
I had to use docker-compose for dev Containers on VSCode and run an old version of Elixir and Postgres to replicate the environment. Then hex was pulling new dependencies and ecto was giving me issues so I had to copy
mix.lockandmix.exsto work along with the tutorials.Thanks for the idea btw… Didn’t know why I didn’t think of that earlier instead of trying to solve the dependencies myself.
foucist
Just for shits and giggles I decided to get this working on apple silicon & macOS, took me an hour
I used asdf for handling the versioning of elixir/erlang/node/python:
asdf plugin-add pythonasdf plugin-add nodejsasdf plugin-add elixirasdf plugin add erlangI attempted and failed to install elixir 1.5 and erlang 20 and node 6.17.1 (and 7.10.1). I ended up with nodejs 8.17.0 python 2.7.18 elixir 1.6.6-otp-21 erlang 21.3.8.24
asdf install erlang 21.3.8.24asdf install elixir 1.6.6-otp-21asdf install python 2.7.18(I didn’t have python 2.6 or 2.7 installed, older versions of node-build rely on this)for node, I needed to switch to rosetta mode before installing.
arch -x86_64 bash(for me, zsh didn’t work so I dropped into bash first then ran zsh)asdf install nodejs 8.17.0in a new terminal with my ~/tceapbat/.tool-versions file set to (tceapbat was my project directory for The Complete Elixir and Phoenix Bootcamp and Tutorial)
installed phoenix 1.2.5:
curl -o phoenix_new-1.2.5.ez https://raw.githubusercontent.com/phoenixframework/archives/master/phoenix_new-1.2.5.ezmix archive.install phoenix_new-1.2.5.ezmix phoenix.new discussNotes: need to run deps.get properly before npm install even works.
cd discuss/mix deps.getnpm installnode node_modules/brunch/bin/brunch buildmix phoenix.servermix ecto.createIt ended up installing a newer version of expo that required a higher version of elixir, so my trick here was to grab the example repo, run mix deps.get, and then copy over the mix.exs & mix.lock files.:
git clone https://github.com/StephenGrider/ElixirCode/cd ElixirCode/discuss/mix deps.getmix phoenix.servercp mix.* ~/tceapbat/discuss/also I found it was necessary to increase phoenix_live_reload from 1.0 to 1.1 in mix.exs
{:phoenix_live_reload, "~> 1.1", only: :dev}