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

Broken on Elixir 1.17 with --warnings-as-errors #117

Open
newmanjeff opened this issue Nov 19, 2024 · 0 comments
Open

Broken on Elixir 1.17 with --warnings-as-errors #117

newmanjeff opened this issue Nov 19, 2024 · 0 comments

Comments

@newmanjeff
Copy link

When compiling a project under Elixir 1.17, a warning is produced from use Protobuf:

warning: using map.field notation (without parentheses) to invoke function Protobuf.Field.record() is deprecated, you must add parentheses instead: remote.function()
  (exprotobuf 1.2.17) lib/exprotobuf/utils.ex:100: Protobuf.Utils.convert_from_record/2
  (exprotobuf 1.2.17) lib/exprotobuf.ex:226: Protobuf.namespace_fields/3
  (elixir 1.17.3) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
  (exprotobuf 1.2.17) lib/exprotobuf.ex:207: anonymous fn/5 in Protobuf.namespace_types/3
  (elixir 1.17.3) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3
...
Compilation failed due to warnings while using the --warnings-as-errors option

Since the warning comes from a macro, mix treats the warning as part of the main project and not the dependency. Therefore compilation fails.

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

1 participant