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

ERROR: SystemError: opening file "_gen/input.md": No such file or directory #248

Closed
logankilpatrick opened this issue Nov 11, 2021 · 3 comments · Fixed by #249
Closed

ERROR: SystemError: opening file "_gen/input.md": No such file or directory #248

logankilpatrick opened this issue Nov 11, 2021 · 3 comments · Fixed by #249

Comments

@logankilpatrick
Copy link
Member

I downloaded the template and then followed the instructions here: https://books.huijzer.xyz/getting-started

I get:

julia> using Books; serve()
Watching ./Manifest.toml
Watching ./Project.toml
Watching ./README.md
Watching ./config.toml
Watching ./.vscode/settings.json
Watching ./contents/about.md
Watching ./contents/appendix.md
Watching ./contents/index.md
Watching ./contents/references.md
Watching ./files/bibliography.bib
Watching ./pandoc/favicon.png
Watching ./src/DeepLearningWithJulia.jl
Watching ./src/data.jl
ERROR: SystemError: opening file "_gen/input.md": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:168
  [2] #systemerror#62
    @ ./error.jl:167 [inlined]
  [3] systemerror
    @ ./error.jl:167 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Bool, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open(fname::String, mode::String; lock::Bool)
    @ Base ./iostream.jl:355
  [6] open(fname::String, mode::String)
    @ Base ./iostream.jl:355
  [7] open(::Base.var"#322#323"{String, Tuple{}}, ::String, ::Vararg{String, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:328
  [8] open
    @ ./io.jl:328 [inlined]
  [9] write
    @ ./io.jl:420 [inlined]
 [10] write_input_markdown(project::String; skip_index::Bool)
    @ Books ~/.julia/packages/Books/oARrL/src/build.jl:165
 [11] write_input_markdown
    @ ~/.julia/packages/Books/oARrL/src/build.jl:157 [inlined]
 [12] pandoc_html(project::String; fail_on_error::Bool)
    @ Books ~/.julia/packages/Books/oARrL/src/build.jl:181
 [13] html(; project::String, extra_head::String, fail_on_error::Bool, build_sitemap::Bool)
    @ Books ~/.julia/packages/Books/oARrL/src/build.jl:276
 [14] serve(; simplewatcher::Nothing, host::String, project::String, verbose::Bool, dir::String)
    @ Books ~/.julia/packages/Books/oARrL/src/serve.jl:60
 [15] serve()
    @ Books ~/.julia/packages/Books/oARrL/src/serve.jl:55
 [16] top-level scope
    @ REPL[9]:1
@logankilpatrick
Copy link
Member Author

Do I need to run gen() first?

@rikhuijzer
Copy link
Collaborator

rikhuijzer commented Nov 11, 2021

Do I need to run gen() first?

Yes. Or create the file manually.

Interestingly enough. More people reported this error, so I should fix it.

@logankilpatrick
Copy link
Member Author

Should the getting started guide have the run gen() command section first then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants