Skip to content

Warning this expression will fail with ArithmeticError provides no file location #9714

@mguimas

Description

@mguimas

Environment

$ elixir --version
Erlang/OTP 22 [erts-10.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Elixir 1.9.1 (compiled with Erlang/OTP 22)

Current behavior

This is rare, but I had twice I can remember this compiler warning message with no file location information

warning: this expression will fail with ArithmeticError
  lib/.../file.ex

Expected behavior

There should be a line number reported in the message to help discover what is happening.

I hope this information is enough to debug and fix this issue (in case I get more information, I will post here).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions