--- - branch: MAIN date: Sun Dec 31 21:47:17 UTC 2023 files: - new: '1.39' old: '1.38' path: pkgsrc/lang/elixir/Makefile pathrev: pkgsrc/lang/elixir/Makefile@1.39 type: modified - new: '1.10' old: '1.9' path: pkgsrc/lang/elixir/PLIST pathrev: pkgsrc/lang/elixir/PLIST@1.10 type: modified - new: '1.34' old: '1.33' path: pkgsrc/lang/elixir/distinfo pathrev: pkgsrc/lang/elixir/distinfo@1.34 type: modified id: 20231231T214717Z.72161effad2dec1e8d9f4cbfe8dd445841f9cdd2 log: "elixir: update to 1.16.0.\n\n(5 test failures)\n\n# Changelog for Elixir v1.16\n\n## Code snippets in diagnostics\n\nElixir v1.15 introduced a new compiler diagnostic format and the ability to print multiple error diagnostics per compilation (in addition to multiple warnings).\n\nWith Elixir v1.16, we also include code snippets in exceptions and diagnostics raised by the compiler. For example, a syntax error now includes a pointer to where the error happened:\n\n```\n** (SyntaxError) invalid syntax found on lib/my_app.ex:1:17:\n error: syntax error before: '*'\n â\x94\x82\n \ 1 â\x94\x82 [1, 2, 3, 4, 5, *]\n â\x94\x82 ^\n â\x94\x82\n \ â\x94\x94â\x94\x80 lib/my_app.ex:1:17\n```\n\nFor mismatched delimiters, it now shows both delimiters:\n\n```\n** (MismatchedDelimiterError) mismatched delimiter found on lib/my_app.ex:1:18:\n error: unexpected token: )\n â\x94\x82\n \ 1 â\x94\x82 [1, 2, 3, 4, 5, 6)\n â\x94\x82 â\x94\x82 â\x94\x94 mismatched closing delimiter (expected \"]\")\n â\x94\x82 â\x94\x94 unclosed delimiter\n â\x94\x82\n â\x94\x94â\x94\x80 lib/my_app.ex:1:18\n```\n\nFor unclosed delimiters, it now shows where the unclosed delimiter starts:\n\n```\n** (TokenMissingError) token missing on lib/my_app:8:23:\n error: missing terminator: )\n â\x94\x82\n 1 â\x94\x82 my_numbers = (1, 2, 3, 4, 5, 6\n â\x94\x82 \ â\x94\x94 unclosed delimiter\n ...\n 8 â\x94\x82 IO.inspect(my_numbers)\n \ â\x94\x82 â\x94\x94 missing closing delimiter (expected \")\")\n â\x94\x82\n â\x94\x94â\x94\x80 lib/my_app:8:23\n```\n\nErrors and warnings diagnostics also include code snippets. When possible, we will show precise spans, such as on undefined variables:\n\n```\n error: undefined variable \"unknown_var\"\n \ â\x94\x82\n5 â\x94\x82 a - unknown_var\n â\x94\x82 ^^^^^^^^^^^\n \ â\x94\x82\n â\x94\x94â\x94\x80 lib/sample.ex:5:9: Sample.foo/1\n```\n\nOtherwise the whole line is underlined:\n\n```\nerror: function names should start with lowercase characters or underscore, invalid name CamelCase\n â\x94\x82\n3 â\x94\x82 \ def CamelCase do\n â\x94\x82 ^^^^^^^^^^^^^^^^\n â\x94\x82\n â\x94\x94â\x94\x80 lib/sample.ex:3\n```\n\nA huge thank you to Vinícius Müller for working on the new diagnostics.\n\n## Revamped documentation\n\nElixir's Getting Started guides have been made part of the Elixir repository and incorporated into ExDoc. This was an opportunity to revisit and unify all official guides and references.\n\nWe have also incorporated and extended the work on [Understanding Code Smells in Elixir Functional Language](https://github.com/lucasvegi/Elixir-Code-Smells/blob/main/etc/2023-emse-code-smells-elixir.pdf), by Lucas Vegi and Marco Tulio Valente, from [ASERG/DCC/UFMG](http://aserg.labsoft.dcc.ufmg.br/), into the official document in the form of anti-patterns. The anti-patterns are divided into four categories: code-related, design-related, process-related, and meta-programming. Our goal is to give all developers examples of potential anti-patterns, with context and examples on how to improve their codebases.\n\nAnother [ExDoc](https://github.com/elixir-lang/ex_doc) feature we have incorporated in this release is the addition of cheatsheets, starting with [a cheatsheet for the Enum module](https://hexdocs.pm/elixir/main/enum-cheat.html). If you would like to contribute future cheatsheets to Elixir itself, feel free to start a discussion with an issue.\n\nFinally, we have started enriching our documentation with [Mermaid.js](https://mermaid.js.org/) diagrams. You can find examples in the [GenServer](https://hexdocs.pm/elixir/main/GenServer.html) and [Supervisor](https://hexdocs.pm/elixir/main/Supervisor.html) docs.\n\n## v1.16.0 (2023-12-22)\n\n### 1. Enhancements\n\n#### EEx\n\n * [EEx] Include relative file information in diagnostics\n\n#### Elixir\n\n * [Code] Add `:emit_warnings` for `Code.string_to_quoted/2`\n * [Code] Automatically include columns in parsing options\n * [Code] Introduce `MismatchedDelimiterError` for handling mismatched delimiter exceptions\n * [Code.Fragment] Handle anonymous calls in fragments\n \ * [Code.Formatter] Trim trailing whitespace on heredocs with `\\r\\n`\n * [File] Add `:offset` option to `File.stream!/2`\n * [Kernel] Auto infer size of matched variable in bitstrings\n * [Kernel] Preserve column information when translating typespecs\n * [Kernel] Suggest module names based on suffix and casing errors when the module does not exist in `UndefinedFunctionError`\n * [Kernel.ParallelCompiler] Introduce `Kernel.ParallelCompiler.pmap/2` to compile multiple additional entries in parallel\n * [Kernel.SpecialForms] Warn if `True`/`False`/`Nil` are used as aliases and there is no such alias\n * [Macro] Add `Macro.compile_apply/4`\n \ * [Module] Add support for `@nifs` annotation from Erlang/OTP 25\n * [Module] Add support for missing `@dialyzer` configuration\n * [String] Update to Unicode 15.1.0\n * [String] Add `String.replace_invalid/2`\n * [Task] Add `:limit` option to `Task.yield_many/2`\n\n#### Logger\n\n * [Logger] Add `Logger.levels/0`\n\n#### Mix\n\n * [mix] Add `MIX_PROFILE` to profile a list of comma separated tasks\n \ * [mix archive.install] Support `--sparse` option\n * [mix compile.app] Warn if both `:applications` and `:extra_applications` are used\n * [mix compile.elixir] Pass original exception down to diagnostic `:details` when possible\n * [mix compile.elixir] Optimize scenario where there are thousands of files in `lib/` and one of them is changed\n * [mix deps.clean] Emit a warning instead of crashing when a dependency cannot be removed\n * [mix escript.install] Support `--sparse` option\n * [mix release] Include `include/` directory in releases\n * [mix test] Allow testing multiple file:line at once, such as `mix test test/foo_test.exs:13 test/bar_test.exs:27`\n\n### 2. Bug fixes\n\n#### Elixir\n\n * [Code] Keep quotes for atom keys in formatter\n * [Code.Fragment] Fix crash in `Code.Fragment.surround_context/2` when matching on `->`\n * [IO] Raise when using `IO.binwrite/2` on terminated device (mirroring `IO.write/2`)\n * [Kernel] Do not expand aliases recursively (the alias stored in Macro.Env is already expanded)\n * [Kernel] Ensure `dbg` module is a compile-time dependency\n * [Kernel] Warn when a private function or macro uses `unquote/1` and the function/macro itself is unused\n * [Kernel] Re-enabled compiler optimizations for top level functions in scripts (disabled in v1.14.0 but shouldn't impact most programs)\n * [Kernel] Do not define an alias for nested modules starting with `Elixir.` in their definition\n * [Kernel.ParallelCompiler] Consider a module has been defined in `@after_compile` callbacks to avoid deadlocks\n \ * [Macro] Address exception on `Macro.to_string/1` for certain ASTs\n * [Path] Lazily evaluate `File.cwd!/0` in `Path.expand/1` and `Path.absname/1`\n * [Path] Ensure `Path.relative_to/2` returns a relative path when the given argument does not share a common prefix with `cwd`\n\n#### ExUnit\n\n * [ExUnit] Raise on incorrectly dedented doctests\n\n#### IEx\n\n * [IEx.Pry] Fix prying functions with only literals in their body\n\n#### Mix\n\n * [mix archive.install] Restore code paths after `mix archive.install`\n * [mix compile] Ensure files with duplicate modules are recompiled whenever any of the files change\n * [mix compile] Update Mix compiler diagnostics documentation and typespecs to match the Elixir compiler behaviour where both lines and columns start from one (before it inaccurately said that columns started from zero)\n * [mix escript.install] Restore code paths after `mix escript.install`\n\n### 3. Soft deprecations (no warnings emitted)\n\n#### Elixir\n\n * [File] Deprecate `File.stream!(file, options, line_or_bytes)` in favor of keeping the options as last argument, as in `File.stream!(file, line_or_bytes, options)`\n * [Kernel.ParallelCompiler] Deprecate `Kernel.ParallelCompiler.async/1` in favor of `Kernel.ParallelCompiler.pmap/2`\n * [Path] Deprecate `Path.safe_relative_to/2` in favor of `Path.safe_relative/2`\n\n#### Mix\n\n * [mix compile] Returning a four-element tuple as a position in `Mix.Task.Compiler.Diagnostic`\n\n### 4. Hard deprecations\n\n#### Elixir\n\n * [Date] Deprecate inferring a range with negative step, call `Date.range/3` with a negative step instead\n * [Enum] Deprecate passing a range with negative step on `Enum.slice/2`, give `first..last//1` instead\n \ * [Kernel] `~R/.../` is deprecated in favor of `~r/.../`. This is because `~R/.../` still allowed escape codes, which did not fit the definition of uppercase sigils\n \ * [String] Deprecate passing a range with negative step on `String.slice/2`, give `first..last//1` instead\n\n#### ExUnit\n\n * [ExUnit.Formatter] Deprecate `format_time/2`, use `format_times/1` instead\n\n#### Mix\n\n * [mix compile.leex] Require `:leex` to be added as a compiler to run the `leex` compiler\n * [mix compile.yecc] Require `:yecc` to be added as a compiler to run the `yecc` compiler\n" module: pkgsrc subject: 'CVS commit: pkgsrc/lang/elixir' unixtime: '1704059237' user: wiz