configparser_ex icon indicating copy to clipboard operation
configparser_ex copied to clipboard

Deprecation warning after Elixir 1.20 upgrade

Open fergusg opened this issue 5 months ago • 2 comments

Since Elixir 1.20 upgrade, I get the runtime warning

warning: File.stream!(path, modes, line_or_byte) is deprecated, invoke File.stream!(path, line_or_bytes, modes) instead
  (elixir 1.20.0) lib/file.ex:2256: File.stream!/3
  (configparser_ex 5.0.0) lib/configparser.ex:67: ConfigParser.parse_file/2
  .....

It is not immediately clear to me whether a PR to fix that would break older versions of Elixir.

Was the same for configparser_ex 4.x

Regards

fergusg avatar Jun 09 '26 13:06 fergusg

I think File.stream!(path, line_or_bytes, modes) should work versions at least as far back as 1.17

fergusg avatar Jun 09 '26 13:06 fergusg

I have added a PR https://github.com/easco/configparser_ex/pull/16

fergusg avatar Jun 09 '26 13:06 fergusg

PR Merged - closing

fergusg avatar Aug 20 '26 15:08 fergusg