Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Bug with new feature PDF #9373

Closed
JM2K69 opened this issue Nov 3, 2023 · 3 comments
Closed

[Bug] Bug with new feature PDF #9373

JM2K69 opened this issue Nov 3, 2023 · 3 comments
Labels
bug A bug to fix pdf Produce PDF as the output format

Comments

@JM2K69
Copy link
Contributor

JM2K69 commented Nov 3, 2023

Describe the bug
the command docfx return an error

To Reproduce
Steps to reproduce the behavior:

  1. Run docfx build OK
docfx build .\docfx.json
Searching custom plugins in directory C:\Users\JM2K69\.dotnet\tools\.store\docfx\2.73.0\docfx\2.73.0\tools\net8.0\any\...
Post processor ExtractSearchIndex loaded.
7 plug-in(s) loaded.
1 schema driven document processor plug-in(s) loaded.
Building 265 file(s) in ResourceDocumentProcessor(ValidateResourceMetadata)...
Building 2 file(s) in Dashboard(BuildSchemaBasedDocument=>ApplyOverwriteFragments=>ApplyOverwriteDocument)...
Building 4 file(s) in TocDocumentProcessor(BuildTocDocument)...
Building 36 file(s) in ConceptualDocumentProcessor(BuildConceptualDocument=>CountWord=>ValidateConceptualDocumentMetadata)...
Applying templates to 307 model(s)...
XRef map exported.
Extracting index data from 38 html files
Manifest file saved to manifest.json.
Completed building documents in 2733.5659 milliseconds.


Build succeeded.

    0 warning(s)
    0 error(s)
  1. Run docfx pdf many times because failed
    First launch
PS> docfx pdf .\docfx.json

Microsoft/HIS/toc.json ---------------------------------------- 100%
              toc.json ---------------------------------------- 100%
 Microsoft/WS/toc.json ---------------------------------------- 100%
         docs/toc.json ----------------------------------------   0%

Completed in 37427.5182 milliseconds
Error: Could not find dictionary associated with reference in pages kids array: 2 0.

Second launch

docfx pdf .\docfx.json

 Microsoft/WS/toc.json ---------------------------------------- 100%
         docs/toc.json ----------------------------------------   0%
              toc.json ---------------------------------------- 100%
Microsoft/HIS/toc.json ----------------------------------------  98%

Completed in 44721.582 milliseconds
Error: Could not find dictionary associated with reference in pages kids array: 2 0.
  1. Run docfx serve
docfx  .\docfx.json --serve -p 80
Searching custom plugins in directory C:\Users\JM2K69\.dotnet\tools\.store\docfx\2.73.0\docfx\2.73.0\tools\net8.0\any\...
Post processor ExtractSearchIndex loaded.
7 plug-in(s) loaded.
1 schema driven document processor plug-in(s) loaded.
Building 2 file(s) in Dashboard(BuildSchemaBasedDocument=>ApplyOverwriteFragments=>ApplyOverwriteDocument)...
Building 530 file(s) in ResourceDocumentProcessor(ValidateResourceMetadata)...
Building 4 file(s) in TocDocumentProcessor(BuildTocDocument)...
Building 36 file(s) in ConceptualDocumentProcessor(BuildConceptualDocument=>CountWord=>ValidateConceptualDocumentMetadata)...
Applying templates to 572 model(s)...
XRef map exported.
Extracting index data from 38 html files
Manifest file saved to manifest.json.
Completed building documents in 3671.4354 milliseconds.

 Microsoft/WS/toc.json ---------------------------------------- 100%
Microsoft/HIS/toc.json ---------------------------------------- 100%
         docs/toc.json ---------------------------------------- 100%
              toc.json ---------------------------------------- 100%

Serving "D:\XXX\YYYYYY\_site" on http://localhost:80. Press Ctrl+C to shut down.

Expected behavior
It works only one time and I don't know why ? If I launch again a docfx serve it fails with the same error.
my Pdf are generated in the _site folder they are big 16 Mo per pdf files.

Context (please complete the following information):

  • OS: Windows 11
  • Docfx version: 2.73
@JM2K69 JM2K69 added the bug A bug to fix label Nov 3, 2023
@yufeih yufeih added the pdf Produce PDF as the output format label Nov 3, 2023
@yufeih
Copy link
Contributor

yufeih commented Nov 7, 2023

Does this still occur in 2.73.1?

@JM2K69
Copy link
Contributor Author

JM2K69 commented Nov 7, 2023

Does this still occur in 2.73.1?

I will test it.

@JM2K69
Copy link
Contributor Author

JM2K69 commented Nov 7, 2023

Does this still occur in 2.73.1?

I will test it.

All work's and perfmance a better..

@JM2K69 JM2K69 closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix pdf Produce PDF as the output format
Projects
None yet
Development

No branches or pull requests

2 participants