Deprecation warnings from Atom with v1.7

I have a Intel Macbook Pro
This is what I did to upgrade from 1.6.4 to 1.7

Step 1: download the dmg file from website
Step 2: shutdown all instances of Julia (including atom, IJulia, Pluto)
Step 2.5: Open the dmg file by double clicking on it and Install the Julia 1.7 by dragging the julia icon to the Application Icon. Don’t forget to unmount the dmg file afterwards.
Step 3: Run the following on the bash shell command prompt in Terminal (note: the dollar sign $ is just the bash commandline prompt )

$ cd ~/.julia
$ cd environments/
$ cp -rp v1.6/ v1.7

$ cd /usr/local/bin
$ ls -l julia
lrwxr-xr-x  1 ssiew  admin  62 27 Mar  2021 julia -> /Applications/Julia-1.6.app/Contents/Resources/julia/bin/julia
$ rm julia
$ ln -s /Applications/Julia-1.7.app/Contents/Resources/julia/bin/julia julia

step 3.5: Start up Julia 1.7 in terminal and upgrade the manifest file format

  _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _  |  |
  | | |_| | | | (_| |  |  Version 1.7.0 (2021-11-30)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                 
julia> using Pkg
julia> Pkg.upgrade_manifest()
     Updated Format of manifest file at `/Users/ssiew/.julia/environments/v1.7/Manifest.toml` updated from v1.0 to v2.0

Step 4: Start up julia as per normal.

When I start up Julia in Atom, I got the following message. However it seems to work

Press Enter to start Julia. 
Starting Julia...
[ Info: Precompiling Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1]
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _  |  |
  | | |_| | | | (_| |  |  Version 1.7.0 (2021-11-30)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |
[ Info: Precompiling HTableParser [top-level]
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
WARNING: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
WARNING: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
WARNING: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
WARNING: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).

This is likely an issue with a loaded package using deprecated syntax. Try starting Julia with --depwarn=error which should give you a stacktrace telling you which package this warning comes from.

1 Like

I’m getting this error too. Here’s a minimal example:

let
    foo::Tuple{Vararg{<:Number}} = (1,2,3,4)
end
ERROR: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
Stacktrace:
 [1] UnionAll(v::TypeVar, t::Any)
   @ Core .\boot.jl:255
 [2] top-level scope
   @ none:2

What’s changed? What am Imeant to do about it?

Why6 aren’t deprecation warnings more informative?

Just use Vararg{Number} instead of Vararg{<:Number}