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

Warning you must add "compilers: [:yecc] ++ Mix.compilers()" after updating to elixir 1.16 #1297

Closed
Ridtt opened this issue Feb 14, 2024 · 0 comments · Fixed by #1312
Closed

Comments

@Ridtt
Copy link

Ridtt commented Feb 14, 2024

Environment

  • Elixir version:
    Erlang/OTP 26 [erts-14.2.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
    Elixir 1.16.1 (compiled with Erlang/OTP 26)

  • Absinthe version:
    absinthe 1.7.6 (Hex package) (mix)

Expected behavior

No warnings

Actual behavior

warning: in order to compile .yrl files, you must add "compilers: [:yecc] ++ Mix.compilers()" to the "def project" section of absinthe's mix.exs
(mix 1.16.1) lib/mix/tasks/compile.yecc.ex:70: Mix.Tasks.Compile.Yecc.preload/1
(mix 1.16.1) lib/mix/compilers/erlang.ex:66: Mix.Compilers.Erlang.compile/6
(mix 1.16.1) lib/mix/task.ex:478: anonymous fn/3 in Mix.Task.run_task/5
(mix 1.16.1) lib/mix/tasks/compile.all.ex:124: Mix.Tasks.Compile.All.run_compiler/2
(mix 1.16.1) lib/mix/tasks/compile.all.ex:104: Mix.Tasks.Compile.All.compile/4
(mix 1.16.1) lib/mix/tasks/compile.all.ex:93: Mix.Tasks.Compile.All.with_logger_app/2

ruipserra added a commit to ruipserra/absinthe that referenced this issue Apr 10, 2024
Starting in Elixir 1.16.0, :yecc should be listed in the mix project's
compilers when compiling .yrl files.

Fixes absinthe-graphql#1297
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

Successfully merging a pull request may close this issue.

1 participant