Almost every package suffers from this deprecation. I'd like to know what is the "correct" way deal with this.
On Thursday, October 1, 2015 at 10:36:07 AM UTC+2, Andreas Lobinger wrote: > > Hello colleagues, > > i just stumbled across > > julia> using Compose > INFO: Precompiling module Compose... > WARNING: `require` is deprecated, use `using` or `import` instead > in depwarn at deprecated.jl:73 > [inlined code] from deprecated.jl:693 > in require at no file:0 > in isinstalled at /home/lobi/.julia/v0.4/Compose/src/Compose.jl:36 > in include at ./boot.jl:261 > in include_from_node1 at ./loading.jl:304 > [inlined code] from none:2 > in anonymous at no file:0 > in process_options at ./client.jl:284 > in _start at ./client.jl:411 > while loading /home/lobi/.julia/v0.4/Compose/src/Compose.jl, in > expression starting on line 155 > > > which is using require as function (of string) in > > function isinstalled(pkg, ge=v"0.0.0") > try > # Pkg.installed might throw an error, > # we need to account for it to be able to precompile > ver = Pkg.installed(pkg) > ver == nothing && try > # Assume the version is new enough if the package is in > LOAD_PATH > require(pkg) > return true > catch > return false > end > return ver >= ge > catch > return false > end > end > > but afaics there is no replacement of require (in using or import) that > enables this - importing from a string. Any good ideas? > >
