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] mkdir error when a directory with a sub-directory is specified for fig_path #398

Closed
shg opened this issue Sep 30, 2020 · 1 comment
Labels

Comments

@shg
Copy link

shg commented Sep 30, 2020

description

My memory might be wrong but I think I could use a path with a sub-directory (like "pdf/subdir/") for fig_path in the past version of Weave.jl. Now I get an error when the first level directory ("pdf") does not exist.

ERROR: IOError: mkdir: no such file or directory (ENOENT)

I don't see any reason to intentionally prevent subdir here. Using mkpath instead should fix this.

versions

using InteractiveUtils; versioninfo():

Julia Version 1.5.2
Commit 539f3ce943 (2020-09-23 23:17 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

using Pkg; Pkg.status():

Status `~/.julia/environments/v1.5/Project.toml`
  [91a5bcdd] Plots v1.6.7
  [44d3d7a6] Weave v0.10.4

minimum reproducible steps

test.jmd

# mkdir error test

```julia
using Plots
plot()
```
using Weave
weave("test.jmd", doctype="multimarkdown", fig_path="figures/test.jmd/")
@shg shg added the bug label Sep 30, 2020
aviatesk added a commit that referenced this issue Sep 30, 2020
@aviatesk
Copy link
Member

thanks for the report, will be fixed by #399

aviatesk added a commit that referenced this issue Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants