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

Creating pdf documentation failure #12266

Closed
VedVid opened this issue Sep 25, 2019 · 4 comments
Closed

Creating pdf documentation failure #12266

VedVid opened this issue Sep 25, 2019 · 4 comments
Labels
Easy Hacktoberfest (Open) Issues suitable for Hacktoberfest, open for working on. Regression

Comments

@VedVid
Copy link

VedVid commented Sep 25, 2019

koch pdf crashes.

Current Output

CC: stdlib_io.nim
CC: stdlib_system.nim
CC: manual_snippet_101.nim
Hint:  [Link]
Hint: operation successful (16090 lines compiled; 1.467 sec total; 24.508MiB peakmem; Debug Build) [SuccessX] Hint: C:\Users\Elvis\nimcache\manual_d\manual\manual_snippet_101.exe  [Exec]
Hint: operation successful (424 lines compiled; 38.120 sec total; 18.008MiB peakmem; Debug Build) [SuccessX]
pdflatex -interaction=nonstopmode doc/manual.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6500 64-bit)
entering extended mode
! I can't find file `doc/manual.tex'.
<*> doc/manual.tex

Please type another input file name
! Emergency stop.
<*> doc/manual.tex

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on texput.log.
FAILURE

Expected Result

Pdf docs generated.

Additional Information

Tested with MiKTeX and ProTeXt. I never tried to build 0.20.x docs, but I did build 0.19.6 pdf successfully just now.

Nim Compiler Version 1.0.0 [Windows: amd64]

Text of the textput.log:

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6500 64-bit) (preloaded format=pdflatex 2019.1.15)  25 SEP 2019 18:04
entering extended mode
**doc/manual.tex

! Emergency stop.
<*> doc/manual.tex
                  
*** (job aborted, file error in nonstop mode)

 
Here is how much of TeX's memory you used:
 3 strings out of 493308
 20 string characters out of 3140966
 53789 words of memory out of 3000000
 3656 multiletter control sequences out of 15000+200000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 0i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!
@VedVid
Copy link
Author

VedVid commented Sep 25, 2019

Looks like the necessary tex files are generating in the wrong scope. I found manual.tex in the Nim root directory, next to the koch.exe. Copying this file to the doc directory allows to compile docs further next time (but is still fails - this time, on the lib.tex file).

@ghost
Copy link

ghost commented Feb 28, 2021

Works as of 26a6ceb, I'm not sure how we can test this.
Checked on Arch Linux after installing the texlive-most package group.

@VedVid
Copy link
Author

VedVid commented Feb 28, 2021

I don't have a development environment set up so I can't test the dev version. Instead, I tried to execute koch pdf using the latest stable version, ie 1.4.4. Could you try to use this version to build pdf docs?

For me, it misbehaves differently than at the time of creating this bug report. Yet, I changed the PC since then, and switched from MikTeX to TeX Live – not sure about the importance of this change.

Basic info:

pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX)
kpathsea version 6.3.2
(...licensing...)
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.02
bin\nim.exe rst2tex  doc/manual.rst

The caching of the manual.rst is smooth, until it actually tries to build the pdf:

Hint: E:\programming\nim\nim\bin\nim.exe c C:\Users\Ved\nimcache\manual_d\manual\manual_snippet_138.nim [Exec]
Hint: E:\programming\nim\nim\bin\nim.exe c C:\Users\Ved\nimcache\manual_d\manual\manual_snippet_139.nim [Exec]
Hint: E:\programming\nim\nim\bin\nim.exe c -r C:\Users\Ved\nimcache\manual_d\manual\manual_snippet_140.nim [Exec]
D:\a\nightlies\nightlies\nim-1.4.4\koch.nim(667) koch
D:\a\nightlies\nightlies\nim-1.4.4\tools\kochdocs.nim(292) buildPdfDoc
D:\a\nightlies\nightlies\nim-1.4.4\lib\pure\os.nim(1855) moveFile
D:\a\nightlies\nightlies\nim-1.4.4\lib\pure\os.nim(1826) tryMoveFSObject
D:\a\nightlies\nightlies\nim-1.4.4\lib\pure\includes\oserr.nim(94) raiseOSError
Error: unhandled exception: The system cannot find the file specified.
Additional info: "(\"manual.tex\", \"doc\\\\manual.tex\")" [OSError]

I have no idea why koch tried to access the D partition. The apparently missing manual.tex is created in nim\doc\htmldocs.

What other info can I share to help with narrowing the source of this issue? In case it's not solved already in the trunk.

@ringabout
Copy link
Member

It works on Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Hacktoberfest (Open) Issues suitable for Hacktoberfest, open for working on. Regression
Projects
None yet
Development

No branches or pull requests

4 participants