Closed robsmith11 closed 1 year ago
Thanks @robsmith11
I'm not working on nightly right now, so I don't think I'll be able to contribute a fix.
That being said, I'm happy to review a PR if someone who does work on nightly is willing to tackle this one
I am encountering the same issue on 1.6.0-rc1. However, the generated plots are not displayed in the Blink window. @robsmith11 Are you able to reproduce this issue on the nightly build as well? Anyway, I will try to dig deeper to ensure compatibility with the new release as soon as possible :)
EDIT: Okay, I have found the culprit much sooner than expected. The __init__()
function, which is executed each time we are using PlotlyJS
, looks for a file called "build.log" in joinpath(_pkg_root, "deps", "build.log")
. If this file cannot be found, the initialization fails. Apparently, the source directory of the PlotlyJS package is not writeable on julia 1.6.0-rc1 (Windows 10) and above due to some change in the permission handling. Hence, there exists no such "build.log" file in the deps-directory.
To my understanding, there is now the scratch spaces API which places files such as logfiles (which usually do not have to be accessed by the user with a file browser) in a a package-specific mutable directory.
Thanks for looking into it more, @jonas-kr. I've always just exported the plot to a html file and viewed it in Firefox, so I've never tried using Blink, but it's likely broken here too.
@jonas-kr I don't know much about this scratch spaces api
Is this something you could help us integrate here?
Honestly, I do not know anything about this api, yet. However, I will try to look into this.
It looks to me like this was fixed (or at least worked-around) in https://github.com/JuliaPlots/PlotlyJS.jl/commit/c4418ccc2537d1954913af351da9fbd71a55175b, there just hasn't been a release since then
@ericphanson Thanks a lot for this hint, this commit does provide a workaround for the issue. Actually, building the package on an 1.6.0-rc3 build creates an (in my case empty) build.log file in a subdirectory of .julia/scratchspaces. Hence, it seems like the only thing that remains to be fixed is the path of this build.log file. I will try to resolve this issue asap.
I did just release a fresh version of plotlyJS in response to @ericphanson comment (thanks for the reminder!)
Hopefully things work on latest release of this package
If I call import/using a second time, there is no error and I can use PlotlyJS fine.