You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
Sobelow needs to declare :inets as a dependency, which is where that module is defined. Although in their case, it is probably best to replace :http_util.timestamp by System.os_time(:milliseconds).
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
The text was updated successfully, but these errors were encountered: