Skip to content

Compilation warning about unused literal in mix.exs does not show line number #14689

@eksperimental

Description

@eksperimental

Elixir and Erlang/OTP versions

Erlang/OTP 27 [erts-15.2.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Elixir 1.18.2 (compiled with Erlang/OTP 27)

Operating system

MacOS

Current behavior

❯ mix compile
warning: code block contains unused literal 42 (remove the literal or assign it to _ to avoid warnings)
└─ mix.exs: ElixirDebug.MixProject (module)

Generated elixir_debug app

Expected behavior

The line number where the literal is.

You can see it in this repo
https://github.com/eksperimental-debug/elixir_debug/blob/unused-literal-mix-exs/
and this file: https://github.com/eksperimental-debug/elixir_debug/blob/unused-literal-mix-exs/mix.exs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions