Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with Elixir 1.14.0 #48

Open
optikfluffel opened this issue Sep 3, 2022 · 5 comments
Open

Compilation error with Elixir 1.14.0 #48

optikfluffel opened this issue Sep 3, 2022 · 5 comments

Comments

@optikfluffel
Copy link

== Compilation error in file lib/prometheus/buckets.ex ==
** (UndefinedFunctionError) function Kernel.Utils.defdelegate/2 is undefined or private. Did you mean:

      * defdelegate_all/3
      * defdelegate_each/2

    (elixir 1.14.0) Kernel.Utils.defdelegate({:new, [line: 18], [{:arg, [line: 18], nil}]}, [])
    lib/prometheus/buckets.ex:18: (module)
@mveytsman
Copy link

I've seen this error come up when compiling plemora, and I believe the issue is actually in the plemora fork (https://git.pleroma.social/pleroma/elixir-libraries/prometheus.ex/ and not in this repo.

@feld I think you maintain the fork? Apologies if I'm pinging the wrong person.

@optikfluffel
Copy link
Author

@mveytsman I also came across this when trying to run Pleroma with the new Elixir version. But the error also comes up when you clone current master of this repo here and try to compile it.

@seanking2919
Copy link

seanking2919 commented Sep 8, 2022

Should be fixed by #47 (@lanodan is a Pleroma maintainer as well)

@aronsonben
Copy link

Hi @optikfluffel , did you solve this issue? I am new to using Elixir and am running into this while compiling another project. I can't tell if the problem is my setup or a bug elsewhere.

Running with Elixir 1.14.0 & Erlang 25.0.4 from asdf version manager.

@optikfluffel
Copy link
Author

@aronsonben For now you should be able to change the deps entry for prometheus.ex in your mix.exs file to something like

{:prometheus_ex, git: "https://github.com/lanodan/prometheus.ex", branch: "fix/elixir-1.14", override: true}

and then have to change it back, when #47 is merged and released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants