[julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread Andrew
It seems like a lot of people are complaining about this. Is there some way to suppress method overwritten warnings for an include() statement? Perhaps a keyword like include("foo.jl", quietly = true)? On Tuesday, September 27, 2016 at 1:56:27 PM UTC-4, Daniel Carrera wrote: > > Hello, > > I'm n

[julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread Chris Rackauckas
Or just a standard way to suppress warnings of a given type (say, surpress("MethodDefinition")). For now, Suppressor.jl does well. On Tuesday, September 27, 2016 at 12:13:00 PM UTC-7, Andrew wrote: > > It seems like a lot of people are complaining abo

[julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread Cedric St-Jean
I wrote a work-around earlier today: Pkg.clone("git://github.com/cstjean/ClobberingReload.jl.git") using ClobberingReload: sinclude # silent include sinclude("foo.jl") # no redefinition warnings It's fresh off the press, so please file an issue if you encounter a problem. It calls `inclu

[julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread Cedric St-Jean
@Chris: I agree; if warnings were typed, we could selectively activate them. I'm using regexes for now: ClobberingReload.scrub_stderr(r"WARNING\: redefining constant .*\n", r"WARNING\: replacing docs for .*\n", ...) do ... end On Tuesday, September 27, 2016 at 3:43:15 PM UTC-4, Chris Rack

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread Daniel Carrera
Thanks! You are a savior! Here is something odd: when I installed it with Pkg.clone(...) my Julia decided that it also had to update Conda and install Jupyter. Is this some weird quirk of my setup. I notice that you import IJulia, so I guess that has something to do with it. It's not a big deal; I

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread Cedric St-Jean
Yeah, it's because of IJulia, sorry about that. I need it to support autoreloading. I could split the package in two, but it's small enough already that it doesn't feel like the right call. One day we'll get conditional imports... On Tue, Sep 27, 2016 at 4:14 PM, Daniel Carrera wrote: > Thanks!

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread K leo
This a very heavy install. It's fetching tons of things that I have not used. Not sure what they are, but seems like trashing my system. On Wednesday, September 28, 2016 at 4:30:32 AM UTC+8, Cedric St-Jean wrote: > > Yeah, it's because of IJulia, sorry about that. I need it to support > autore

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread K leo
On Wednesday, September 28, 2016 at 12:53:12 PM UTC+8, K leo wrote: > > This a very heavy install. It's fetching tons of things that I have not > used. Not sure what they are, but seems like trashing my system. > julia> Pkg.clone("git://github.com/cstjean/ClobberingReload.jl.git") INFO: Clonin

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-27 Thread Chris Rackauckas
You could've just used Suppressor.jl ... On Tuesday, September 27, 2016 at 9:55:53 PM UTC-7, K leo wrote: > > > On Wednesday, September 28, 2016 at 12:53:12 PM UTC+8, K leo wrote: >> >> This a very heavy install. It's fetching tons of things that I hav

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-28 Thread Daniel Carrera
Suppressor.jl would suppress everything, right? So the idea is that one would use `@suppress import("foo.jl")` ? As heavy as ClobberingReload.jl is, I appreciate that it only suppresses *one* error -- the annoying "you redefined a method" error that IMO should never have existed in the first plac

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-28 Thread Ismael Venegas Castelló
Daniel indeed Suppressor provides the following macros: @suppress (will suppress both STDERR and STDOUT), @suppress_out (just STDOUT) and @suppress_err (just STDERR), notice that STDERR suppresses warnings but not errors! This can be easily understood reading code in the README: julia> using Su

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-28 Thread Cedric St-Jean
I just removed the IJulia dependency from ClobberingReload.jl (made it optional - autoreload still works for IJulia users). Thank you for the feedback. If you `Pkg.checkout("ClobberingReload")`, it should automatically remove IJulia and its dependencies. BTW, if you haven't tried IJulia/Jupyter

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-28 Thread K leo
julia> Pkg.checkout("ClobberingReload") ERROR: ClobberingReload is not a git repo in checkout(::String, ::String, ::Bool, ::Bool) at ./pkg/entry.jl:225 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#checkout,Tuple{String,String,Bool,Bool}})() at ./pkg/dir.jl:31 in cd(::Base.Pkg.Dir.##

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-28 Thread Cedric St-Jean
That's weird, I'm pretty sure that I've had the same issue when I tried it just now, but I can't seem to reproduce it. ClobberingReload is still installed on your system, right? How about this? Pkg.checkout("ClobberingReload", "master") If you want to try IJulia, you should Pkg.add("IJulia") befo

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-28 Thread J Luis
> This a very heavy install. It's fetching tons of things that I have not > used. Not sure what they are, but seems like trashing my system. > Yes, unfortunately Conda is an unbearably big dependency (over 1.xxx Gb) that sneaks in via un-suspicious packages. A dependency this big should nev

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-29 Thread Daniel Carrera
Hi everyone, I created a new issue asking the Julia developers to please restore the earlier behaviour. I would be immensely grateful if you could write on this issue and let the Julia developers know that I am not the only person who would be happier without the sea of warnings. https://github.c

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-10-12 Thread Tom Breloff
I just *immediately* found a bug thanks to the redefinition warning: julia> using Plots; plotlyjs() > INFO: Recompiling stale cache file /home/tom/.julia/lib/v0.5/Plots.ji for > module Plots. > WARNING: Method definition apply_recipe(Base.Dict{Symbol, Any}, > Type{Base.Dates.Date}, Base.Dates.Date