Broken incremental compilation for Plots

I’m getting the following incremental compilation warning from __precompile()ing a module that is using Plots:

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.2 (2017-12-13 18:08 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

julia> using TrackRoots
INFO: Recompiling stale cache file /home/yakir/.julia/lib/v0.6/TrackRoots.ji for module TrackRoots.
WARNING: eval from module Plots to TrackRoots:    
Expr(:block, Expr(:line, 69, Symbol("/home/yakir/.julia/v0.6/Plots/src/backends/gr.jl"))::Any, Expr(:import, :GR)::Any, Expr(:line, 70, Symbol("/home/yakir/.julia/v0.6/Plots/src/backends/gr.jl"))::Any, Expr(:export, :GR)::Any)::Any
  ** incremental compilation may be broken for this module **

The offending file is here.

https://github.com/JuliaPlots/Plots.jl/issues/1171

https://github.com/JuliaPlots/Plots.jl/issues/918

1 Like

Thank you @kristoffer.carlsson!

Do you need to depend on Plots - couldn’t you just use RecipesBase?

2 Likes

I’d love to. But this is for a specific user who is not going to want to plot any (of my) specialized types on her/his own. They just want to point at a (specific metadata) file and have “the program” (i.e. Julia) generate mp4 files. So while I could create a recipe for this, it would only be used within the same module. Or maybe I misunderstood you (like one place where I should/could script some recipes is RayTraceEllipsoid.jl).