-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Check for data files before downloading them during build. #237
Conversation
Thanks @jjstickel . I think this is a step in the right direction. One thing I would like to preserve if possible is the behavior that whenever the package is built, the latest version of plotly.js is downloaded. Thus, whenever a user updates PlotlyJS.jl, the bundled javascript is also kept up to date. Perhaps a solution that looks like the following could work:
What are your thoughts? |
Sure, I follow. However, after I got PlotlyJS installed, it's not exactly what I am looking for (it is also not working with Plots and Julia 0.7 at the moment). So I'm not motivated to do more on this right now. Do you want me to close the PR or leave it for future reference? |
After some more testing, specifically in Jupyter Notebooks, I changed my mind about PotlyJS. I'll get to making the changes you suggest, but it might be a little while. |
…n error. Occassionally users cannot use curl for downloading (e.g., firewall), and the workaround is to download the files via web browser and place them in the proper location.
@sglyon I amended the commit to do something close to your suggestion. The problem is that the output goes to build.log rather than the REPL, unless there is an actual error. Do you know how to make output go to the REPL during the build? I am pretty new to Julia, BTW. |
Hmm that's an interesting problem. I don't know off hand and think it would be best to ask over at the mailing list: discourse.julialang.org |
Here is my question on discourse: https://discourse.julialang.org/t/provide-output-message-during-build-0-7-1-x/16497. Nothing real helpful yet. |
Because @warn (and @info) do not write out to the REPL during the build phase, this commit adds a check during __init__() for warnings in the build.log and prompts the user to check it.
I've added a mechanism during init() to alert users to warnings in the build log. Let me know if you think this is satisfactory. |
@sglyon, let me know your thoughts when you've had a chance to look at this. Maybe not high priority, but I'll be happy to have it off my virtual desk. |
Hi Sorry @jjstickel lost this in my inbox. Looks good to me. will merge. Thank you for contributing! |
Occasionally users cannot use curl for downloading (e.g., firewall), and the workaround is to
download the files via web browser and place them in the proper location.