-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
Elixir and Erlang/OTP versions
Erlang/OTP 25 [erts-13.0.4] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]
Elixir 1.14.0 (compiled with Erlang/OTP 25)
Operating system
Ubuntu 20.04 LTS
Current behavior
I am trying to update from Elixir 1.13.1/Erlang 24.3.3 to the 1.14.0/25.0.4 versions, but the macro doctest
are causing a compilation error when :moduledoc
is used with :only
as shown below:
doctest MyModule, only: [:moduledoc, remove_html_entities: 1]
== Compilation error in file test/core/client_test.exs ==
** (FunctionClauseError) no function clause matching in anonymous fn/1 in ExUnit.DocTest.filter_tests/4
The following arguments were given to anonymous fn/1 in ExUnit.DocTest.filter_tests/4:
# 1
:moduledoc
(ex_unit 1.14.0) lib/ex_unit/doc_test.ex:275: anonymous fn/1 in ExUnit.DocTest.filter_tests/4
(elixir 1.14.0) lib/enum.ex:1755: anonymous fn/2 in Enum.map_join/3
(elixir 1.14.0) lib/enum.ex:4289: Enum.map_intersperse_list/3
(elixir 1.14.0) lib/enum.ex:1755: Enum.map_join/3
(ex_unit 1.14.0) lib/ex_unit/doc_test.ex:275: ExUnit.DocTest.filter_tests/4
(ex_unit 1.14.0) lib/ex_unit/doc_test.ex:236: ExUnit.DocTest.__doctests__/2
test/core/client_test.exs:5: (module)
(elixir 1.14.0) lib/kernel/parallel_compiler.ex:455: Kernel.ParallelCompiler.require_file/2
(elixir 1.14.0) lib/kernel/parallel_compiler.ex:348: anonymous fn/5 in Kernel.ParallelCompiler.spawn_workers/7
Expected behavior
With the old versions this doesn't happen
Metadata
Metadata
Assignees
Labels
No labels