Skip to content

module http_util is not available in elixir 1.15.2 #12808

Closed
@kivra-mikgra

Description

@kivra-mikgra

Elixir and Erlang/OTP versions

Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit] [dtrace]

Elixir 1.15.2 (compiled with Erlang/OTP 26)

Operating system

MacOS Ventura v13.4.1

Current behavior

I tried to upgrade my project to the new elixir version and ran into an issue with a dependency Sobelow, which uses :http_utils.timestamp internally, throwing ** (UndefinedFunctionError) function :http_util.timestamp/0 is undefined (module :http_util is not available). I reproduced the behaviour (that the module does not exist in the new version) in a minimal example below:

mix new test_elixir_version
iex -S mix
Compiling 1 file (.ex)
Generated test_elixir_version app
Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit] [dtrace]

Interactive Elixir (1.15.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :http_util.timestamp
** (UndefinedFunctionError) function :http_util.timestamp/0 is undefined (module :http_util is not available)
:http_util.timestamp()

Expected behavior

When running the same code in the project but with elixir 1.14.2, the module / function is available.

iex -S mix
Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit] [dtrace]

Compiling 1 file (.ex)
Generated test_elixir_version app
Interactive Elixir (1.14.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :http_util.timestamp
1689667954729

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