josefrichter

josefrichter

Hi. I am trying to update older project to latest elixir, phoenix and all dependencies.

I am still running into (Mix) Could not compile dependency :telemetry

I’ve googled solutions, tried reinstalling rebar, etc. But still can’t figure it out. I have to say I’m a bit out of my depth here.

This is the full error:

❯ mix compile
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `(/Users/josefrichter/.asdf/installs/elixir/1.14.3-otp-25/.mix/elixir/1-14/rebar3 bare compile --paths /Users/josefrichter/Dropbox (Personal)/code/elixir/organizer/_build/dev/lib/*/ebin'
** (Mix) Could not compile dependency :telemetry, "/Users/josefrichter/.asdf/installs/elixir/1.14.3-otp-25/.mix/elixir/1-14/rebar3 bare compile --paths /Users/josefrichter/Dropbox (Personal)/code/elixir/organizer/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile telemetry", update it with "mix deps.update telemetry" or clean it with "mix deps.clean telemetry"

Any suggestions, please? Thank you.

Showing Posts 1 to 10

D4no0

D4no0

First of all try to remove the _build directory in your project, then if it doesn’t help make sure that your elixir is compiled with correct OTP version, for example in your case your elixir is compiled with OTP 25, so you should have this version as OTP you are using currently.

josefrichter

josefrichter OP

All this seems to be ok, I tried all that. I even tried to reinstall elixir, rebar, etc. to make sure all versions are correct. But now I’m already running out of ideas.

D4no0

D4no0

I see you are using the SH, have you tried using bash, I used to have some problems with sh myself, especially on alpine containers.

josefrichter

josefrichter OP

I’ve been using zsh, but tried toggling to bash and sh too. Still the exact same error.

I am using asdf, if that plays any role.

The clash seems to be between rebar3 and telemetry.

Any ideas, please?

LostKobrakai

LostKobrakai

I’d suggest trying a path without spaces and/or parenthesis.

BradS2S

BradS2S

Yeah maybe try escaping the white space in the path

LostKobrakai

LostKobrakai

Usually one is not in control of the places those paths are handled in. Therefore I still suggest avoiding such paths for development to begin with.

josefrichter

josefrichter OP

That actually worked :open_mouth::see_no_evil_monkey: Thank you!

BradS2S

BradS2S

I’ve had this exact same issue in the past. It would be nice if the error said something like “destination not found” or something maybe

tristan

tristan

Rebar3 Core Team

Can you open an issue on Elixir about this? It looks like the mix compiler that calls rebar3 isn’t escaping or quoting paths.

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