KristofferC / PGFPlotsX.jl

Plots in Julia using the PGFPlots LaTeX package
Other
301 stars 40 forks source link

Can't Find Log File: Breaks Plot Display #186

Closed arnavs closed 4 years ago

arnavs commented 4 years ago

I'm having trouble seeing the plots output from this package, because of errors like the following:

julia> Plot(Table([x, y]))
Error showing value of type Plot:
ERROR: SystemError: opening file "/var/folders/vs/_z3qvhsx2y9g7tg76m0syg4h0000gn/T/jl_ZAG6fC.log": No such file or directory

This happens on every plot I try to run. For my system:

julia> versioninfo()
Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.6.0)
  CPU: Intel(R) Xeon(R) W-2140B CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
KristofferC commented 4 years ago

You might have to do some digging here or produce a system or something where it can be reproduced. We run latex in this function:

https://github.com/KristofferC/PGFPlotsX.jl/blob/77122f5d546529c23297f92a3f22ecba221769f0/src/build.jl#L28-L35

Adding some @show about what the file is, the command that is run, and finally, why the log file doesn't show up might give some info about what is going wrong.

arnavs commented 4 years ago

@KristofferC I'm closing this, as I saw the following error message while doing something unrelated (compiling a latex PDF). This suggests it's just a problem with my system's TeX installation:

   (Pdf)LaTeX didn't generate the expected log file '/Users/arnavsood/Research/infrastructure/latex-actions/doc.log'
KristofferC commented 4 years ago

Let's try improve the error message we emit here anyway.