Fix xref exclude deprecation warning - #86
Merged
Merged
Conversation
josevalim
reviewed
Jul 10, 2026
| name: "VegaLite", | ||
| elixir: "~> 1.12", | ||
| # Modules used by VegaLite.WxViewer if available | ||
| elixirc_options: [no_warn_undefined: [:wx, :wx_object, :wxFrame, :wxWebView]], |
Contributor
There was a problem hiding this comment.
We should probably move this to that module then?
@compile {:no_warn_undefined, [:wx, :wx_object, :wxFrame, :wxWebView]}
Instead of a global? 🤔
Contributor
Author
There was a problem hiding this comment.
You caught me trying to get away with the minimal change to reduce the warnings I get when building Nerves Livebook. :)
PR updated with the local change.
This fixes the following warning with Elixir 1.20: ``` warning: "xref: [exclude: ...]" in your mix.exs file is deprecated, instead use: "elixirc_options: [no_warn_undefined: ...]" (mix 1.20.2) lib/mix/tasks/compile.elixir.ex:243: Mix.Tasks.Compile.Elixir.xref_exclude_opts/2 (mix 1.20.2) lib/mix/tasks/compile.elixir.ex:142: Mix.Tasks.Compile.Elixir.run/1 (mix 1.20.2) lib/mix/task.ex:502: anonymous fn/3 in Mix.Task.run_task/5 (mix 1.20.2) lib/mix/task.compiler.ex:299: Mix.Task.Compiler.run_compiler/2 (mix 1.20.2) lib/mix/task.compiler.ex:287: Mix.Task.Compiler.run/4 (mix 1.20.2) lib/mix/tasks/compile.all.ex:75: Mix.Tasks.Compile.All.do_run/2 ```
fhunleth
force-pushed
the
fix-xref-warning
branch
from
July 10, 2026 21:16
3dd9f45 to
135412a
Compare
Contributor
|
💚 💙 💜 💛 ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the following warning with Elixir 1.20: