Skip to content

Deprecation warnings are numerous, backtrace not useful #10563

@kmsquire

Description

@kmsquire

The main issue here is that most deprecation warnings I'm seeing only point to ./deprecated.jl:40, which makes it hard to determine what needs to change:

julia> using BinDeps
WARNING: parseint(s,base) is deprecated, use parse(Int,s,base) instead.
 in depwarn at ./deprecated.jl:40
WARNING: uint8(r::UnitRange) is deprecated, use map(UInt8,r) instead.
 in depwarn at ./deprecated.jl:40
WARNING: parseint(s,base) is deprecated, use parse(Int,s,base) instead.
 in depwarn at ./deprecated.jl:40
WARNING: parseint(s,base) is deprecated, use parse(Int,s,base) instead.
 in depwarn at ./deprecated.jl:40
WARNING: uint8(r::UnitRange) is deprecated, use map(UInt8,r) instead.
 in depwarn at ./deprecated.jl:40

As a consequence, there are times when I see dozens of copies the same warning. The code for depwarn seems to think these are coming from different callers, but seemingly doesn't want to pass on that information. E.g., when attempting to build

julia> Pkg.build("VideoIO")
... <snip - pages of various deprecation warnings like those below >
WARNING: c_malloc is deprecated, use Libc.malloc instead.
 in depwarn at ./deprecated.jl:40
WARNING: c_malloc is deprecated, use Libc.malloc instead.
 in depwarn at ./deprecated.jl:40
WARNING: c_malloc is deprecated, use Libc.malloc instead.
 in depwarn at ./deprecated.jl:40
... <snip - repeated about 40 more times, plus others>

The amount of useless output is rather ridiculous.

julia> versioninfo()
Julia Version 0.4.0-dev+3882
Commit 76b40df* (2015-03-18 14:13 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin14.1.0)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    error handlingHandling of exceptions by Julia or the user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions