Skip to content

test: unclear error with _toc.html #21912

Description

@mcollina
  • Version: master
  • Platform: OS X
  • Subsystem: doc

I'm adding a new error code, and I'm getting:

=== release test-make-doc ===
Path: doctool/test-make-doc
assert.js:338
    throw err;
    ^

AssertionError [ERR_ASSERTION]: _toc.html does not not match TOC
    at Object.<anonymous> (/Users/matteo/Repositories/node/test/doctool/test-make-doc.js:45:10)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:266:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
Command: out/Release/node /Users/matteo/Repositories/node/test/doctool/test-make-doc.js

Considering that _toc.md was deleted in #21637, what should I do to fix this?

cc @rubys

Activity

  1. rubys commented on Jul 20, 2018

    @rubys
    Member

    Delete it, and run the build again. :-)

  2. targos commented on Jul 20, 2018

    @targos
    Member

    rm -rf out/doc

  3. added
    docIssues and PRs related to Node.js documentation.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    toolsIssues and PRs related to the tools directory.
    on Jul 20, 2018
  4. mcollina commented on Jul 20, 2018

    @mcollina
    SponsorMemberAuthor

    Can we add the instructions rm -rf out/doc to the error message? It would be very helpful!

  5. lundibundi commented on Jul 26, 2018

    @lundibundi
    Member

    I think this can be closed as #21913 that somewhat address this has landed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.testIssues and PRs related to Node.js core tests and test infrastructure.toolsIssues and PRs related to the tools directory.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions