Skip to content

Fix deprecation warnings in OTP 29#922

Merged
lpil merged 1 commit into
gleam-lang:mainfrom
jtdowney:fix-deprecations
May 14, 2026
Merged

Fix deprecation warnings in OTP 29#922
lpil merged 1 commit into
gleam-lang:mainfrom
jtdowney:fix-deprecations

Conversation

@jtdowney
Copy link
Copy Markdown
Member

I noticed that OTP 29 introduced deprecation warnings that were raised in stdlib

  Compiling gleam_stdlib
/Users/jtdowney/code/gleam_stdlib/build/dev/erlang/gleam_stdlib/_gleam_artefacts/gleam_stdlib.erl:75:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
Compile directive 'nowarn_deprecated_catch' can be used to suppress
warnings in selected modules.
%   75|     case catch binary_to_integer(String, Base) of
%     |          ^

/Users/jtdowney/code/gleam_stdlib/build/dev/erlang/gleam_stdlib/_gleam_artefacts/gleam_stdlib.erl:81:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
Compile directive 'nowarn_deprecated_catch' can be used to suppress
warnings in selected modules.
%   81|     case catch binary_to_integer(String) of
%     |          ^

/Users/jtdowney/code/gleam_stdlib/build/dev/erlang/gleam_stdlib/_gleam_artefacts/gleam_stdlib.erl:87:10: Warning: 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
Compile directive 'nowarn_deprecated_catch' can be used to suppress
warnings in selected modules.
%   87|     case catch binary_to_float(String) of
%     |          ^

@jtdowney jtdowney force-pushed the fix-deprecations branch from 9a106a1 to 9555544 Compare May 13, 2026 15:59
Copy link
Copy Markdown
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!!

@lpil lpil force-pushed the fix-deprecations branch from 9555544 to db6cd03 Compare May 14, 2026 08:50
@lpil lpil merged commit a27251a into gleam-lang:main May 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants