Skip to content

Test failures in ExDoc.Language.ErlangTest #1515

Closed
@Odaeus

Description

@Odaeus

With the latest head (277c401) I get 6 test failures in the form:

Generated ex_doc app
......................................................................................................................................................................................warning: documentation references module "array" but it is limited
  nofile



  1) test autolink_doc/2 module with anchor (ExDoc.Language.ErlangTest)
     test/ex_doc/language/erlang_test.exs:44
     Assertion with == failed
     code:  assert do_autolink_doc(ast) ==
              ~s"<a href=\"https://www.erlang.org/doc/man/array.html#anchor\"><code>array</code></a>"
     left:  "<code>array</code>"
     right: "<a href=\"https://www.erlang.org/doc/man/array.html#anchor\"><code>array</code></a>"
     stacktrace:
       test/ex_doc/language/erlang_test.exs:49: (test)

  2) test autolink_doc/2 custom text (ExDoc.Language.ErlangTest)
     test/ex_doc/language/erlang_test.exs:60
     Assertion with == failed
     code:  assert autolink_doc("{@link array. The <code>array</code> module}", c) ==
              ~s"<a href=\"https://www.erlang.org/doc/man/array.html\">The <code>array</code> module</a>"
     left:  "The <code>array</code> module"
     right: "<a href=\"https://www.erlang.org/doc/man/array.html\">The <code>array</code> module</a>"
     stacktrace:
       test/ex_doc/language/erlang_test.exs:61: (test)

..warning: documentation references module "array" but it is limited
  nofile

This is with a clean repo and running mix setup.

$ elixir --version
Erlang/OTP 24 [erts-12.2.1] [source] [64-bit] [smp:5:5] [ds:5:5:10] [async-threads:1]

Elixir 1.13.3 (compiled with Erlang/OTP 24)

$ uname -a
Linux gordo 5.13.0-28-generic #31-Ubuntu SMP Thu Jan 13 17:44:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Obviously the tests pass on CI so it has something to do with my system, but wanted to report this in case anyone else hits this issue or someone has already solved it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions