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

Can't generate pdf documentation #47

Open
rambunctiousapple opened this issue Apr 3, 2022 · 0 comments
Open

Can't generate pdf documentation #47

rambunctiousapple opened this issue Apr 3, 2022 · 0 comments

Comments

@rambunctiousapple
Copy link

rambunctiousapple commented Apr 3, 2022

Publish.jl is very cool!

But I'm having trouble getting some features to work. serve() works with localhost and displays the documentation correctly in the browser but it does not work with pdf output.

I tried serving a PDF of the Publish package, as shown in your examples, but get an error (see below). Here's my sysinfo:

Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, tigerlake)
Environment:
  JULIA_EDITOR = code.cmd
  JULIA_NUM_THREADS = 8

and here's the error:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.2 (2022-02-06)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Publish

julia> serve(Publish,pdf)
[ Info: Serving 'Publish'...
Running TeX ...
Fontconfig error: Cannot load default config file: No such file: (null)
error: Publish.tex:184: Undefined control sequence
error: halted on potentially-recoverable error as specified
ERROR: TaskFailedException

    nested task error: failed process: Process(`'C:\Users\seatt\.julia\artifacts\ef43d3a84c8db93411aebeef345e5f7f6dbd4a23\tectonic.exe' -whttps://ttassets.z13.web.core.windows.net/tlextras-2020.0r0.tar '.\Publish.tex'`, ProcessExited(1)) [1]

    Stacktrace:
      [1] pipeline_error
        @ .\process.jl:531 [inlined]
      [2] run(::Cmd; wait::Bool)
        @ Base .\process.jl:446
      [3] run
        @ .\process.jl:444 [inlined]
      [4] (::Publish.var"#107#113"{Vector{String}, String})(path::String)
        @ Publish C:\Users\seatt\.julia\packages\Publish\7qwwh\src\save.jl:359
      [5] tectonic(f::Publish.var"#107#113"{Vector{String}, String})
        @ Tectonic C:\Users\seatt\.julia\packages\Tectonic\0KVMH\src\Tectonic.jl:28
      [6] (::Publish.var"#102#108"{Publish.Project})()
        @ Publish C:\Users\seatt\.julia\packages\Publish\7qwwh\src\save.jl:358
      [7] cd(f::Publish.var"#102#108"{Publish.Project}, dir::String)
        @ Base.Filesystem .\file.jl:99
      [8] sandbox
        @ C:\Users\seatt\.julia\packages\Publish\7qwwh\src\utilities.jl:12 [inlined]
      [9] #pdf#101
        @ C:\Users\seatt\.julia\packages\Publish\7qwwh\src\save.jl:321 [inlined]
     [10] init(p::Publish.Project, ::typeof(pdf); dir::String, kws::Base.Pairs{Symbol, Int64, Tuple{Symbol}, NamedTuple{(:port,), Tuple{Int64}}})
        @ Publish C:\Users\seatt\.julia\packages\Publish\7qwwh\src\save.jl:366
     [11] (::Publish.var"#124#127"{Int64, String, Publish.Project, typeof(pdf)})()
        @ Publish .\task.jl:423
Stacktrace:
 [1] sync_end(c::Channel{Any})
   @ Base .\task.jl:381
 [2] macro expansion
   @ .\task.jl:400 [inlined]
 [3] serve(src::Module, targets::Function; port::Int64, keywords::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Publish C:\Users\seatt\.julia\packages\Publish\7qwwh\src\serve.jl:29
 [4] serve(src::Module, targets::Function)
   @ Publish C:\Users\seatt\.julia\packages\Publish\7qwwh\src\serve.jl:9
 [5] top-level scope
   @ REPL[1]:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant