Closed kodumbeats closed 8 months ago
I'll mention this for posterity in case it helps anyone running into the same issue until this is live:
You can use kerl
to install different versions of erlang, so for now, you need to do something like
# install older version of erlang
kerl build 26.0.1
kerl install 26.0.1 ~/erlang/v26.0.1 # or whichever path you prefer
# activate the installation
. ~/erlang/v26.0.1/activate
# to check the version
erl -eval '{ok, Version} = file:read_file(filename:join([code:root_dir(), "releases", erlang:system_info(otp_release), "OTP_VERSION"])), io:fwrite(Version), halt().' -noshell
>> 26.0.1
# once you're done editing, or want to install a new one
kerl_deactivate
I can confirm 26.2.2
is broken with gleam_otp v0.9.0
, and that activating 26.0.1
allows for calling system.get_state
without failing.
Not sure what other implications going to a different version of erlang might have though.
Sorry, I should have released this. I'll do that now.
Between Erlang/OTP 26.0 and 26.1, the interface for system messages changed from a literal type to result type, breaking our implementation. See OTP-18633 for more information.
This patch updates the library to 26.1, but sets a minimum version requirement. Since this is such a niche API (debugging only), we agreed that documentation is sufficient to enforce versions.
Open Questions
Nil
sufficient since we always respond withOk(state)
?Tests pass locally, though some files need a reformat. Will address separately.