Skip to content

mtiller-jh/literate-jl-mwe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Explanation

There are two different scripts here:

  • docs/run-in-docs.jl
  • ./run-from-root.jl

One works and one doesn't. The working case is to do the following:

$ cd docs
$ julia --project=.. ./run-in-docs.jl

This will create the expected files (sample.md and sample-4.svg) in the ./other directory.

However, running the following:

$ julia --project=. ./run-from-root.jl

from the root directory of this project (i.e., alongside this README.md) results in the following error:

 Info: generating markdown page from `~/Source/MWEs/literate-jl-dir-issue/docs/sample.jl`
ERROR: LoadError: SystemError: opening file "./other/sample-4.svg": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176

What is strange is that running the working version actually generates a file ./other/sample-4.svg so why is it reporting that this file is missing? I even tried creating the directory ./docs/other in case it was somehow reframing the current directory to be ./docs but that doesn't change the error.

In short, I don't understand what Literate.jl is complaining about in the case of the ./run-from-root.jl script. What should I be doing differently?

About

An MWE for an issue I've seeing with Literate.jl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages