ferdinand

ferdinand

Hi,

I have a Phoenix app running fine with Elixir 1.2.x. Upgraded to Elixir 1.3.0 this morning and now failed to compile and run the app :frowning: I tried reps.clean and that didn’t help.

fchan$  mix deps.clean --all && mix deps.update —all
<< All the output from deps.clean and deps.update>>
chan:gauge fchan$ mix phoenix.server
==> fs (compile)
Compiled src/sys/fsevents.erl
Compiled src/sys/inotifywait_win32.erl
Compiled src/sys/inotifywait.erl
Compiled src/fs_event_bridge.erl
Compiled src/fs_sup.erl
Compiled src/fs_app.erl
Compiled src/fs_server.erl
Compiled src/fs.erl
==> gettext
Compiling 1 file (.yrl)
Compiling 1 file (.erl)
Compiling 19 files (.ex)
Generated gettext app
===> Compiling cf
===> Package not found in registry: cf-0.2.1. Try to fix with `rebar3 update`
==> gauge
** (Mix) Could not compile dependency :erlware_commons, "/Users/fchan/.mix/rebar3 bare compile --paths         "/Users/fchan/chaos/gauge/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix     deps.compile erlware_commons", update it with "mix deps.update erlware_commons" or clean it with "mix deps.clean     erlware_commons"
fchan:gauge fchan$

My Erlang, Elixir and Phoenix version

fchan:gauge fchan$ mix phoenix.new -v
Phoenix v1.1.4
fchan:gauge fchan$ mix --version
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Mix 1.3.0
fchan:gauge fchan$

Still pretty new to Elixir, Phoenix and Erlang and help is much appreciated.

Thanks

Showing Posts 1 to 7

sztosz

sztosz

Did you try to fix with rebar3 update ?

ferdinand

ferdinand OP

thanks for your reply.

Still pretty new to Elixir and Erlang, do I need to install rebar3? or it’s like a task that can be executed with mix ?

sztosz

sztosz

Try this

$ mix local.rebar
$ rm -rf deps
$ rm -rf _build
$ mix deps.get

I’m just trying to think something :wink: If you can, could you maybe post your app so we can try to debug it locally? I’m not an expert myself though :wink: Cf is on hex cf | Hex so it should be downloaded by mix without problems :confused:

ferdinand

ferdinand OP

This works

fchan:gauge fchan$ mix local.rebar
/Users/fchan/.mix/rebar already exists, overwrite? [Yn] Y
* creating /Users/fchan/.mix/rebar
/Users/fchan/.mix/rebar3 already exists, overwrite? [Yn] Y
* creating /Users/fchan/.mix/rebar3
fchan:gauge fchan$ mix phoenix.server

Thanks a lot for your help :slight_smile:

Can someone shed some light what happened? I’m guessing mix local.rebar force update on Erlang related dependency and hence trigger an upgrade and solve the issue?

sztosz

sztosz

Don’t ask me what happen, my Google Fu is simply strong :wink: I hope someone will shed more light on that :smiley:

defoemark

defoemark

Try to upgrade your phoenix app to 1.1.6. Also take a look at this thread.

ericmj

ericmj

Elixir Core Team

You probably hit some bug in rebar. When you run mix local.rebar you will update to the latest version of rebar that the elixir team has published.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
RemyXRenard
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
velrest
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
samoloth
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
FlyingNoodle
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 Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews