Possible bug/inaccurate deprecation message

Not sure if this is a bug, planned to be fixed, an unavoidable consequence of the stdlib split, or something else, but I noticed this issue:

module ParentMod
using DelimitedFiles

readdlm(joinpath(@__DIR__, "data.txt"), ",", Float64)

end

gives an incorrect deprecation warning on Julia master

ERROR: LoadError: WARNING: Base.readdlm is deprecated: it has been moved to the standard library package `DelimitedFiles`.
Add `using DelimitedFiles` to your imports.
 in module Base
MethodError: no method matching readdlm(::String, ::String, ::Type{Float64})

You need to use a Char as delimiter (',') instead of a String (","):

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _' |  |
  | | |_| | | | (_| |  |  Version 0.7.0-DEV.3989 (2018-02-15 19:55 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit fd06d20f81 (0 days old master)
|__/                   |  x86_64-linux-gnu

julia> module ParentMod
       using DelimitedFiles

       readdlm(joinpath(@__DIR__, "data.txt"), ',', Float64)

       end
Main.ParentMod

julia>

Yes, of course. But the deprecation warning is spurious

1 Like